/* Realquill landing — the same warm-dark/paper/teal world as the app, dialed up for the front door.
   The display face is EB Garamond (Georgia fallback): the books are set in it, so the marketing is too. */

:root {
  --ink: #1a191e;
  --ink-2: #211f26;
  --panel: #2a2932;
  --panel-2: #32313b;
  --line: #3a3944;
  --paper: #f7f4ee;
  --paper-edge: #e7e2d7;
  --paper-ink: #24201a;
  --text: #ece8e0;
  --muted: #a7a29a;
  --faint: #75717a;
  --teal: #4f9a92;
  --teal-hi: #6cbbb1;
  --brass: #bd975f;
  --hard: #c0563d;
  --ok: #6aa86d;
  --serif: "EB Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap: 68rem;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }   /* .cookie{display:flex} would otherwise beat the UA [hidden] rule */
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--sans); color: var(--text);
  background: var(--ink); -webkit-font-smoothing: antialiased; line-height: 1.6;
}
a { color: var(--teal-hi); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--teal-hi); outline-offset: 3px; border-radius: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; text-wrap: balance; margin: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem; font-family: var(--sans);
  font-size: .95rem; font-weight: 500; padding: .7rem 1.3rem; border-radius: 9px;
  border: 1px solid transparent; cursor: pointer; transition: transform .12s, background .15s, border-color .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #06110f; }
.btn-primary:hover { background: var(--teal-hi); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-hi); }
.btn-google { background: var(--paper); color: #1f1b16; border-color: var(--paper-edge); }
.btn-google:hover { background: #fff; }
.btn-lg { padding: .85rem 1.6rem; font-size: 1.02rem; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 20; backdrop-filter: blur(8px);
  background: color-mix(in srgb, var(--ink) 86%, transparent);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.wordmark { font-family: var(--serif); font-size: 1.5rem; color: var(--teal-hi); letter-spacing: .01em; display: inline-flex; align-items: center; }
.wordmark .nib { color: var(--brass); }
/* the quill mark sits before the wordmark in the header (transparent PNG, so the bar shows through) */
.site-head .wordmark::before {
  content: ""; width: 1.55em; height: 1.55em; margin-right: .4rem; flex: none;
  background: url(/assets/logo-mark.png) center/contain no-repeat;
}
.logo-full { display: block; width: min(15rem, 60%); height: auto; margin: 0 auto 1.2rem; }
.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a.navlink { color: var(--muted); font-size: .92rem; }
.site-nav a.navlink:hover { color: var(--text); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 6vw, 5rem); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 78% 8%, rgba(79,154,146,.16), transparent 70%),
    radial-gradient(50% 50% at 8% 90%, rgba(189,151,95,.08), transparent 70%);
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-mark { width: clamp(3.5rem, 7vw, 5rem); height: auto; display: block; margin-bottom: 1.3rem; filter: drop-shadow(0 6px 18px rgba(0,0,0,.4)); }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .72rem; color: var(--teal-hi); margin-bottom: 1.1rem; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); color: var(--paper); margin-bottom: 1.2rem; }
.hero h1 em { font-style: italic; color: var(--brass); }
.hero .lede { font-size: 1.18rem; color: var(--muted); max-width: 34rem; margin-bottom: 2rem; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-note { margin-top: 1.1rem; font-size: .82rem; color: var(--faint); }

/* paper-sheet mockup */
.sheet-mock {
  background: var(--paper); color: var(--paper-ink); border-radius: 6px;
  box-shadow: 0 24px 70px rgba(0,0,0,.5); padding: 2.2rem 2.1rem; transform: rotate(1.1deg);
  font-family: var(--serif);
}
.sheet-mock .sm-ch { font-size: 1.5rem; margin-bottom: .3rem; }
.sheet-mock .sm-meta { font-family: var(--sans); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: #9a8f7d; margin-bottom: 1.1rem; }
.sheet-mock p { font-size: 1.06rem; line-height: 1.65; margin: 0 0 .7rem; }
.sheet-mock del { background: #f4ddd5; color: #8a3320; text-decoration: none; border-radius: 3px; padding: 0 .15em; }
.sheet-mock ins { background: #d8ecd9; color: #256029; text-decoration: none; border-radius: 3px; padding: 0 .15em; }
.sheet-mock .sm-tag {
  display: inline-block; margin-top: .5rem; font-family: var(--sans); font-size: .7rem;
  color: var(--teal); border: 1px solid #cfe0dd; background: #edf5f3; border-radius: 999px; padding: .12rem .6rem;
}

/* ---------- section scaffolding ---------- */
section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.sec-head { text-align: center; max-width: 40rem; margin: 0 auto clamp(2rem, 4vw, 3rem); }
.sec-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); color: var(--paper); margin-bottom: .7rem; }
.sec-head p { color: var(--muted); font-size: 1.06rem; margin: 0; }
.alt { background: var(--ink-2); border-block: 1px solid var(--line); }

/* features */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.1rem; }
.feature {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 1.5rem 1.4rem;
  transition: border-color .15s, transform .15s;
}
.feature:hover { border-color: var(--teal); transform: translateY(-3px); }
.feature .ficon {
  width: 2.4rem; height: 2.4rem; display: grid; place-items: center; border-radius: 9px;
  background: #26383a; color: var(--teal-hi); margin-bottom: 1rem;
}
.feature .ficon svg { width: 1.3rem; height: 1.3rem; }
.feature h3 { font-size: 1.35rem; color: var(--paper); margin-bottom: .45rem; }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }

/* how it works — the flow */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; counter-reset: step; }
.step { position: relative; padding: 1.4rem 1.2rem; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--serif); font-size: 1.1rem; color: var(--brass); display: block; margin-bottom: .6rem;
  font-variant-numeric: tabular-nums;
}
.step h3 { font-size: 1.2rem; color: var(--paper); margin-bottom: .35rem; }
.step p { color: var(--muted); font-size: .9rem; margin: 0; }

/* login band */
.signin-band { text-align: center; background:
  radial-gradient(70% 120% at 50% 0%, rgba(79,154,146,.12), transparent 70%), var(--ink-2); }
.signin-card {
  max-width: 30rem; margin: 0 auto; background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 2.2rem; box-shadow: 0 18px 50px rgba(0,0,0,.4);
}
.signin-card h2 { font-size: 1.9rem; color: var(--paper); margin-bottom: .5rem; }
.signin-card p { color: var(--muted); margin: 0 0 1.4rem; }
.signin-card .btn { width: 100%; justify-content: center; }
.signin-card .fineprint { margin-top: 1rem; font-size: .78rem; color: var(--faint); }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); background: var(--ink-2); padding: 2.5rem 0 3rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: flex-start; }
.foot-brand { max-width: 22rem; }
.foot-brand .wordmark { display: inline-block; margin-bottom: .5rem; }
.foot-brand p { color: var(--faint); font-size: .86rem; margin: 0; }
.foot-cols { display: flex; gap: 3rem; flex-wrap: wrap; }
.foot-col h4 { font-family: var(--sans); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); margin: 0 0 .7rem; }
.foot-col a { display: block; color: var(--muted); font-size: .9rem; padding: .18rem 0; }
.foot-col a:hover { color: var(--text); }
.foot-legal { width: 100%; border-top: 1px solid var(--line); margin-top: 1.5rem; padding-top: 1.3rem; color: var(--faint); font-size: .8rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }

/* ---------- legal pages ---------- */
.legal { max-width: 46rem; margin: 0 auto; padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem 5rem; }
.legal h1 { color: var(--paper); font-size: clamp(2rem, 5vw, 3rem); margin-bottom: .4rem; }
.legal .updated { color: var(--faint); font-size: .85rem; margin-bottom: 2.5rem; }
.legal h2 { color: var(--paper); font-size: 1.4rem; margin: 2.2rem 0 .6rem; }
.legal p, .legal li { color: var(--muted); font-size: 1rem; line-height: 1.65; }
.legal li { margin-bottom: .35rem; }
.legal ul { padding-left: 1.2rem; }
.legal .note { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--brass); border-radius: 8px; padding: 1rem 1.2rem; font-size: .9rem; color: var(--muted); }
.legal .back { display: inline-block; margin-bottom: 2rem; font-size: .9rem; }
.legal-foot { margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid var(--line); font-size: .9rem; color: var(--faint); }
.legal-foot a { color: var(--muted); }

/* ---------- GDPR banner ---------- */
.cookie {
  position: fixed; z-index: 50; left: 1rem; right: 1rem; bottom: 1rem; max-width: 46rem; margin: 0 auto;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 16px 44px rgba(0,0,0,.5); padding: 1.1rem 1.3rem;
  display: flex; gap: 1rem; align-items: center; flex-wrap: wrap;
}
.cookie p { margin: 0; flex: 1; min-width: 14rem; font-size: .88rem; color: var(--muted); }
.cookie .cookie-actions { display: flex; gap: .55rem; }
.cookie .btn { padding: .5rem 1rem; font-size: .85rem; }

@media (max-width: 780px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .sheet-mock { transform: none; order: -1; }
  .flow { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) { .flow { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto; } }
