/* Untoo — untoo.app site styles.
   Same design language as the App Store screenshots (store/screenshots):
   pastel-on-cream, Clash Grotesk display, highlighter-pill headlines, soft shadows,
   recreated app UI inside a device frame. Units are px (store canvas 1du ≈ 1px). */

@font-face {
  font-family: 'Clash Grotesk';
  src: url('../assets/fonts/ClashGrotesk-Variable.ttf') format('truetype');
  font-weight: 200 700;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../assets/fonts/Manrope-Variable.ttf') format('truetype');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --cream: #FFF5EC;
  --ink: #0C0413;
  --ink-700: #2C2435;
  --ink-500: #574F60;
  --ink-300: #8B8492;
  --ink-150: #D8D2DC;
  --lavender: #B7A7F2;
  --mint: #BDF5B6;
  --pink: #F4BBDC;
  --yellow: #FFDB83;
  --sky: #B5E0FF;
  --raised: #FFFFFF;
  --sunken: #F7EADD;
  --amount-in: #4FA86A;
  --over: #DA6A54;
  --display: 'Clash Grotesk', 'Avenir Next', sans-serif;
  --body: 'Manrope', -apple-system, 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--lavender);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--cream);
  padding: 10px 18px; border-radius: 999px;
  font: 700 14px/1 var(--body); text-decoration: none;
  transition: top 0.15s ease-out;
}
.skip-link:focus { top: 12px; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 760px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 245, 236, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; gap: 16px;
}
.site-header .logo img { height: 34px; width: auto; }
.site-header nav { display: flex; align-items: center; gap: 26px; }
.site-header nav a {
  font: 700 15px/1 var(--body); color: var(--ink-700);
  text-decoration: none;
}
.site-header nav a:hover { color: var(--ink); }
.site-header nav .btn { color: var(--cream); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--ink); color: var(--cream);
  font: 700 16px/1 var(--body);
  padding: 15px 26px; border-radius: 999px;
  text-decoration: none; border: none; cursor: pointer;
  box-shadow: 0 8px 22px rgba(12, 4, 19, 0.16);
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, background 0.15s ease-out;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(12, 4, 19, 0.22); background: #1d1226; }
.btn:active { transform: scale(0.97); }
.btn.small { padding: 11px 20px; font-size: 14px; box-shadow: 0 5px 14px rgba(12, 4, 19, 0.14); }
.btn.ghost {
  background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
}
.btn.ghost:hover { background: rgba(12, 4, 19, 0.05); }

/* Store badges — ink pills with the store mark + two-line label */
.storebtns { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.storebtn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: var(--cream);
  border-radius: 999px; padding: 12px 26px 12px 20px;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(12, 4, 19, 0.20);
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, background 0.15s ease-out;
}
.storebtn:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(12, 4, 19, 0.26); background: #1d1226; }
.storebtn:active { transform: scale(0.97); }
.storebtn svg { width: 26px; height: 26px; flex: none; }
.storebtn .sb-text { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.storebtn .sb-eyebrow { font: 600 11px/1.2 var(--body); opacity: 0.75; letter-spacing: 0.02em; }
.storebtn .sb-store { font: 800 17px/1.2 var(--body); letter-spacing: -0.01em; }
.storebtn.light {
  background: var(--cream); color: var(--ink);
  box-shadow: 0 10px 26px rgba(12, 4, 19, 0.35);
}
.storebtn.light:hover { background: #fff; }

/* ---------- Type ---------- */

h1, h2, h3 { font-family: var(--display); font-weight: 650; letter-spacing: -0.025em; text-wrap: balance; }

.eyebrow {
  font: 800 13px/1 var(--body);
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--ink-500);
}

/* Highlighter pill on the key word, hand-placed feel */
mark {
  background: transparent; color: inherit;
  position: relative; white-space: nowrap;
  padding: 0 0.18em; margin: 0 -0.04em;
}
mark::before {
  content: ''; position: absolute; z-index: -1;
  inset: -0.02em -0.12em -0.08em -0.12em;
  background: var(--hl, var(--yellow));
  border-radius: 999px;
  transform: rotate(-1.6deg);
  box-shadow: 0 3px 10px rgba(12, 4, 19, 0.08);
}

.badge {
  font: 700 13.5px/1 var(--body);
  background: rgba(255, 255, 255, 0.92); color: var(--ink);
  border-radius: 999px; padding: 9px 16px;
  box-shadow: 0 4px 14px rgba(12, 4, 19, 0.10);
  display: inline-flex; align-items: center; gap: 7px;
}
.badge svg { width: 14px; height: 14px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 56px 0 0;
  overflow: hidden;
  background: linear-gradient(180deg, #DCD2F8 0%, #EFE6F7 55%, var(--cream) 100%);
}
.hero .container {
  position: relative; z-index: 3;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 22px;
}
.hero .badge-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.hero h1 {
  font-size: clamp(46px, 8.5vw, 84px);
  line-height: 1.02;
  max-width: 13ch;
}
.hero .support {
  font: 600 clamp(17px, 2.4vw, 20px)/1.5 var(--body);
  color: rgba(12, 4, 19, 0.66);
  max-width: 520px;
}
.hero .subnote { font: 600 14px/1.4 var(--body); color: var(--ink-500); }

.hero .hero-stage {
  position: relative;
  margin-top: 26px;
  height: 560px;
  width: 100%;
  display: flex; justify-content: center;
}

/* ---------- Decorative layers ---------- */

.grain {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.5; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  background-size: 240px 240px;
}
.blob {
  position: absolute; z-index: 1; border-radius: 999px;
  filter: blur(46px); opacity: 0.55; pointer-events: none;
}
.sprite {
  position: absolute; z-index: 6; pointer-events: none;
}
.sprite svg { width: 100%; height: 100%; }
.floaty { animation: floaty 5.5s ease-in-out infinite; }
.floaty.slow { animation-duration: 7.5s; animation-delay: 1.2s; }
@keyframes floaty {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -9px; }
}

/* Otter avatar peeking over an edge */
.peek {
  position: absolute; z-index: 7; border-radius: 999px; overflow: hidden;
  box-shadow: 0 10px 26px rgba(12, 4, 19, 0.18);
  border: 3px solid rgba(255, 255, 255, 0.9);
  background: var(--cream);
}
.peek img { width: 100%; height: 100%; }

.bubble {
  position: absolute; z-index: 8;
  background: var(--raised);
  border-radius: 999px;
  padding: 12px 18px;
  font: 700 14.5px/1.25 var(--body);
  box-shadow: 0 10px 28px rgba(12, 4, 19, 0.16);
  white-space: nowrap;
}
.bubble::after {
  content: ''; position: absolute;
  width: 14px; height: 14px;
  background: inherit;
  bottom: -5px; left: var(--tail, 28px);
  transform: rotate(45deg);
  border-radius: 3px;
}

/* ---------- Sections ---------- */

.section { padding: 88px 0; }
.section-head {
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  margin-bottom: 52px;
}
.section-head h2 { font-size: clamp(32px, 5vw, 48px); line-height: 1.06; max-width: 18ch; }
.section-head p { font: 600 17px/1.55 var(--body); color: var(--ink-500); max-width: 560px; }

/* Feature rows: copy + phone stage, alternating */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 84px);
  align-items: center;
  padding: 44px 0;
}
.feature .copy { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.feature h2 { font-size: clamp(32px, 4.4vw, 46px); line-height: 1.06; }
.feature .copy p { font: 600 17px/1.6 var(--body); color: var(--ink-500); max-width: 44ch; }
.feature .copy ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.feature .copy ul li {
  font: 700 15px/1.4 var(--body); color: var(--ink-700);
  display: flex; align-items: center; gap: 10px;
}
.feature .copy ul li svg { width: 18px; height: 18px; flex: none; color: var(--ink); }
.feature.flip .copy { order: 2; }
.feature.flip .stage { order: 1; }

/* Phone stage: rounded pastel canvas, phone cropped at the bottom like the store shots */
.stage {
  position: relative;
  border-radius: 36px;
  height: 560px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-a, var(--lavender)) 0%, var(--bg-b, #DCD2F8) 70%, var(--cream) 135%);
  box-shadow: inset 0 0 0 1px rgba(12, 4, 19, 0.04);
}
.stage .device-wrap {
  position: absolute; left: 50%; top: 54px;
  transform: translateX(-50%);
}
.stage .device-wrap.tilt-l { transform: translateX(-50%) rotate(-3deg); }
.stage .device-wrap.tilt-r { transform: translateX(-50%) rotate(3deg); }
/* Anchor to the panel bottom when the screen's key content is low (e.g. the log sheet) —
   the phone bleeds off the top of the panel instead of cropping the sheet. */
.stage .device-wrap.anchor-b { top: auto; bottom: -4px; }

/* Contact glow under the device */
.device-wrap::before {
  content: ''; position: absolute; z-index: 0;
  left: 50%; top: 30px; transform: translateX(-50%);
  width: 400px; height: 400px; border-radius: 999px;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.55), transparent 70%);
}

/* ---------- iPhone frame (from the store canvas system) ---------- */

.device {
  position: relative; z-index: 2;
  width: var(--dw, 322px);
  border-radius: 55px;
  background: #3A3440;
  padding: 4px;
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.28),
    0 30px 70px rgba(12, 4, 19, 0.30),
    0 8px 22px rgba(12, 4, 19, 0.18);
}
.device .frame-inner {
  border-radius: 51px;
  background: #17121C;
  padding: 4px;
}
.device .screen {
  position: relative;
  border-radius: 47px;
  background: var(--cream);
  overflow: hidden;
  height: calc((var(--dw, 322px) - 16px) * 2.183);
}
.device .island {
  position: absolute; z-index: 30;
  top: 12px; left: 50%; transform: translateX(-50%);
  width: 86px; height: 25px; border-radius: 999px;
  background: #0A070D;
}

/* ---------- Real app captures inside the device frame ----------
   The screens are simulator screenshots (store/screenshots/screens/iphone/en/,
   resampled into /assets/screens/) — regenerate them there, not here. */
.screen .capture {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* ---------- Pastel card grid ---------- */

.pgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 18px;
}
.pcard {
  border-radius: 26px; padding: 26px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}
.pcard:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(12, 4, 19, 0.10); }
.pcard .pc-icon {
  width: 42px; height: 42px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}
.pcard .pc-icon svg { width: 20px; height: 20px; }
.pcard h3 { font-size: 20px; letter-spacing: -0.02em; }
.pcard p { font: 600 14.5px/1.55 var(--body); color: rgba(12, 4, 19, 0.62); }
.pcard.lavender { background: #DCD2F8; }
.pcard.mint { background: #D9F8D4; }
.pcard.pink { background: #FADDEC; }
.pcard.yellow { background: #FFEAB8; }
.pcard.sky { background: #D6ECFC; }

/* ---------- Premium dark band ---------- */

.dark-band {
  position: relative;
  background: linear-gradient(180deg, #0C0413 0%, #221833 70%, #34254A 130%);
  color: var(--cream);
  border-radius: 40px;
  overflow: hidden;
  padding: 72px clamp(24px, 6vw, 80px);
}
.dark-band .eyebrow { color: rgba(255, 245, 236, 0.6); }
.dark-band h2 { font-size: clamp(32px, 4.6vw, 48px); line-height: 1.06; }
.dark-band mark { color: var(--ink); }
.dark-band > .inner { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.dark-band .lead { font: 600 17px/1.55 var(--body); color: rgba(255, 245, 236, 0.75); max-width: 520px; }
.prem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  width: 100%;
  margin-top: 24px;
}
.prem-card {
  background: rgba(255, 245, 236, 0.07);
  border: 1px solid rgba(255, 245, 236, 0.10);
  border-radius: 22px;
  padding: 22px;
  text-align: left;
  display: flex; flex-direction: column; gap: 8px;
}
.prem-card .pc-icon {
  width: 40px; height: 40px; border-radius: 13px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink);
  margin-bottom: 4px;
}
.prem-card .pc-icon svg { width: 19px; height: 19px; }
.prem-card h3 { font-size: 18px; }
.prem-card p { font: 600 13.5px/1.5 var(--body); color: rgba(255, 245, 236, 0.65); }
.dark-band .fineprint { font: 600 13px/1.5 var(--body); color: rgba(255, 245, 236, 0.55); margin-top: 18px; }

/* ---------- Final CTA ---------- */

.cta-final {
  position: relative;
  overflow: hidden;
  border-radius: 40px;
  background: linear-gradient(180deg, #DCD2F8 0%, #F6D6E8 100%);
  padding: 72px clamp(24px, 6vw, 80px);
  text-align: center;
}
.cta-final .inner { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.cta-final img.otters { width: min(300px, 60vw); height: auto; }
.cta-final h2 { font-size: clamp(34px, 5vw, 52px); line-height: 1.05; max-width: 16ch; }
.cta-final p { font: 600 17px/1.55 var(--body); color: rgba(12, 4, 19, 0.62); max-width: 460px; }

/* ---------- FAQ ---------- */

.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details {
  background: var(--raised);
  border-radius: 20px;
  box-shadow: 0 5px 16px rgba(12, 4, 19, 0.06);
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px;
  font: 700 16px/1.35 var(--body);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font: 500 24px/1 var(--display);
  color: var(--ink-300);
  flex: none;
  transition: transform 0.2s ease-out;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 22px 20px; font: 600 15px/1.6 var(--body); color: var(--ink-500); }
.faq .a a { color: var(--ink); }

/* ---------- Content pages (support, legal) ---------- */

.page-hero { padding: 64px 0 12px; }
.page-hero .eyebrow { margin-bottom: 12px; }
.page-hero h1 { font-size: clamp(38px, 6vw, 56px); line-height: 1.04; }
.page-hero .lead { font: 600 17px/1.6 var(--body); color: var(--ink-500); max-width: 58ch; margin-top: 16px; }

.prose { padding: 24px 0 88px; }
.prose h2 { font-size: 26px; margin: 40px 0 12px; }
.prose h2:first-child { margin-top: 8px; }
.prose p, .prose li { font: 600 16px/1.65 var(--body); color: var(--ink-700); }
.prose p + p { margin-top: 10px; }
.prose ul, .prose ol { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.prose a { color: var(--ink); }
.prose .updated { font: 600 13px/1 var(--body); color: var(--ink-300); margin-top: 10px; }
.prose strong { color: var(--ink); }

.infocard {
  border-radius: 22px; padding: 22px 24px;
  background: var(--raised);
  box-shadow: 0 5px 16px rgba(12, 4, 19, 0.06);
  display: flex; align-items: flex-start; gap: 16px;
}
.infocard .ic-icon {
  width: 44px; height: 44px; border-radius: 15px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
}
.infocard .ic-icon svg { width: 20px; height: 20px; }
.infocard h3 { font-size: 19px; margin-bottom: 4px; }
.infocard p { font: 600 14.5px/1.55 var(--body); color: var(--ink-500); }
.infocard p a { color: var(--ink); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid rgba(12, 4, 19, 0.08);
  margin-top: 40px;
  padding: 44px 0 56px;
}
.site-footer .cols {
  display: flex; flex-wrap: wrap; gap: 28px 64px;
  justify-content: space-between;
  align-items: flex-start;
}
.site-footer .brand { display: flex; flex-direction: column; gap: 12px; max-width: 300px; }
.site-footer .brand img { height: 30px; width: auto; }
.site-footer .brand p { font: 600 14px/1.55 var(--body); color: var(--ink-500); }
.site-footer .links { display: flex; gap: 48px; flex-wrap: wrap; }
.site-footer .links .col { display: flex; flex-direction: column; gap: 10px; }
.site-footer .links b { font: 800 12.5px/1 var(--body); letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-300); margin-bottom: 4px; }
.site-footer .links a { font: 700 14.5px/1.3 var(--body); color: var(--ink-700); text-decoration: none; }
.site-footer .links a:hover { color: var(--ink); }
.site-footer .legal {
  margin-top: 36px;
  display: flex; flex-wrap: wrap; gap: 8px 24px;
  align-items: center; justify-content: space-between;
  font: 600 13px/1.4 var(--body); color: var(--ink-300);
}

/* ---------- Reveal animations ---------- */

.reveal { opacity: 0; transform: translateY(22px); }
.reveal.shown {
  opacity: 1; transform: none;
  transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.22, 0.8, 0.36, 1);
}
.reveal.d1.shown { transition-delay: 0.08s; }
.reveal.d2.shown { transition-delay: 0.16s; }
.reveal.d3.shown { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .floaty { animation: none; }
  .btn, .storebtn, .pcard { transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; gap: 28px; padding: 32px 0; }
  .feature.flip .copy { order: 1; }
  .feature.flip .stage { order: 2; }
  .feature .copy { align-items: center; text-align: center; }
  .feature .copy p { max-width: 56ch; }
  .feature .copy ul { align-items: flex-start; }
  .section { padding: 64px 0; }
}

@media (max-width: 640px) {
  .site-header nav { gap: 16px; }
  .site-header nav a.plain { display: none; }
  .hero { padding-top: 40px; }
  .hero .hero-stage { height: 480px; }
  .stage { height: 480px; border-radius: 28px; }
  .stage .device-wrap { top: 44px; }
  .device { --dw: 290px; }
  .storebtns { width: 100%; flex-direction: column; align-items: stretch; }
  .storebtn { justify-content: center; }
  .dark-band, .cta-final { border-radius: 28px; padding-left: 22px; padding-right: 22px; }
  .bubble { font-size: 13px; padding: 10px 14px; }
  .bubble.bub-l { left: -12px !important; }
  .bubble.bub-r { right: 6px !important; }
}
