/* ============================================================================
   TikGrow — shared design system
   ----------------------------------------------------------------------------
   One source of truth for the marketing site. The palette, type scale and
   surface ramp mirror the Flutter app (lib/core/theme/app_colors.dart,
   app_typography.dart) so the site and the app read as one product:

     * "Aurora" base — deep space with an indigo cast, never flat black.
     * Elevation = lightness on a single hue, plus a white-8% hairline.
     * One signature gradient, radiant rose -> electric violet, reserved for
       the logo lockup, primary CTAs and key accents.
     * Inter, self-hosted, weights 500-800 (the app's floor is w500).
   ========================================================================= */

/* ---------------------------------------------------------------- fonts --- */
/* Subset of the exact TTFs the app bundles (latin + punctuation), ~24 KB each.
   Self-hosted on purpose: no third-party request from a site that carries a
   privacy policy, and no FOUT swap to a different typeface. */
@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/inter-500.woff2) format("woff2")}
@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/inter-600.woff2) format("woff2")}
@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/inter-700.woff2) format("woff2")}
@font-face{font-family:Inter;font-style:normal;font-weight:800;font-display:swap;src:url(/assets/fonts/inter-800.woff2) format("woff2")}

/* --------------------------------------------------------------- tokens --- */
:root{
  /* Base ramp — background (deepest) -> surface (highest) */
  --bg:#07080F;
  --bg-soft:#0A0B14;
  --card-deep:#0C0D16;
  --card-alt:#12131D;
  --card:#14151F;
  --surface:#1B1D2C;

  /* Hairlines */
  --line:rgba(255,255,255,.08);
  --line-strong:rgba(255,255,255,.14);

  /* Brand */
  --rose:#FF3D77;
  --rose-bright:#FF5C8F;
  --violet:#8B5CF6;
  --violet-bright:#A78BFA;
  --aqua:#3DE8CF;
  --brand:linear-gradient(135deg,#FF3D77 0%,#8B5CF6 100%);
  --brand-soft:linear-gradient(135deg,rgba(255,61,119,.14) 0%,rgba(139,92,246,.12) 100%);

  /* Text */
  --text:#FFFFFF;
  --text-2:#C9CBDA;
  --text-3:#9497AC;
  --text-dim:#83869C;   /* app textDim (#6F7288), lifted to clear WCAG AA on web */

  /* Geometry */
  --maxw:1120px;
  --gutter:clamp(20px,5vw,32px);
  --sec-y:clamp(64px,8.5vw,104px);
  --r-xs:10px; --r-sm:12px; --r-md:16px; --r-lg:20px; --r-xl:28px; --r-pill:999px;

  /* Type scale */
  --fs-display:clamp(2.25rem,1.32rem + 3.95vw,3.875rem);
  --fs-h2:clamp(1.75rem,1.34rem + 1.75vw,2.5rem);
  --fs-h3:1.125rem;
  --fs-lead:clamp(1rem,.945rem + .23vw,1.1875rem);
  --fs-body:.96875rem;
  --fs-sm:.875rem;
  --fs-xs:.8125rem;

  /* Elevation */
  --shadow-card:0 1px 2px rgba(0,0,0,.4);
  --shadow-lift:0 18px 44px -18px rgba(0,0,0,.85);
  --shadow-brand:0 14px 34px -12px rgba(255,61,119,.55);

  --ease:cubic-bezier(.2,.7,.3,1);
}

/* ---------------------------------------------------------------- reset --- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
@media(prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif;
  font-size:var(--fs-body);
  font-weight:500;
  line-height:1.6;
  letter-spacing:-.01em;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
h1,h2,h3,h4{margin:0;line-height:1.14;letter-spacing:-.025em;font-weight:800;color:var(--text);text-wrap:balance}
h3,h4{font-weight:700;letter-spacing:-.015em;line-height:1.3}
p{margin:0}
img,svg{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
ul,ol{margin:0}
:focus-visible{outline:2px solid var(--rose-bright);outline-offset:3px;border-radius:6px}

/* Skip link — visible only on keyboard focus. */
.skip{position:absolute;left:var(--gutter);top:-100px;z-index:100;padding:12px 18px;border-radius:var(--r-sm);
  background:var(--surface);border:1px solid var(--line-strong);font-weight:600;transition:top .18s var(--ease)}
.skip:focus{top:14px}

/* ------------------------------------------------------------ primitives --- */
.wrap{width:100%;max-width:var(--maxw);margin-inline:auto;padding-inline:var(--gutter)}

.icon{width:24px;height:24px;flex:0 0 auto;stroke:currentColor;stroke-width:1.75;
  stroke-linecap:round;stroke-linejoin:round;fill:none}
.icon-sprite{position:absolute;width:0;height:0;overflow:hidden}

/* App-icon tile — the real launcher icon, masked like Android's squircle. */
.applogo{width:40px;height:40px;flex:0 0 auto;border-radius:11px;background:#000;
  box-shadow:0 0 0 1px var(--line),0 2px 8px rgba(0,0,0,.5)}
.brand{display:inline-flex;align-items:center;gap:11px;font-weight:800;font-size:1.1875rem;
  letter-spacing:-.02em;color:var(--text)}
.brand-name{display:inline-block}
.brand-name em{font-style:normal;background:var(--brand);-webkit-background-clip:text;background-clip:text;color:transparent}

/* ------------------------------------------------------------- buttons ---- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  font:inherit;font-weight:700;font-size:1.1719rem;letter-spacing:-.01em;
  padding:14px 24px;border-radius:var(--r-md);border:1px solid transparent;
  cursor:pointer;white-space:nowrap;
  transition:transform .18s var(--ease),box-shadow .18s var(--ease),
             background-color .18s var(--ease),border-color .18s var(--ease);
}
.btn .icon{width:20px;height:20px}
.btn-primary{background:var(--brand);color:#fff;box-shadow:var(--shadow-brand)}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 20px 44px -12px rgba(255,61,119,.68)}
.btn-primary:active{transform:translateY(0)}
.btn-ghost{background:var(--card);color:var(--text);border-color:var(--line-strong)}
.btn-ghost:hover{background:var(--surface);border-color:rgba(255,255,255,.22);transform:translateY(-2px)}
.btn-ghost:active{transform:translateY(0)}
.btn-sm{padding:10px 18px;font-size:.9375rem;border-radius:var(--r-sm)}
.btn-sm .icon,.btn-sm .play-mark{width:17px;height:17px}
.btn-lg{padding:17px 30px;font-size:1.1719rem}  /* 18.75px: WCAG "large text" on the gradient */
.btn-block{width:100%}

/* Google Play mark keeps its own colours — it is a wayfinding logo, not decor. */
.play-mark{width:19px;height:19px;flex:0 0 auto}

/* -------------------------------------------------------------- header ---- */
.site-header{position:sticky;top:0;z-index:50;background:rgba(7,8,15,.72);
  backdrop-filter:blur(16px) saturate(140%);-webkit-backdrop-filter:blur(16px) saturate(140%);
  border-bottom:1px solid transparent;transition:border-color .2s var(--ease),background-color .2s var(--ease)}
.site-header[data-scrolled]{border-bottom-color:var(--line);background:rgba(7,8,15,.9)}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;gap:16px;height:68px}
.nav{display:flex;align-items:center;gap:4px}
.nav a{padding:9px 14px;border-radius:var(--r-sm);color:var(--text-3);font-weight:600;font-size:.9375rem;
  transition:color .16s var(--ease),background-color .16s var(--ease)}
.nav a:hover{color:var(--text);background:rgba(255,255,255,.05)}
.header-actions{display:flex;align-items:center;gap:10px}
.nav-toggle{display:none;align-items:center;justify-content:center;width:42px;height:42px;padding:0;
  background:var(--card);border:1px solid var(--line);border-radius:var(--r-sm);color:var(--text);cursor:pointer}
.nav-toggle .icon-close,.nav-toggle[aria-expanded="true"] .icon-menu{display:none}
.nav-toggle[aria-expanded="true"] .icon-close{display:block}
.mobile-nav{display:none;border-top:1px solid var(--line);background:var(--bg-soft)}
.mobile-nav[data-open]{display:block}
.mobile-nav ul{list-style:none;padding:12px var(--gutter) 20px;margin:0;display:grid;gap:2px;
  max-width:var(--maxw);margin-inline:auto}
.mobile-nav a:not(.btn){display:block;padding:13px 12px;border-radius:var(--r-sm);
  color:var(--text-2);font-weight:600}
.mobile-nav a:not(.btn):hover{background:rgba(255,255,255,.05);color:var(--text)}
.mobile-nav .btn{margin-top:10px}

@media(max-width:860px){
  .nav,.header-actions .btn{display:none}
  .nav-toggle{display:inline-flex}
}

/* -------------------------------------------------------------- footer ---- */
.site-footer{border-top:1px solid var(--line);background:var(--bg-soft);margin-top:auto}
.footer-top{display:grid;grid-template-columns:1.7fr repeat(3,minmax(0,1fr));gap:clamp(28px,4vw,48px);
  padding-block:clamp(44px,6vw,64px)}
.footer-brand .brand{margin-bottom:14px}
.footer-note{color:var(--text-dim);font-size:var(--fs-sm);max-width:34ch}
.footer-col h4{font-size:var(--fs-xs);font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  color:var(--text-dim);margin-bottom:14px}
.footer-col ul{list-style:none;padding:0;display:grid;gap:4px}
.footer-col a{display:inline-block;padding-block:4px;color:var(--text-3);font-size:var(--fs-sm);
  font-weight:500;transition:color .16s var(--ease)}
.footer-col a:hover{color:var(--text)}
.footer-bottom{border-top:1px solid var(--line);padding-block:22px 28px;display:flex;flex-wrap:wrap;
  gap:10px 24px;align-items:center;justify-content:space-between;color:var(--text-dim);font-size:var(--fs-xs)}
.footer-bottom a{display:inline-block;padding-block:4px;color:var(--text-3);
  transition:color .16s var(--ease)}
.footer-bottom a:hover{color:var(--text)}
.footer-legal{max-width:78ch;color:var(--text-dim);font-size:var(--fs-xs);line-height:1.6;padding-bottom:30px}

@media(max-width:900px){
  .footer-top{grid-template-columns:repeat(3,minmax(0,1fr));gap:36px 24px}
  .footer-brand{grid-column:1/-1}
}
@media(max-width:560px){
  .footer-top{grid-template-columns:1fr 1fr;gap:32px 20px}
}

@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;
    transition-duration:.01ms!important}
  .btn:hover,.btn-ghost:hover{transform:none}
}
