/* Thinkzle — shared stylesheet
   One file for every page. Per-app pages override --accent / --accent-ink. */

:root {
  --bg: #faf6ee;
  --bg-2: #f3ecdf;
  --surface: #ffffff;
  --ink: #2a2420;
  --ink-2: #6b6058;
  --line: #e7ddcd;
  --brand: #f0743e;        /* tangerine */
  --brand-2: #f6c454;      /* honey */
  --brand-3: #e8505b;      /* coral */
  --accent: var(--brand);
  --accent-ink: #ffffff;
  --accent-soft: color-mix(in srgb, var(--accent) 14%, transparent);
  --shadow: 0 1px 2px rgba(42, 36, 32, .06), 0 8px 24px rgba(42, 36, 32, .08);
  --shadow-lg: 0 2px 4px rgba(42, 36, 32, .06), 0 20px 48px rgba(42, 36, 32, .14);
  --radius: 20px;
  --radius-sm: 12px;
  --max: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI Variable Display", "Segoe UI",
          system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15120f;
    --bg-2: #1d1915;
    --surface: #221d19;
    --ink: #f4ede4;
    --ink-2: #b3a89d;
    --line: #342d27;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .3);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 20px 48px rgba(0, 0, 0, .45);
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--ink-2); }
.eyebrow {
  display: inline-block; font-family: var(--font); font-weight: 700; font-size: .8rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
  margin-bottom: .8rem;
}
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); padding: 8px 14px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font); font-weight: 800; font-size: 1.35rem; letter-spacing: -.03em; }
.logo svg { width: 32px; height: 32px; flex: none; }
.nav { display: flex; gap: clamp(12px, 3vw, 28px); }
.nav a { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--ink-2); padding: 6px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font-family: var(--font); font-weight: 700; font-size: 1rem; text-decoration: none;
  border: 0; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 40%, transparent); }
.btn-ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink-2); }

/* ---------- home hero ---------- */
.hero { padding: clamp(40px, 9vw, 110px) 0 clamp(48px, 8vw, 96px); position: relative; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: clamp(32px, 6vw, 72px); }
.hero h1 .hl { background: linear-gradient(100deg, var(--brand) 0%, var(--brand-3) 60%, var(--brand-2) 120%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--ink-2); max-width: 34ch; margin-bottom: 1.8rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }

.tiles { position: relative; aspect-ratio: 1; max-width: 440px; width: 100%; justify-self: center; }
.tiles .t {
  position: absolute; width: 30%; aspect-ratio: 1; border-radius: 22%;
  display: grid; place-items: center;
  font-family: var(--font); font-weight: 800; font-size: clamp(2rem, 6vw, 3.6rem); color: #fff;
  box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}
.tiles .t1 { left: 4%;  top: 10%; background: var(--brand);   --r: -8deg; animation-delay: 0s; }
.tiles .t2 { left: 36%; top: 0%;  background: var(--brand-2); --r: 5deg;  animation-delay: -1.2s; color: #6b4a12; }
.tiles .t3 { left: 68%; top: 14%; background: var(--brand-3); --r: 10deg; animation-delay: -2.4s; }
.tiles .t4 { left: 18%; top: 46%; background: var(--ink);     --r: 6deg;  animation-delay: -3.1s; color: var(--bg); }
.tiles .t5 { left: 52%; top: 50%; background: var(--surface); --r: -6deg; animation-delay: -4.2s; color: var(--brand); box-shadow: var(--shadow-lg), inset 0 0 0 2px var(--line); }
.tiles .t6 { left: 34%; top: 76%; width: 20%; background: #7cc6b3; --r: -12deg; animation-delay: -5s; font-size: clamp(1.4rem, 4vw, 2.2rem); }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--r)); }
  50% { transform: translateY(-10px) rotate(calc(var(--r) * -.4)); }
}
@media (prefers-reduced-motion: reduce) {
  .tiles .t { animation: none; transform: rotate(var(--r)); }
  html { scroll-behavior: auto; }
}

/* ---------- sections ---------- */
section { padding: clamp(56px, 8vw, 96px) 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head p { margin: 0; max-width: 46ch; }
.band { background: var(--bg-2); }

/* app cards */
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.app-card {
  --accent: var(--card-accent, var(--brand));
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 24px; border-radius: var(--radius); background: var(--surface);
  text-decoration: none; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
  overflow: hidden;
}
.app-card::after {
  content: ""; position: absolute; inset: auto -40% -60% auto; width: 70%; aspect-ratio: 1;
  border-radius: 50%; background: var(--accent); opacity: .08; transition: opacity .2s;
}
.app-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.app-card:hover::after { opacity: .16; }
.app-card .icon { width: 84px; height: 84px; border-radius: 22.5%; box-shadow: var(--shadow); }
.app-card h3 { margin: 0; font-size: 1.35rem; }
.app-card p { margin: 0; color: var(--ink-2); font-size: .98rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.chip.neutral { background: var(--bg-2); color: var(--ink-2); }
.app-card .go { margin-top: auto; font-family: var(--font); font-weight: 700; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.app-card .go svg { transition: transform .2s; }
.app-card:hover .go svg { transform: translateX(4px); }
.app-card.soon { box-shadow: none; background: transparent; border: 2px dashed var(--line); justify-content: center; align-items: center; text-align: center; min-height: 260px; }
.app-card.soon:hover { transform: none; box-shadow: none; }
.app-card.soon .q { width: 84px; height: 84px; border-radius: 22.5%; display: grid; place-items: center; background: var(--bg-2); font-family: var(--font); font-weight: 800; font-size: 2.2rem; color: var(--ink-2); }

/* values */
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 20px; }
.value { padding: 24px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.value .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px; color: #fff; }
.value p { margin: 0; color: var(--ink-2); font-size: .97rem; }

/* contact */
.contact { text-align: center; }
.contact p { max-width: 48ch; margin: 0 auto 1.5rem; }

/* ---------- app page ---------- */
.crumbs { padding-top: 20px; font-size: .92rem; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.app-hero { padding: clamp(24px, 5vw, 56px) 0 clamp(32px, 5vw, 64px); }
.app-hero .wrap { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 40px); align-items: center; }
.app-hero .icon { width: clamp(104px, 16vw, 168px); height: auto; aspect-ratio: 1; border-radius: 22.5%; box-shadow: var(--shadow-lg); }
.app-hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: .25em; }
.app-hero .tagline { font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: var(--ink-2); margin-bottom: 1.2rem; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 20px 8px 16px;
  border-radius: 14px; background: var(--ink); color: var(--bg); text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease; box-shadow: var(--shadow);
}
.store:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.15; }
.store small { font-size: .7rem; opacity: .8; letter-spacing: .02em; }
.store strong { font-family: var(--font); font-size: 1.12rem; font-weight: 700; }
/* A store link still set to "#" renders as "Coming soon" automatically. */
.store[href="#"] { background: transparent; color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--line); pointer-events: none; }
.store[href="#"] small { font-size: 0; }
.store[href="#"] small::before { content: "Coming soon to"; font-size: .7rem; }

.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px var(--gutter) 24px;
  margin: 0 calc(var(--gutter) * -1); scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.shots img {
  width: 100%; border-radius: 22px; scroll-snap-align: center; box-shadow: var(--shadow-lg);
  background: var(--bg-2); aspect-ratio: 600 / 1304; object-fit: cover;
}
@media (max-width: 720px) { .shots { grid-auto-columns: 62%; } }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { padding: 22px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.feature .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 12px; font-size: 1.25rem; }
.feature h3 { margin-bottom: .3em; font-size: 1.08rem; }
.feature p { margin: 0; color: var(--ink-2); font-size: .96rem; }

.privacy-card {
  display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center;
  padding: clamp(22px, 4vw, 36px); border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent-soft), transparent 70%), var(--surface);
  box-shadow: var(--shadow);
}
.privacy-card h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin-bottom: .3em; }
.privacy-card p { margin: 0; color: var(--ink-2); }
.privacy-card ul { margin: .8em 0 0; padding-left: 1.2em; color: var(--ink-2); }

/* ---------- legal / document pages ---------- */
.doc { padding: clamp(24px, 5vw, 56px) 0 clamp(56px, 8vw, 96px); }
.doc .wrap { max-width: 760px; }
.doc header { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.doc header .app-line { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; text-decoration: none; font-family: var(--font); font-weight: 700; }
.doc header .app-line img { width: 44px; height: 44px; border-radius: 22.5%; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.doc h2 { font-size: 1.35rem; margin-top: 2.2em; scroll-margin-top: 84px; }
.doc h3 { font-size: 1.08rem; margin-top: 1.6em; }
.doc p, .doc li { color: color-mix(in srgb, var(--ink) 86%, var(--bg)); }
.doc ul { padding-left: 1.3em; }
.doc li { margin-bottom: .45em; }
.doc a { color: var(--accent); text-underline-offset: 3px; }
.doc .summary { padding: 20px 22px; border-radius: var(--radius-sm); background: var(--accent-soft); margin: 0 0 8px; }
.doc .summary p:last-child, .doc .summary ul:last-child { margin-bottom: 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1em 0 1.5em; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { font-family: var(--font); background: var(--bg-2); }
.toc { padding: 16px 20px; border-radius: var(--radius-sm); background: var(--surface); box-shadow: var(--shadow); margin: 24px 0; }
.toc ol { margin: .4em 0 0; padding-left: 1.3em; columns: 2 220px; column-gap: 32px; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--accent); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); font-size: .93rem; color: var(--ink-2); }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr repeat(2, 1fr); gap: 32px; }
.site-footer h4 { font-family: var(--font); color: var(--ink); margin: 0 0 10px; font-size: .95rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer .legal { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.notfound .big { font-family: var(--font); font-weight: 800; font-size: clamp(5rem, 18vw, 9rem); line-height: 1; background: linear-gradient(100deg, var(--brand), var(--brand-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: left; }
  .tiles { max-width: 320px; order: -1; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .site-footer .brand-col { grid-column: 1 / -1; }
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .app-hero .wrap { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .features { grid-template-columns: 1fr; }
  .stores { justify-content: center; }
  .chips { justify-content: center; }
  .privacy-card { grid-template-columns: 1fr; }
  .privacy-card .btn { width: 100%; }
  .hero .actions .btn { flex: 1 1 auto; }
  .tiles { max-width: 240px; }
  .nav a.hide-sm { display: none; }
}
@media print {
  .site-header, .site-footer, .toc { display: none; }
  body { background: #fff; color: #000; }
}
