/* Scaname website. Same palette and type as the app (src/index.css):
   Newsreader for display, Source Sans 3 for text, paper / ink / rust. */
:root {
  --paper: #f3ece1;
  --paper-2: #ece2d3;
  --card: #fbf7f0;
  --ink: #1c1916;
  --ink-soft: #5b524a;
  --muted: #7a7067;
  --rust: #8b4513;
  --rust-soft: rgba(139, 69, 19, 0.1);
  --line: rgba(28, 25, 22, 0.12);
  --shadow: 0 1px 2px rgba(28, 25, 22, 0.06), 0 12px 32px -16px rgba(28, 25, 22, 0.28);
  --radius: 18px;
  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1c1916;
    --paper-2: #24201c;
    --card: #2a2622;
    --ink: #f3ece1;
    --ink-soft: #c9bfb2;
    --muted: #9d9286;
    --rust: #c47a3a;
    --rust-soft: rgba(196, 122, 58, 0.14);
    --line: rgba(243, 236, 225, 0.12);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 36px -18px rgba(0, 0, 0, 0.7);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rust); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--card); padding: 8px 12px; border-radius: 8px; z-index: 10; }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; border-radius: 6px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.wordmark { font-family: var(--display); font-size: 26px; font-weight: 500; letter-spacing: -0.02em; }
.wordmark span { color: var(--rust); }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.site-nav a { color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: 15px; }
.site-nav a:hover { color: var(--ink); }
.site-nav .play-small img { height: 38px; width: auto; }
@media (max-width: 720px) {
  .site-nav a:not(.play-small) { display: none; }
}

/* Buttons and badges */
.play-badge { display: inline-block; }
.play-badge img { height: 58px; width: auto; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px; font-weight: 600; text-decoration: none;
  border: 1px solid var(--line); color: var(--ink); background: var(--card);
}
.btn:hover { border-color: var(--rust); }
.eyebrow { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: var(--rust-soft); color: var(--rust);
}

/* Hero */
.hero { padding: 64px 0 48px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(44px, 6.4vw, 76px); margin: 14px 0 18px; }
.hero h1 em { font-style: normal; color: var(--rust); }
.hero .lede { font-size: 20px; color: var(--ink-soft); max-width: 34ch; }
.hero .cta { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.hero .fine { margin-top: 14px; color: var(--muted); font-size: 15px; }
.phones { position: relative; height: 620px; }
/* The demo video (first phone) stays in front; the Home screen tucks in behind. */
.phones .phone:first-child { position: absolute; left: 0; top: 0; transform: rotate(-4deg); z-index: 2; }
.phones .phone:last-child { position: absolute; right: -4%; top: 70px; transform: rotate(6deg) scale(0.9); transform-origin: top right; z-index: 1; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .phones { height: 520px; max-width: 480px; margin: 8px auto 0; width: 100%; }
  /* One phone on small screens: just the video, centered and uncovered. */
  .phones .phone:first-child { left: 50%; transform: translateX(-50%) rotate(-2deg); }
  .phones .phone:last-child { display: none; }
}

/* Phone frame around a screenshot */
.phone {
  width: 260px; padding: 10px; border-radius: 40px;
  background: #121110; box-shadow: 0 30px 60px -28px rgba(28, 25, 22, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
.phone img { border-radius: 30px; width: 100%; aspect-ratio: 390 / 844; object-fit: cover; }
@media (max-width: 520px) { .phone { width: 210px; } }

/* Sections */
section.block { padding: 72px 0; }
section.alt { background: var(--paper-2); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 48px); margin-top: 10px; }
.section-head p { margin-top: 14px; color: var(--ink-soft); font-size: 18px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { text-align: center; }
.step .phone { margin: 0 auto 22px; width: 230px; }
.step .num { font-family: var(--display); color: var(--rust); font-size: 22px; }
.step h3 { font-size: 26px; margin: 4px 0 8px; }
.step p { color: var(--ink-soft); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 48px; } }

/* Feature cards */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.feature .ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--rust-soft); color: var(--rust); margin-bottom: 14px;
}
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { font-size: 23px; margin-bottom: 8px; }
.feature p { color: var(--ink-soft); font-size: 16px; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* Showcase */
.showcase .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.showcase .shots { display: flex; gap: 22px; justify-content: center; align-items: flex-start; }
.showcase .shots .phone:last-child { margin-top: 48px; }
.showcase h2 { font-size: clamp(32px, 4.4vw, 46px); margin: 10px 0 16px; }
.showcase ul { margin: 18px 0 0; padding: 0; list-style: none; }
.showcase li { padding: 10px 0 10px 30px; position: relative; color: var(--ink-soft); border-top: 1px solid var(--line); }
.showcase li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 10px; height: 10px; border-radius: 3px; background: var(--rust); transform: rotate(45deg); }
@media (max-width: 900px) {
  .showcase .wrap { grid-template-columns: minmax(0, 1fr); }
  .showcase .shots { order: 2; }
}
@media (max-width: 560px) {
  .showcase .shots { gap: 12px; }
  .showcase .shots .phone { width: calc(50% - 6px); padding: 7px; border-radius: 30px; }
  .showcase .shots .phone img { border-radius: 23px; }
}

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.plan {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.plan.featured { border: 2px solid var(--rust); position: relative; }
/* A solid tag that sits on the card's top border (the plain pill is see-through,
   so the border line ran through its text). */
.plan.featured .tag {
  position: absolute; top: 0; left: 22px; transform: translateY(-50%);
  background: var(--rust); color: var(--paper); line-height: 1.3; white-space: nowrap;
}
.plan h3 { font-size: 24px; }
.plan .price { font-family: var(--display); font-size: 40px; margin: 10px 0 2px; }
.plan .price small { font-family: var(--body); font-size: 15px; color: var(--muted); font-weight: 500; }
.plan .note { color: var(--muted); font-size: 14px; }
.plan ul { margin: 16px 0 0; padding-left: 18px; color: var(--ink-soft); font-size: 15px; }
.plan li { margin: 6px 0; }
.pricing-foot { text-align: center; margin-top: 26px; color: var(--muted); font-size: 15px; }
.pricing-foot strong { color: var(--ink); }
@media (max-width: 1000px) { .plans { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 0 20px; margin-bottom: 10px;
}
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--rust); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 18px; color: var(--ink-soft); }

/* Final call to action */
.cta-band { text-align: center; padding: 80px 0; }
.cta-band img.icon { width: 84px; height: 84px; border-radius: 22px; margin: 0 auto 20px; box-shadow: 0 16px 32px -14px rgba(139, 69, 19, 0.6); }
.cta-band h2 { font-size: clamp(34px, 5vw, 54px); }
.cta-band p { color: var(--ink-soft); margin: 14px auto 26px; max-width: 46ch; font-size: 18px; }

/* Text pages: legal, support, account deletion */
.page { padding: 48px 0 72px; }
.page h1 { font-size: clamp(36px, 5vw, 52px); }
.page .updated { color: var(--muted); font-size: 15px; margin: 10px 0 28px; }
.doc {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.doc h2 { font-family: var(--body); font-size: 20px; font-weight: 700; margin: 30px 0 10px; letter-spacing: 0; }
.doc section:first-child h2, .doc > h2:first-child { margin-top: 0; }
.doc p, .doc li { color: var(--ink-soft); font-size: 16px; }
.doc p + p { margin-top: 10px; }
.doc ul, .doc ol { padding-left: 22px; margin: 8px 0; }
.doc li { margin: 6px 0; }
.doc strong { color: var(--ink); }
.callout {
  border-left: 4px solid var(--rust); background: var(--rust-soft);
  padding: 14px 18px; border-radius: 10px; margin: 16px 0; color: var(--ink);
}
@media (max-width: 560px) { .doc { padding: 20px; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer nav a { color: var(--ink-soft); text-decoration: none; }
.site-footer nav a:hover { color: var(--rust); }
.site-footer .legal { width: 100%; font-size: 13px; }

/* --- Getting to the app --------------------------------------------- */
.phone video { display: block; border-radius: 30px; width: 100%; height: auto; aspect-ratio: 390 / 844; object-fit: cover; background: var(--ink); }

/* Desktop: a QR code to send people to their phone. */
.qr-get { display: none; align-items: center; gap: 12px; max-width: 280px; }
.qr-get img { width: 84px; height: 84px; padding: 6px; background: #fff; border-radius: 10px; border: 1px solid var(--line); }
.qr-get span { font-size: 14px; color: var(--ink-soft); line-height: 1.35; }
@media (min-width: 900px) and (hover: hover) and (pointer: fine) { .qr-get { display: flex; } }

/* iPhone visitors. */
.ios-note { margin-top: 14px; font-size: 15px; color: var(--ink-soft); }
.ios-note[hidden] { display: none; }
.cta-band .ios-note { margin-top: 16px; }

.pricing-cta { text-align: center; margin: 28px 0 0; }

/* Android phones: a slim bar once the top badge has scrolled away. */
.get-bar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 50;
  display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px;
  background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 10px 30px rgba(28, 25, 22, 0.18);
}
.get-bar[hidden] { display: none; }
.get-bar img { border-radius: 9px; flex-shrink: 0; }
.get-bar span { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; flex: 1; }
.get-bar small { color: var(--ink-soft); font-size: 13px; }
.get-bar-btn {
  background: var(--rust); color: #fff; text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 9px 18px; border-radius: 999px; flex-shrink: 0;
}
.get-bar-close { background: none; border: 0; color: var(--ink-soft); font-size: 24px; line-height: 1; padding: 4px 6px; cursor: pointer; }
