/* Scrybin — scrybin.app
   Palette from the app's ChaosTheme.Brand: navy field, indigo→glow sweep, one gold accent. */

:root {
  --navy: #0a1438;
  --navy-deep: #060c26;
  --indigo: #17266b;
  --blue: #334a9e;
  --glow: #4d87ff;
  --gold: #f5a624;
  --gold-light: #ffe08a;
  --paper: #f3f4f9;
  --card: #ffffff;
  --ink: #131830;
  --ink-soft: #4c5372;
  --hairline: rgba(19, 24, 48, 0.12);
  --hairline-light: rgba(255, 255, 255, 0.14);

  --serif: "Newsreader", "New York", ui-serif, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --radius: 14px;
  --max: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--indigo); }

:focus-visible {
  outline: 3px solid var(--glow);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  background: #fff;
  color: var(--navy);
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
}
.skip-link:focus { left: 12px; }

/* ---------- The bin chip: Scrybin's signature mark ---------- */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.22em 0.7em 0.22em 0.55em;
  border-radius: 6px;
  background: rgba(77, 135, 255, 0.14);
  color: var(--indigo);
  border: 1px solid rgba(51, 74, 158, 0.35);
  white-space: nowrap;
}
.chip::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--blue);
  flex: none;
}
.chip.gold {
  background: rgba(245, 166, 36, 0.14);
  color: #8a5a0a;
  border-color: rgba(245, 166, 36, 0.5);
}
.chip.gold::before { background: var(--gold); }

.on-navy .chip {
  background: rgba(77, 135, 255, 0.18);
  color: #c7d7ff;
  border-color: rgba(122, 160, 255, 0.4);
}
.on-navy .chip::before { background: var(--glow); }
.on-navy .chip.gold {
  background: rgba(245, 166, 36, 0.16);
  color: var(--gold-light);
  border-color: rgba(245, 166, 36, 0.45);
}
.on-navy .chip.gold::before { background: var(--gold); }

/* The answer card is a light surface inside the navy hero — restore the light-surface chip variant */
.answer .chip {
  background: rgba(77, 135, 255, 0.14);
  color: var(--indigo);
  border-color: rgba(51, 74, 158, 0.35);
}
.answer .chip::before { background: var(--blue); }
.answer .chip.gold {
  background: rgba(245, 166, 36, 0.14);
  color: #8a5a0a;
  border-color: rgba(245, 166, 36, 0.5);
}
.answer .chip.gold::before { background: var(--gold); }

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

.site-head {
  background: var(--navy);
  color: #eef1fb;
}
.site-head .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #eef1fb;
}
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand span {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a {
  color: #b9c4e8;
  text-decoration: none;
  font-size: 0.95rem;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #ffffff; }
.nav-links a.pill {
  color: var(--navy);
  background: #fff;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.15s ease;
}
.nav-links a.pill:hover { color: var(--navy); transform: translateY(-1px); }

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

.hero {
  /* the icon's chip-mark scattered as a faint field, denser toward the answer card */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cg fill='%23ffffff' fill-opacity='0.045'%3E%3Crect x='28' y='36' width='7' height='7' rx='2'/%3E%3Crect x='176' y='84' width='7' height='7' rx='2'/%3E%3Crect x='92' y='150' width='7' height='7' rx='2'/%3E%3Crect x='214' y='206' width='7' height='7' rx='2'/%3E%3Crect x='40' y='222' width='7' height='7' rx='2'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(1100px 560px at 72% -10%, rgba(51, 74, 158, 0.8), transparent 68%),
    radial-gradient(700px 420px at 12% 108%, rgba(23, 38, 107, 0.9), transparent 70%);
  background-color: var(--navy);
  color: #eef1fb;
  overflow: hidden;
  position: relative;
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 96px;
}

.hero .eyebrow {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 5.8vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
  text-wrap: balance;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}
.hero .lede {
  font-size: 1.15rem;
  color: #c3cdec;
  max-width: 34em;
  margin-bottom: 30px;
}
.hero .cta-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

.appstore-badge { display: inline-block; line-height: 0; }
.appstore-badge img {
  height: 56px;
  width: auto;
  transition: transform 0.15s ease;
}
.appstore-badge:hover img { transform: translateY(-1px); }

.btn-ghost {
  color: #c3cdec;
  text-decoration: none;
  font-size: 0.98rem;
  border-bottom: 1px solid rgba(195, 205, 236, 0.4);
  padding-bottom: 2px;
}
.btn-ghost:hover { color: #fff; border-bottom-color: #fff; }

.cta-note { font-size: 0.9rem; color: #aab6dd; }
.credibility {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: #aab6dd;
  margin-top: 22px;
}
.credibility::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--gold);
  margin-right: 10px;
  vertical-align: 1px;
}

/* The answer card — a search result, the app's one job made literal */

.answer {
  background: linear-gradient(160deg, #ffffff, #f2f4fb);
  color: var(--ink);
  border-radius: 20px;
  padding: 22px;
  box-shadow:
    0 40px 80px rgba(4, 8, 28, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  max-width: 440px;
  justify-self: end;
  width: 100%;
}
.answer .searchbar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #e8ebf4;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.98rem;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.answer .searchbar svg { width: 16px; height: 16px; flex: none; opacity: 0.55; }
.answer .searchbar .q { color: var(--ink); font-weight: 500; }
.answer .searchbar .caret {
  width: 2px; height: 1.1em;
  background: var(--blue);
}

.answer h2 {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.2;
}
.answer .setline {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 2px 0 16px;
}
.answer .copies {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.answer ul { list-style: none; display: grid; gap: 8px; }
.answer li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #ffffff;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.95rem;
}
.answer li .where { color: var(--ink-soft); font-size: 0.88rem; }
.answer li.deck { border-color: rgba(245, 166, 36, 0.45); background: #fffaf0; }

/* the 2-second demo: type the query, then the results settle in */
@media (prefers-reduced-motion: no-preference) {
  .answer .searchbar .q {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    max-width: 8ch;
    animation: type 0.8s steps(8) 0.2s both;
  }
  @keyframes type { from { max-width: 0; } to { max-width: 8ch; } }

  .answer .searchbar .caret { animation: blink 1.1s steps(1) infinite; }
  @keyframes blink { 50% { opacity: 0; } }

  .answer > h2, .answer > .setline, .answer > .copies {
    opacity: 0;
    animation: settle 0.4s ease 1s forwards;
  }
  .answer li {
    opacity: 0;
    transform: translateY(10px);
    animation: settle 0.5s ease forwards;
  }
  .answer li:nth-child(1) { animation-delay: 1.15s; }
  .answer li:nth-child(2) { animation-delay: 1.3s; }
  .answer li:nth-child(3) { animation-delay: 1.45s; }
  @keyframes settle { to { opacity: 1; transform: none; } }
}

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

section { padding: 88px 0; }

.kicker {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
h2.title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 22em;
  text-wrap: balance;
}
.section-lede {
  margin-top: 14px;
  color: var(--ink-soft);
  max-width: 38em;
  font-size: 1.08rem;
}

/* How it works — a real sequence, so it earns its numbers */

.how { background: #ffffff; padding: 96px 0; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 48px;
  position: relative;
}
/* the thread that connects the sequence */
.steps::before {
  content: "";
  position: absolute;
  top: 38px;
  left: 8%;
  right: 8%;
  border-top: 2px dashed rgba(51, 74, 158, 0.3);
}
.step {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 26px;
  position: relative;
}
.step .n {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  display: inline-block;
  margin-bottom: 14px;
  background: var(--navy);
  padding: 3px 10px;
  border-radius: 6px;
}
.step h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.step p { color: var(--ink-soft); font-size: 0.98rem; }
.step .chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }

/* Screens — one legible, annotated proof shot; the rest strewn like a real table */

.screens {
  background: linear-gradient(180deg, var(--paper), #dfe4f0);
  padding: 110px 0;
}

.stage {
  display: flex;
  justify-content: center;
  margin-top: 64px;
}
.stage-phone {
  position: relative;
  width: 396px;
  max-width: 100%;
  flex: none;
}
.stage-phone > img {
  width: 100%;
  height: auto;
  border-radius: 34px;
  border: 1px solid rgba(19, 24, 48, 0.18);
  box-shadow: 0 32px 64px rgba(10, 20, 56, 0.28);
  background: #fff;
}
.callout {
  position: absolute;
  display: flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--indigo);
  white-space: nowrap;
}
.callout .line {
  width: 56px;
  border-top: 2px solid var(--blue);
  position: relative;
  flex: none;
}
.callout .line::before {
  content: "";
  position: absolute;
  top: -5px;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--gold);
}
.callout .tag {
  background: #fff;
  border: 1px solid rgba(51, 74, 158, 0.35);
  border-radius: 8px;
  padding: 6px 12px;
  box-shadow: 0 8px 20px rgba(10, 20, 56, 0.12);
}
.callout.left { right: 100%; margin-right: -8px; flex-direction: row; }
.callout.left .line { order: 2; }
.callout.left .line::before { right: -4px; }
.callout.left .tag { order: 1; }
.callout.right { left: 100%; margin-left: -8px; }
.callout.right .line::before { left: -4px; }

.shelf {
  display: flex;
  gap: 28px;
  margin-top: 72px;
  justify-content: center;
  align-items: flex-start;
}
.shot {
  flex: 0 0 auto;
  width: 218px;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(19, 24, 48, 0.15);
  box-shadow: 0 24px 48px rgba(10, 20, 56, 0.22);
  background: #fff;
  transition: transform 0.25s ease;
}
.shot img { width: 100%; height: auto; }
.shot:nth-child(odd) { transform: rotate(-1.6deg) translateY(10px); }
.shot:nth-child(even) { transform: rotate(1.3deg); }
.shot:hover { transform: rotate(0deg) translateY(-6px); }
.shot figcaption {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
  padding: 10px 8px;
  background: #fff;
  border-top: 1px solid var(--hairline);
}
.swipe-hint { display: none; }

/* Features */

.toolkit { padding: 80px 0; }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 48px;
}
.feature {
  border-top: 1px solid var(--hairline);
  padding-top: 20px;
}
.feature .chip { margin-bottom: 12px; }
.feature h3 {
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.feature p { color: var(--ink-soft); font-size: 0.97rem; }

/* Privacy band */

.privacy-band {
  background: var(--navy);
  color: #eef1fb;
}
.privacy-band .inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
}
.privacy-band h2 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  line-height: 1.2;
  margin-bottom: 12px;
}
.privacy-band p { color: #c3cdec; max-width: 36em; }
.privacy-band a.button {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 500;
  transition: background 0.15s ease;
  white-space: nowrap;
}
.privacy-band a.button:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

/* Closing conversion section */

.get {
  background:
    radial-gradient(900px 480px at 50% 120%, rgba(51, 74, 158, 0.7), transparent 70%),
    var(--navy-deep);
  color: #eef1fb;
  text-align: center;
  padding: 110px 0;
}
.get h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0 auto 14px;
  max-width: 18em;
}
.get h2 em { font-style: italic; color: var(--gold-light); }
.get p { color: #c3cdec; max-width: 34em; margin: 0 auto 36px; }
.get .actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 36px;
}
.get .qr {
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  line-height: 0;
}
.get .qr img { width: 108px; height: 108px; }
.get .qr-caption {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #aab6dd;
  margin-top: 10px;
}
.get .cta-note { display: block; margin-top: 18px; }

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

.site-foot {
  background: var(--navy-deep);
  border-top: 1px solid var(--hairline-light);
  color: #aab6dd;
  padding: 56px 0 40px;
  font-size: 0.9rem;
}
.site-foot .cols {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.site-foot .brand span { font-size: 1.15rem; }
.site-foot nav { display: flex; gap: 24px; flex-wrap: wrap; }
.site-foot a { color: #b9c4e8; text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.fineprint {
  border-top: 1px solid var(--hairline-light);
  padding-top: 24px;
  display: grid;
  gap: 10px;
  font-size: 0.8rem;
  line-height: 1.6;
  color: #8e9ac2;
}

/* ---------- Doc pages (support, privacy) ---------- */

.doc-head { padding: 56px 0 48px; }
.doc-head h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  letter-spacing: -0.01em;
}
.doc-head .meta {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #b9c4e8;
  margin-top: 12px;
}
.doc-body { padding: 56px 0 88px; }
.doc-body .prose { max-width: 42em; }
.prose h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  margin: 44px 0 12px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  margin: 28px 0 8px;
}
.prose p { margin-bottom: 14px; }
.prose ul { margin: 0 0 14px 1.2em; }
.prose li { margin-bottom: 6px; }
.prose .callout-box {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--gold);
  border-radius: 10px;
  padding: 18px 20px;
  margin: 20px 0;
}
.prose code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: rgba(51, 74, 158, 0.1);
  padding: 0.1em 0.4em;
  border-radius: 5px;
}

/* FAQ */
details.faq {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 0;
  margin-bottom: 12px;
  max-width: 46em;
}
details.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-family: var(--serif);
  font-size: 1.12rem;
  padding: 18px 22px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+";
  font-family: var(--mono);
  color: var(--blue);
  font-size: 1.2rem;
  flex: none;
}
details.faq[open] summary::after { content: "–"; }
details.faq .a { padding: 0 22px 20px; color: var(--ink-soft); }
details.faq .a p { margin-bottom: 10px; }
details.faq .a p:last-child { margin-bottom: 0; }

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

@media (max-width: 1220px) {
  /* not enough side room for both callout rails */
  .callout.left { right: auto; left: 100%; margin-left: -8px; flex-direction: row; }
  .callout.left .line { order: 0; }
  .callout.left .line::before { left: -4px; right: auto; }
  .callout.left .tag { order: 1; }
}

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; padding-top: 52px; padding-bottom: 64px; }
  .answer { justify-self: start; }
  .steps { grid-template-columns: 1fr; gap: 16px; }
  .steps::before {
    top: 24px;
    bottom: 24px;
    left: 30px;
    right: auto;
    border-top: none;
    border-left: 2px dashed rgba(51, 74, 158, 0.3);
  }
  .step { margin-left: 60px; }
  .step .n { position: absolute; left: -60px; top: 22px; }
  .features { grid-template-columns: 1fr 1fr; }
  .callout { display: none; }
  .shelf {
    overflow-x: auto;
    justify-content: flex-start;
    padding: 8px 24px 24px;
    margin-left: -24px;
    margin-right: -24px;
    scroll-snap-type: x mandatory;
    -webkit-mask-image: linear-gradient(to right, black 88%, transparent);
            mask-image: linear-gradient(to right, black 88%, transparent);
  }
  .shot { scroll-snap-align: center; }
  .swipe-hint {
    display: block;
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-soft);
    text-align: center;
    margin-top: 4px;
  }
  .privacy-band .inner { grid-template-columns: 1fr; gap: 24px; }
  .get .actions { flex-direction: column; gap: 28px; }
  .get .qr-wrap { display: none; }
}

@media (max-width: 560px) {
  section { padding: 64px 0; }
  .how { padding: 72px 0; }
  .screens { padding: 72px 0; }
  .hero h1 { margin-bottom: 16px; }
  .hero .lede { font-size: 1.05rem; margin-bottom: 24px; }
  .hero .cta-row { gap: 14px; }
  .appstore-badge { width: 100%; text-align: center; }
  .appstore-badge img { height: 60px; margin: 0 auto; }
  .features { grid-template-columns: 1fr; }
  .nav-links { gap: 14px; }
  .nav-links a.pill { padding: 7px 14px; }
  .site-head .nav { gap: 12px; }
  .brand { gap: 9px; }
  .brand img { width: 30px; height: 30px; }
  .brand span { font-size: 1.2rem; }
  .site-foot .cols { flex-direction: column; }
}
