/* ShinySnap site. Colours: app theme (Color.kt) and the icon's holo/slate (docs/brand/AppIcon.swift). */
:root {
  --bg: #faf9f7; --surface: #fff; --surface-2: #f4f1ed; --fg: #1c1b1a; --muted: #4d4842;
  --line: #e2ded8; --primary: #855300; --amber: #f59e0b; --on-amber: #2a1700; --gain: #0f7b4f;
  --focus: #855300; --shadow: 0 1px 2px rgb(28 27 26 / 6%), 0 8px 24px rgb(28 27 26 / 8%);
  --slate-1: #5a6880; --slate-2: #2a3242; --slate-3: #161b26; --on-slate: #f4f1ed; --on-slate-muted: #c3cbd8;
  --holo: linear-gradient(100deg, #ffd866, #a6f0da 35%, #ffb547 65%, #f07e1f);
  --foil: linear-gradient(100deg, #ffd866, #fff1b8 18%, #a6f0da 36%, #ffd866 54%, #ffb547 72%, #f07e1f 90%);
  --radius: 20px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15130f; --surface: #1f1d19; --surface-2: #26231e; --fg: #eae6e1; --muted: #cfc9c2;
    --line: #38342e; --primary: #ffb95f; --gain: #4edea3; --focus: #ffb95f;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 30%);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 1.0625rem/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, system-ui, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.01em; margin: 0; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: 16px; top: -100px; z-index: 10; padding: 8px 14px; border-radius: 10px;
  background: var(--amber); color: var(--on-amber); font-weight: 600; }
.skip:focus { top: 12px; }

/* Header: sits on the slate hero */
.top { position: absolute; inset: 0 0 auto; z-index: 3; color: var(--on-slate); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 700; font-size: 1.15rem; }
.brand img { border-radius: 22%; }
.top nav ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.top nav a { display: block; padding: 10px 10px; color: var(--on-slate-muted); text-decoration: none; font-weight: 600; font-size: 0.95rem; border-radius: 10px; }
.top nav a:hover { color: #fff; }
.top :focus-visible, .hero :focus-visible, .cta :focus-visible { outline-color: #ffd866; }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: var(--on-slate);
  background:
    radial-gradient(60% 50% at 18% 30%, rgb(255 201 74 / 22%), transparent 70%),
    radial-gradient(50% 45% at 85% 60%, rgb(166 240 218 / 14%), transparent 70%),
    linear-gradient(180deg, var(--slate-1) -40%, var(--slate-2) 30%, var(--slate-3));
  padding: 96px 0 0;
}
.hero-in { display: grid; gap: 40px; position: relative; }
.eyebrow { margin: 0 0 14px; color: var(--on-slate-muted); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.02em; }
.hero h1 { font-size: clamp(2.3rem, 9vw, 4rem); font-weight: 800; letter-spacing: -0.025em; }
.foil {
  display: inline; background: var(--foil); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: foil 8s ease-in-out infinite alternate;
}
@keyframes foil { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.lead { font-size: 1.15rem; color: var(--on-slate-muted); max-width: 34em; margin: 18px 0 26px; }
.availability { margin: 14px 0 0; font-size: 0.95rem; color: var(--on-slate-muted); }

/* Store buttons; TODO(owner): official badges at launch (README) */
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; list-style: none; }
.store {
  display: inline-flex; flex-direction: column; justify-content: center; min-height: 56px; min-width: 160px;
  padding: 8px 20px; border-radius: 14px; font-weight: 700; font-size: 1.15rem; line-height: 1.2;
  color: #fff; text-decoration: none; background: rgb(255 255 255 / 6%);
  border: 1.5px solid transparent;
  background: linear-gradient(var(--slate-2), var(--slate-2)) padding-box, var(--holo) border-box;
}
.store small { font-size: 0.72rem; font-weight: 600; color: var(--on-slate-muted); letter-spacing: 0.02em; }
a.store { background: linear-gradient(#11151d, #11151d) padding-box, var(--holo) border-box; }
a.store:hover { box-shadow: 0 0 0 4px rgb(255 216 102 / 18%); }

/* Phones */
.hero-art { position: relative; display: flex; justify-content: center; padding-bottom: 0; min-height: 0; }
.phone {
  position: relative; width: min(272px, 74vw); padding: 9px; border-radius: 46px;
  border: 2px solid transparent;
  background: linear-gradient(#0f131a, #0f131a) padding-box, var(--holo) border-box;
  box-shadow: 0 30px 60px rgb(0 0 0 / 45%), 0 0 60px rgb(255 201 74 / 14%);
}
.phone img { border-radius: 37px; width: 100%; }
.phone::after {
  content: ""; position: absolute; inset: 9px; border-radius: 37px; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgb(255 255 255 / 22%) 45%, rgb(166 240 218 / 14%) 50%, transparent 60%);
  background-size: 300% 100%; background-position: 120% 0; mix-blend-mode: soft-light;
  animation: sheen 7s ease-in-out infinite;
}
@keyframes sheen { 0%, 55% { background-position: 120% 0; } 100% { background-position: -40% 0; } }
.phone-front { z-index: 1; margin-bottom: -40px; }
.phone-back { display: none; }
.glint { position: absolute; width: 22px; height: 22px; fill: #ffd866; opacity: 0.85; animation: twinkle 4s ease-in-out infinite; }
.g1 { top: 6%; right: 4%; }
.g2 { top: 42%; left: 2%; width: 14px; height: 14px; fill: #a6f0da; animation-delay: 1.6s; }
@keyframes twinkle { 0%, 100% { transform: scale(0.6) rotate(0deg); opacity: 0.35; } 50% { transform: scale(1) rotate(45deg); opacity: 0.95; } }

/* Selling points: lift over the hero's lower edge */
.points { position: relative; z-index: 2; margin-top: -48px; }
.point-list { list-style: none; margin: 0 auto; display: grid; gap: 14px; }
.point {
  background: var(--surface); border-radius: var(--radius); padding: 22px 22px 20px; box-shadow: var(--shadow);
  border: 1px solid var(--line); position: relative; overflow: hidden;
}
.point::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--holo); }
.point h2 { font-size: 1.2rem; margin: 12px 0 6px; }
.point p, .feature p, .steps p { margin: 0; color: var(--muted); }
.ico { width: 30px; height: 30px; fill: none; stroke: var(--primary); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Sections */
.how, .features, .pricing, .faq { padding: 64px 0 0; }
.section-title { font-size: clamp(1.7rem, 5.5vw, 2.4rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 24px; }
.section-lead { color: var(--muted); max-width: 40em; margin: -10px 0 24px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 20px 20px 20px 72px; background: var(--surface-2); border-radius: var(--radius); }
.steps li::before {
  content: counter(step); position: absolute; left: 20px; top: 18px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; color: var(--on-amber);
  background: linear-gradient(135deg, #ffe07a, #f59e0b);
}
.steps h3 { font-size: 1.15rem; margin-bottom: 4px; }

.feature-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.feature { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.feature h3 { font-size: 1.1rem; margin: 12px 0 6px; }

/* Plans */
.plan-grid { display: grid; gap: 8px; align-items: start; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.plans { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.plans th, .plans td { padding: 13px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.plans tbody tr:last-child > * { border-bottom: 0; }
.plans thead th { font-size: 1rem; font-weight: 800; }
.plans tbody th { font-weight: 500; }
.plans td { font-weight: 700; white-space: nowrap; width: 1%; }
.plans tr > :last-child { background: color-mix(in srgb, var(--amber) 8%, transparent); }
.plans .pro-col { position: relative; }
.plans thead .pro-col::after { content: ""; display: block; width: 32px; height: 4px; border-radius: 2px; margin-top: 6px; background: var(--holo); }
.yes { color: var(--gain); font-size: 1.15em; }
.no { color: var(--muted); }
.prices-title { font-size: 1.3rem; margin: 28px 0 14px; }
.prices { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.price { position: relative; padding: 20px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.price h4 { font-size: 1rem; color: var(--muted); font-weight: 600; }
.amount { margin: 4px 0 2px; font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; }
.amount small { font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price-note { margin: 0; color: var(--muted); font-size: 0.95rem; }
.price.is-best { border: 2px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--holo) border-box; }
.tag { position: absolute; top: 18px; right: 18px; margin: 0; padding: 3px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; color: var(--on-amber); background: linear-gradient(135deg, #ffe07a, #f59e0b); }
.fine { color: var(--muted); font-size: 0.9rem; margin: 14px 0 0; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 40px 18px 0; font-weight: 700; font-size: 1.08rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border: solid var(--primary); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details p { margin: 0 0 20px; color: var(--muted); max-width: 40em; }

/* Closing call to action */
.cta {
  margin-top: 72px; padding: 56px 0; color: var(--on-slate); text-align: center;
  background: radial-gradient(50% 80% at 50% 0%, rgb(255 201 74 / 18%), transparent 70%), linear-gradient(180deg, var(--slate-2), var(--slate-3));
}
.cta h2 { font-size: clamp(1.7rem, 5.5vw, 2.4rem); font-weight: 800; margin-bottom: 24px; }
.cta .stores { justify-content: center; }

/* Footer */
.site-foot { padding: 32px 0 40px; color: var(--muted); font-size: 0.9rem; background: var(--bg); }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.site-foot .brand { color: var(--fg); font-size: 1rem; }
.foot-links { display: flex; gap: 20px; margin: 0; padding: 0; list-style: none; }
.foot-links a { display: inline-block; padding: 6px 0; font-weight: 600; }
.legal { margin: 0 0 10px; max-width: 62em; }

@media (max-width: 719px) {
  .feature { display: grid; grid-template-columns: 30px 1fr; column-gap: 14px; padding: 18px; }
  .feature .ico { grid-row: span 2; }
  .feature h3 { margin: 3px 0 4px; }
  .plans th, .plans td { padding: 12px 10px; font-size: 0.95rem; }
}
@media (max-width: 479px) {
  .top nav a { padding: 10px 7px; font-size: 0.9rem; }
  .brand { font-size: 1.05rem; }
}
@media (min-width: 720px) {
  .point-list { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li { padding: 72px 22px 22px; }
  .steps li::before { top: 22px; left: 22px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .prices { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  .hero { padding-top: 112px; }
  .hero-in { grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 24px; }
  .hero-copy { padding-bottom: 120px; }
  .hero-art { min-height: 560px; align-items: flex-end; }
  .phone-front { margin: 0 0 -150px 70px; transform: rotate(3deg); }
  .phone-back { display: block; position: absolute; width: 236px; left: 0; bottom: -40px; transform: rotate(-7deg); opacity: 0.9; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .points { margin-top: -72px; }
  .plan-grid { grid-template-columns: 1.6fr 1fr; gap: 28px; }
  .plan-prices .prices-title { margin-top: 0; }
  .prices { grid-template-columns: 1fr; }
  .faq-in { display: grid; grid-template-columns: 1fr 2fr; gap: 28px; align-items: start; }
}
@media (max-width: 359px) {
  .top nav { display: none; }
}
@media (max-width: 380px) {
  .plans th, .plans td { padding: 12px 8px; }
  .plans td { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .foil, .phone::after, .glint { animation: none; }
  .faq summary::after { transition: none; }
}

/* Privacy page and 404 */
main.doc, main.home { max-width: 720px; margin: 0 auto; padding: 32px 16px 64px; }
.doc h1 { font-size: 2rem; margin: 16px 0; }
.doc h2 { font-size: 1.3rem; margin: 32px 0 8px; }
.doc .back a { font-weight: 600; text-decoration: none; }
.home h1 { font-size: 2.4rem; margin: 24px 0 12px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); }
