/* Shared base for the Tipo design studies A and D. Brand kept: the Tipo logo and Tipo violet #6E21C0. */

@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../assets/fonts/inter-tight-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #F1F0F5;
  --card: #FFFFFF;
  --panel: #F6F5FA;
  --ink: #111016;
  --ink-2: #3A3943;
  --muted: #6C6B77;
  --line: #E6E4EE;
  --violet: #6E21C0;
  --violet-600: #7C35D3;
  --violet-400: #A57AEA;
  --violet-200: #DCCBFA;
  --violet-100: #EEE6FD;
  --violet-50: #F8F4FF;
  --star: #F5B70A;
  --sun: #FFD54A;
  --sky: #52CFEA;
  --coral: #F2594A;
  --mint: #3DCB93;

  --font: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow-sm: 0 1px 2px rgba(17, 16, 22, 0.06), 0 6px 16px -6px rgba(17, 16, 22, 0.1);
  --shadow-md: 0 2px 4px rgba(17, 16, 22, 0.04), 0 28px 56px -20px rgba(17, 16, 22, 0.18);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --r-xl: 36px;
  --r-lg: 26px;
  --r-md: 18px;
  --r-sm: 12px;
  --max: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2.5px solid var(--violet); outline-offset: 3px; border-radius: 10px; }
::selection { background: var(--violet-200); }
.sprite { position: absolute; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico--fill { fill: currentColor; stroke: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: 16px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; transform: translateY(-200%); }
.skip:focus-visible { transform: none; }

/* Type */
.h1, .h2 { font-weight: 500; letter-spacing: -0.04em; text-wrap: balance; }
.h1 { font-size: clamp(44px, 5.6vw, 84px); line-height: 1; }
.h2 { font-size: clamp(36px, 4.2vw, 60px); line-height: 1.04; }
.lede { max-width: 46ch; color: var(--muted); font-size: clamp(16px, 1.25vw, 19px); text-wrap: pretty; }
.chip-label { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 8px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow-sm); color: var(--ink-2); font-size: 13px; font-weight: 500; }
.chip-label .ico { width: 16px; height: 16px; color: var(--violet); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; transition: transform 0.25s var(--spring), background-color 0.2s, box-shadow 0.2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn--violet { background: var(--violet); color: #fff; box-shadow: 0 10px 24px -10px rgba(110, 33, 192, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
.btn--violet:hover { background: var(--violet-600); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #2A2833; }
.btn--ghost { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }

/* Reveal uses compositor-friendly opacity and transforms. */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; filter: none; transform: none; }

/* Mini app screens, shared by both studies */
.mini { color: var(--ink); font-size: 13px; line-height: 1.35; }
.mcard { padding: 14px; border-radius: var(--r-md); background: var(--card); box-shadow: var(--shadow-sm); }
.m-title { font-weight: 600; }
.m-muted { color: var(--muted); font-size: 12px; }
.m-big { font-size: 30px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.m-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 0 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; }
.m-pill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; background: var(--violet-100); color: var(--violet); font-size: 11px; font-weight: 600; }
.slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.slot { padding: 7px 0; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; transition: background-color 0.3s, color 0.3s, transform 0.4s var(--spring); }
.slot.is-full { color: var(--muted); text-decoration: line-through; background: var(--panel); box-shadow: none; }
.slot.is-on { background: var(--violet); color: #fff; box-shadow: none; transform: scale(1.05); }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; text-align: center; font-size: 11px; font-variant-numeric: tabular-nums; }
.cal span { display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; }
.cal .dow { color: var(--muted); aspect-ratio: auto; padding-bottom: 2px; }
.cal .off { color: #C9C6D4; }
.cal .on { background: var(--violet); color: #fff; font-weight: 600; }
.thumbs { display: flex; align-items: center; gap: 6px; }
.thumbs img { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; }
.thumbs b { color: var(--muted); font-weight: 600; }
.stores { display: grid; gap: 8px; }
.store-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--card); box-shadow: var(--shadow-sm); }
.store-row b { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--violet); }
.bk-list { display: grid; }
.bk-row { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.bk-row:first-child { border-top: 0; }
.bk-row b { font-weight: 600; font-variant-numeric: tabular-nums; }
.bk-row .m-pill { background: var(--panel); color: var(--ink-2); }
.bk-row .m-pill.is-done { background: var(--violet); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; filter: none; transform: none; }
}
