/* Novelu's website, in the apps' colours (ios/Shared/DesignTokens.swift) and docs/BRAND_GUIDELINES.md:
   calm, much white space, one accent. */
:root {
  --bg: #F6F4EF;
  --surface: #FFFFFF;
  --sand: #ECE9E2;
  --line: #E2DED5;
  --hero: #E4EEE7;
  --hero-line: #C4D9CB;
  --accent: #3E6A56;
  --on-accent: #FFFFFF;
  --ink: #18222F;
  --muted: #5C6570;
  --amber: #8A5A12;
  /* The home page's atmosphere: soft light in the brand's own colours. */
  --glow-a: #D2E7D9;
  --glow-b: #F2E4D0;
  --glow-c: #DDEBE3;
  --grid: rgba(62, 106, 86, .07);
  --glass: rgba(255, 255, 255, .74);
  /* One depth for the whole page: a soft outer glow, tinted with the brand's green. */
  --shadow: 0 1px 2px rgba(24, 34, 47, .04), 0 14px 36px rgba(46, 84, 66, .10);
  --shadow-lift: 0 2px 4px rgba(24, 34, 47, .05), 0 22px 48px rgba(46, 84, 66, .15);
  --card-sheen: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .62));
  --serif: "New York", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0D0F0E; --surface: #181B1A; --sand: #232826; --line: #2B302E;
    --hero: #1A2821; --hero-line: #2E4238; --accent: #9CC3AB; --on-accent: #0E1A14;
    --ink: #EDEBE6; --muted: #A3A8A5; --amber: #E3BC6E;
    --glow-a: #14291D; --glow-b: #2A2418; --glow-c: #12221A; --grid: rgba(156, 195, 171, .06); --glass: rgba(24, 27, 26, .74);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 36px rgba(0, 0, 0, .35), 0 0 0 1px rgba(156, 195, 171, .04);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, .35), 0 22px 48px rgba(0, 0, 0, .45), 0 0 24px rgba(156, 195, 171, .06);
    --card-sheen: linear-gradient(180deg, rgba(32, 37, 35, .92), rgba(24, 27, 26, .78));
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--sans); }
a { color: var(--accent); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

header.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 600 22px var(--serif); }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
nav.links { display: flex; align-items: center; gap: 18px; font-size: 15px; }
nav.links a { color: var(--muted); text-decoration: none; }
nav.links a:hover { color: var(--ink); }
.lang select { font: inherit; font-size: 15px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }

.hero { padding: 56px 0 40px; }
.label { text-transform: uppercase; letter-spacing: 1px; font-size: 13px; font-weight: 600; color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; }
h1 { font-size: clamp(36px, 6vw, 58px); margin: 12px 0 18px; max-width: 14em; }
.hero p.lead { font-size: 20px; color: var(--muted); max-width: 34em; margin: 0 0 28px; }
.pill { display: inline-block; background: var(--accent); color: var(--on-accent); border-radius: 999px; padding: 13px 24px; font-weight: 600; text-decoration: none; }
.pill.soft { background: transparent; color: var(--ink); border: 1px solid var(--hero-line); }
.note { color: var(--muted); font-size: 15px; margin-top: 12px; }

section { padding: 40px 0; }
section h2 { font-size: clamp(28px, 4vw, 38px); margin: 0 0 24px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.card { background: var(--card-sheen); border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease; }
@media (hover: hover) { .card:hover, .plan:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); } }
.card h3 { font-size: 21px; margin: 0 0 8px; }
.card p { margin: 0; color: var(--muted); }
.card.hero-card { background: var(--hero); border-color: var(--hero-line); }

.privacy { background: var(--hero); border: 1px solid var(--hero-line); border-radius: 26px; padding: 36px; box-shadow: var(--shadow-lift); }
.privacy ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.privacy li { display: flex; gap: 12px; align-items: flex-start; }
.privacy li .icon { flex: none; margin-top: 1px; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.plan { background: var(--card-sheen); border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease; }
.plan.pro { border: 1.5px solid var(--accent); box-shadow: var(--shadow-lift); }
.plan h3 { font-size: 26px; margin: 0 0 4px; }
.plan .price { color: var(--muted); margin: 0 0 16px; }
.plan ul { margin: 0; padding-left: 20px; }

article.doc { padding-top: 24px; padding-bottom: 48px; }
article.doc h1 { font-size: clamp(32px, 5vw, 44px); }
article.doc h2 { font-size: 26px; margin-top: 36px; }
article.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
article.doc th, article.doc td { text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); padding: 10px 8px; }
article.doc code { background: var(--sand); border-radius: 6px; padding: 1px 6px; font-size: 0.9em; }
article.doc blockquote { margin: 16px 0; padding: 12px 16px; background: var(--sand); border-radius: 12px; color: var(--muted); }
.banner { background: var(--sand); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; color: var(--amber); font-size: 15px; margin: 8px 0 0; }

footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 28px 0 48px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--muted); }

@media (max-width: 640px) {
  nav.links .hide-small { display: none; }
  .hero { padding-top: 32px; }
  .privacy { padding: 24px; }
}

details.lang { position: relative; }
details.lang summary { list-style: none; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink); border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 5px 12px; }
details.lang summary::-webkit-details-marker { display: none; }
details.lang div { position: absolute; right: 0; top: 38px; z-index: 30; display: grid; min-width: 170px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.08); }
details.lang div a { color: var(--ink); text-decoration: none; padding: 7px 10px; border-radius: 8px; }
details.lang div a:hover, details.lang div a[aria-current] { background: var(--sand); }

article.doc section.qa h2 { font-size: 21px; margin: 28px 0 8px; }
article.doc table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; }
article.doc th, article.doc td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
article.doc th { color: var(--muted); font-weight: 600; }
@media (max-width: 560px) {
  .hide-small { display: none; }
  article.doc table, article.doc tbody, article.doc tr, article.doc td { display: block; }
  article.doc thead { display: none; }
  article.doc tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  article.doc td { border: 0; padding: 2px 0; }
  article.doc td:first-child { font-weight: 600; }
}

/* Outlined icons and the hero's quiet picture (docs/BRAND_GUIDELINES.md: outlined, minimal, rounded). */
.icon { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon .dot { fill: var(--accent); stroke: none; }
.card .icon { display: block; width: 30px; height: 30px; margin-bottom: 14px; }

/* Home: a soft gradient with two drifting shapes and faint grid lines behind the top. */
body.home { background:
  radial-gradient(55% 45% at 12% 8%, var(--glow-a), transparent 70%),
  radial-gradient(45% 40% at 92% 14%, var(--glow-b), transparent 70%),
  radial-gradient(70% 55% at 50% 62%, var(--glow-c), transparent 72%),
  var(--bg);
  background-repeat: no-repeat; background-size: 100% 1250px; position: relative; }
/* Further down, the same light behind the steps, the privacy section and the plans. */
body.home main { background:
  radial-gradient(40% 520px at 0% 1200px, var(--glow-a), transparent 70%),
  radial-gradient(38% 520px at 100% 1750px, var(--glow-b), transparent 70%),
  radial-gradient(45% 560px at 15% 2350px, var(--glow-c), transparent 70%),
  radial-gradient(40% 520px at 95% 2900px, var(--glow-a), transparent 70%);
  background-repeat: no-repeat; }
body.home::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1100px; pointer-events: none; z-index: 0;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 25%, transparent 75%); }
body.home > * { position: relative; z-index: 1; }
/* The header (and its language menu) above the hero and the demo that follow it. */
body.home > header.top { z-index: 20; }
.topbar { display: block; text-align: center; padding: 9px 16px; font-size: 14px; font-weight: 500; text-decoration: none;
  color: var(--on-accent); background: linear-gradient(90deg, var(--accent), #6E9A84 55%, var(--accent)); }

.hero.centered { text-align: center; padding-top: 48px; padding-bottom: 8px; }
.hero.centered h1 { margin-left: auto; margin-right: auto; max-width: 15em; }
.hero.centered .lead { margin-left: auto; margin-right: auto; }
h1 em.accent { font-style: normal; color: var(--accent); }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .4px; color: var(--accent);
  background: var(--glass); border: 1px solid var(--hero-line); border-radius: 999px; padding: 6px 14px; }
.stores { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.store { box-shadow: var(--shadow); display: inline-flex; flex-direction: column; align-items: flex-start; background: var(--ink); color: var(--bg);
  border-radius: 14px; padding: 8px 20px 9px; min-width: 150px; }
.store small { font-size: 11px; opacity: .75; }
.store b { font-size: 18px; font-weight: 600; line-height: 1.2; }

/* The demo in a glass panel, the little cards floating around it. */
.stage { position: relative; max-width: 700px; margin: 28px auto 24px; }
.demo { position: relative; z-index: 2; text-align: left; background: var(--glass); -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px); border: 1px solid var(--line); border-radius: 26px; padding: 20px 24px 22px;
  box-shadow: var(--shadow-lift); }
.demo-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.replay { border: 0; background: transparent; padding: 6px; border-radius: 999px; cursor: pointer; }
.replay .icon { width: 20px; height: 20px; stroke: var(--muted); }
.demo-text { font-size: 20px; line-height: 1.6; min-height: 3.3em; margin: 0 0 14px; color: var(--ink); }
.nm .real { font-weight: 600; }
.nm .code { display: none; }
.coded .nm .real, .done .nm .real { display: none; }
.coded .nm .code, .done .nm .code { display: inline-block; font: 600 .82em ui-monospace, SFMono-Regular, Menlo, monospace;
  padding: 1px 8px; border-radius: 8px; color: var(--accent); background: var(--hero); border: 1px solid var(--hero-line);
  animation: flip .35s ease-out; }
.nm[data-kind="new"] .code { color: var(--amber); background: var(--sand); border-color: var(--line); }
@keyframes flip { from { transform: rotateX(90deg); opacity: 0; } to { transform: none; opacity: 1; } }
.demo-chips, .demo-ai, .demo-result { opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s; }
.names .demo-chips, .ai .demo-ai, .result .demo-result,
.done .demo-chips, .done .demo-ai, .done .demo-result { opacity: 1; transform: none; }
.demo-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; gap: 6px; align-items: center; background: var(--surface); border: 1px solid var(--hero-line);
  border-radius: 999px; padding: 5px 12px; font-size: 14px; color: var(--muted); }
.chip b { color: var(--ink); font-weight: 600; }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.chip.new .dot { background: var(--amber); }
.demo-ai { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 14px; margin: 14px 0 0; }
.demo-ai .icon { width: 18px; height: 18px; }
.demo-result { display: flex; gap: 12px; align-items: center; margin-top: 12px; background: var(--hero);
  border: 1px solid var(--hero-line); border-radius: 16px; padding: 12px 14px; }
.demo-result b { display: block; font-weight: 600; color: var(--ink); }
.demo-result span { font-size: 13px; color: var(--muted); }
.floats .float { position: absolute; z-index: 1; display: flex; gap: 10px; align-items: center; background: var(--surface);
  border: 1px solid var(--line); border-radius: 16px; padding: 10px 14px; box-shadow: var(--shadow);
  font-size: 14px; max-width: 250px; animation: drift 7s ease-in-out infinite; }
.float b { display: block; font-weight: 600; line-height: 1.3; }
.float span { color: var(--muted); font-size: 12.5px; }
.float .icon { flex: none; width: 22px; height: 22px; }
.float.f1 { top: -34px; left: -230px; transform: rotate(-3deg); }
.float.f2 { top: 46%; right: -250px; animation-delay: -2s; }
.float.f3 { bottom: 4px; left: -210px; animation-delay: -4s; }
.float.f4 { top: -46px; right: -170px; transform: rotate(2deg); animation-delay: -1s; }
@keyframes drift { 50% { translate: 0 -6px; } }
@media (max-width: 1200px) {
  .floats { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
  .floats .float { position: static; transform: none; animation: none; }
}
@media (max-width: 560px) { .demo-text { font-size: 18px; } .demo { padding: 18px; } .floats { display: none; } }
@media (prefers-reduced-motion: reduce) { .floats .float, .coded .nm .code, .done .nm .code { animation: none; } }

/* Playful, within the calm: a mosaic of steps with a piece of the app, a fanned hand of
   cards, code tags around the privacy section, tilted plans, and cards that slide in. */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.bento .s1 { grid-column: span 3; } .bento .s2 { grid-column: span 3; }
.bento .s3 { grid-column: span 2; } .bento .s4 { grid-column: span 4; }
.step { display: flex; flex-direction: column; }
.vignette { margin-top: auto; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.mini { display: inline-flex; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 9px 13px; box-shadow: var(--shadow); font-size: 14px; transform: rotate(-1.5deg); }
.step:nth-child(even) .mini { transform: rotate(1.5deg); }
.mini b { display: block; font-weight: 600; line-height: 1.3; }
.mini span { color: var(--muted); font-size: 12.5px; }
.mini .icon { flex: none; width: 22px; height: 22px; }
.mini .mono { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font: 600 16px var(--serif); color: var(--accent); background: var(--hero); border: 1px solid var(--hero-line); }
.facts { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.fact { font-size: 12px; color: var(--ink); background: var(--sand); border-radius: 999px; padding: 2px 9px; }
.vignette .chip:nth-child(2) { transform: rotate(2deg); }
.vignette.spread { gap: 14px; }
.vignette.spread .mini:nth-child(2) { transform: rotate(2.5deg) translateY(6px); }

.fan { display: flex; justify-content: center; align-items: stretch; padding: 14px 0 6px; }
.fan .card { flex: 1 1 0; max-width: 340px; margin: 0 -10px; transform-origin: 50% 120%; }
.fan .card:nth-child(1) { transform: rotate(-4deg) translateY(10px); }
.fan .card:nth-child(2) { transform: translateY(-10px); z-index: 2; }
.fan .card:nth-child(3) { transform: rotate(4deg) translateY(10px); }
@media (hover: hover) { .fan .card:hover { transform: translateY(-14px) rotate(0); z-index: 3; box-shadow: var(--shadow-lift); } }

.privacy { position: relative; }
.tag { position: absolute; font: 600 13px ui-monospace, SFMono-Regular, Menlo, monospace; padding: 4px 10px;
  border-radius: 9px; background: var(--surface); border: 1px solid var(--hero-line); color: var(--accent);
  box-shadow: var(--shadow); animation: drift 7s ease-in-out infinite; }
.tag.t1 { top: -14px; right: 12%; transform: rotate(6deg); }
.tag.t2 { bottom: -12px; right: 28%; transform: rotate(-5deg); color: var(--amber); animation-delay: -3s; }
.tag.t3 { top: 38%; right: -14px; transform: rotate(4deg); animation-delay: -5s; }

.plan { position: relative; }
.plans .plan:not(.pro) { transform: rotate(-1deg); }
.plans .plan.pro { transform: rotate(1deg) translateY(-6px); }
@media (hover: hover) { .plans .plan:hover { transform: translateY(-8px) rotate(0); } }
.badge { position: absolute; top: -13px; right: 22px; background: var(--accent); color: var(--on-accent); font-size: 13px;
  font-weight: 600; border-radius: 999px; padding: 5px 12px; box-shadow: var(--shadow); transform: rotate(3deg); }

.reveals .reveal { opacity: 0; translate: 0 22px; transition: opacity .6s ease, translate .6s ease, transform .25s ease,
  box-shadow .25s ease; transition-delay: calc(var(--i, 0) * 90ms), calc(var(--i, 0) * 90ms), 0s, 0s; }
.reveals .reveal.in { opacity: 1; translate: 0 0; }

@media (max-width: 860px) {
  .bento { grid-template-columns: 1fr; } .bento .card { grid-column: auto; }
  .fan { flex-direction: column; gap: 14px; } .fan .card { margin: 0; max-width: none; transform: none !important; }
  .tag.t3 { display: none; }
}
@media (prefers-reduced-motion: reduce) { .tag { animation: none; } }
@media print { .reveals .reveal { opacity: 1; translate: none; } .floats, .tag { display: none; } }
