/* Public homepage. Uses the colours and fonts defined in style.css. */
.home { background: var(--panel); }
.home-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow-home { max-width: 760px; }

/* Nav */
.home-nav { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.home-nav-inner { display: flex; align-items: center; gap: 22px; height: 64px; }
.home-links { display: flex; gap: 20px; margin-left: 12px; }
.home-links a, .home-login { color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 500; }
.home-links a:hover, .home-login:hover { color: var(--ink); }

/* Buttons */
.btn.lg { padding: 12px 20px; font-size: 15px; }

/* Hero */
.hero { padding: 72px 0 64px; background: linear-gradient(180deg, var(--accent-soft) 0%, var(--panel) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(34px, 4.6vw, 52px); line-height: 1.08; letter-spacing: -0.01em; margin: 0; }
.lead { font-size: 18px; line-height: 1.55; color: var(--ink-2); margin: 20px 0 28px; max-width: 540px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; }

/* Product illustration */
.mock { position: relative; background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 24px 60px -20px rgba(29, 78, 137, 0.35), 0 2px 6px rgba(0, 0, 0, 0.05); overflow: visible; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--q-bg); border-radius: 12px 12px 0 0; }
.mock-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.mock-url { margin-left: 10px; font-size: 12px; color: var(--ink-3); background: var(--panel); border: 1px solid var(--line); border-radius: 5px; padding: 2px 10px; }
.mock-body { padding: 16px; display: grid; gap: 10px; }
.mock-head { padding: 4px 4px 6px; }
.mock-title { font-family: var(--serif); font-size: 19px; font-weight: 600; margin: 2px 0 10px; }
.mock-progress { display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 600; }
.mock-progress .progress { flex: 1; }
.mock-req { display: grid; grid-template-columns: 30px 1fr 1fr; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; overflow: hidden; }
.mock-req.approved { border-left: 3px solid var(--ok); }
.mock-num { padding: 10px 0 0 10px; font-weight: 700; color: var(--ink-2); }
.mock-q { padding: 10px 12px; background: var(--q-bg); border-left: 1px solid var(--line); border-right: 1px solid var(--line); font-family: var(--serif); font-size: 13.5px; }
.mock-r { padding: 10px 12px; font-family: var(--serif); font-size: 13.5px; display: flex; flex-direction: column; gap: 8px; }
.mock .label { font-family: var(--sans); font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 650; color: var(--ink-3); margin-bottom: 3px; }
.mock .approved-note { font-family: var(--sans); font-size: 12px; }
.mock-actions { display: flex; gap: 6px; justify-content: flex-end; font-family: var(--sans); }
.mock-actions .btn { pointer-events: none; font-size: 12px; padding: 4px 10px; }
.mock-actions .btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.mock-toast { position: absolute; right: -14px; bottom: -18px; background: var(--ok); color: #fff; font-size: 13px; font-weight: 600; padding: 10px 16px; border-radius: 8px; box-shadow: 0 10px 24px -8px rgba(26, 127, 55, 0.6); }

/* Sections */
.section { padding: 80px 0; }
.section.alt { background: var(--bg); }
.section-title { font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 3vw, 34px); margin: 0 0 10px; }
.section-lead { color: var(--ink-2); font-size: 17px; margin: 0 0 36px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 22px; }
.step-n { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.steps h3, .feature h3 { font-size: 16px; margin: 0 0 6px; }
.steps p, .feature p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 22px; border-top: 3px solid var(--accent); }

.received { display: flex; gap: 32px; align-items: center; justify-content: space-between; flex-wrap: wrap; border: 1px solid var(--line-2); border-radius: 12px; padding: 32px; background: linear-gradient(135deg, var(--accent-soft), var(--panel)); }
.received > div { flex: 1; min-width: 280px; max-width: 640px; }
.received h2 { font-family: var(--serif); font-weight: 600; font-size: 26px; margin: 0 0 10px; }
.received p { margin: 0; color: var(--ink-2); }

/* FAQ */
details { border-bottom: 1px solid var(--line-2); padding: 16px 0; }
details:first-of-type { border-top: 1px solid var(--line-2); margin-top: 24px; }
summary { cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 10px 0 0; color: var(--ink-2); line-height: 1.6; }

.final { text-align: center; }
.final h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 3vw, 34px); margin: 0 0 8px; }

/* Footer */
.home-footer { border-top: 1px solid var(--line); padding: 26px 0; }
.home-footer-inner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.small-brand { font-size: 15px; }
.small-brand .brand-logo { width: 22px; height: 22px; }

/* Smaller screens */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .home-links { display: none; }
}
@media (max-width: 560px) {
  .home-wrap { padding: 0 16px; }
  .hero { padding: 44px 0 52px; }
  .steps, .features { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .mock-req { grid-template-columns: 26px 1fr; }
  .mock-r { grid-column: 2; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
  .mock-toast { right: 8px; }
  .home-login { display: none; }
  .received { padding: 22px; }
}
/* Jumping to #how etc. shouldn't hide the heading under the sticky menu */
.section[id] { scroll-margin-top: 64px; }
html { scroll-behavior: smooth; }
.hero-note .free { color: var(--ink); font-weight: 600; }

/* ---------- v2: accent, free badge, feature pictures, motion ---------- */

/* Headline accent: the key words in the brand blue, with a soft marker band that sweeps in */
.hero h1 .hl {
  color: var(--accent);
  background-image: linear-gradient(transparent 62%, rgba(29, 78, 137, 0.14) 62%, rgba(29, 78, 137, 0.14) 92%, transparent 92%);
  background-repeat: no-repeat;
  background-size: 0% 100%;
  animation: hl-sweep 0.9s 0.35s cubic-bezier(.2, .7, .2, 1) forwards;
  padding: 0 2px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
@keyframes hl-sweep { to { background-size: 100% 100%; } }

/* Free to get started */
.free-line { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.free-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 650; color: #0f5323; background: var(--ok-soft); border: 1px solid #bfe0c8; border-radius: 999px; padding: 7px 16px 7px 8px; }
.free-badge .tick { width: 22px; height: 22px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
.free-sub { font-size: 13.5px; color: var(--ink-2); }

/* Hero entrance */
.hero-copy > * { animation: rise 0.7s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.06s; }
.hero-copy > :nth-child(3) { animation-delay: 0.12s; }
.hero-copy > :nth-child(4) { animation-delay: 0.18s; }
.hero-copy > :nth-child(5) { animation-delay: 0.24s; }
.hero-mock { animation: rise 0.9s 0.2s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Hero picture story: reply 8 gets approved, the bar fills, it's sent back */
.hero-mock .pg-bar { width: 92%; transition: width 0.8s ease; }
.hero-mock .r8 { transition: border-color 0.3s; }
.hero-mock .r8-done { display: none; }
.hero-mock .approve-btn { transition: transform 0.15s, box-shadow 0.3s; }
.hero-mock.press .approve-btn { transform: scale(0.94); box-shadow: 0 0 0 4px rgba(26, 127, 55, 0.25); }
.hero-mock.done8 .r8 { border-left: 3px solid var(--ok); }
.hero-mock.done8 .r8 .mock-actions { display: none; }
.hero-mock.done8 .r8-done { display: block; animation: rise 0.4s both; }
.hero-mock.done8 .pg-bar { width: 100%; }
.hero-mock .mock-toast { opacity: 0; transform: translateY(10px); transition: opacity 0.4s, transform 0.4s; }
.hero-mock.sent .mock-toast { opacity: 1; transform: none; }

/* Scroll reveal (only when JS is running, so the page never stays hidden) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s cubic-bezier(.2, .7, .2, 1), transform 0.7s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* Feature rows */
.frow { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; margin-top: 64px; }
.frow.flip .ftext { order: 2; }
.fkicker { font-size: 12.5px; font-weight: 650; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.ftext h3 { font-family: var(--serif); font-weight: 600; font-size: 26px; line-height: 1.2; margin: 0 0 12px; }
.ftext p { color: var(--ink-2); font-size: 16px; line-height: 1.6; margin: 0; max-width: 460px; }
.fmock { padding: 18px; font-size: 13px; }
.features { margin-top: 64px; }

/* Upload picture */
.up-file { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px dashed var(--line-2); border-radius: 8px; background: var(--q-bg); flex-wrap: wrap; }
.pdf-icon { width: 34px; height: 42px; border-radius: 4px; background: var(--bad); color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6px; }
.up-found { margin-left: auto; }
.up-list { margin-top: 12px; display: grid; gap: 6px; }
.up-h { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-2); padding: 4px 2px 0; }
.up-row { display: grid; grid-template-columns: 40px 1fr; gap: 8px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 7px; font-family: var(--serif); font-size: 13.5px; }
.up-row b { font-family: var(--sans); color: var(--ink-2); }

/* Approval picture */
.ap-done { background: var(--ok-soft); color: #0f5323; font-weight: 600; border-radius: 7px; padding: 10px 12px; margin-bottom: 12px; }
.ap-row { display: grid; gap: 8px; }
.ap-item { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; }
.ap-item b { color: var(--ink-2); }
.ap-text { font-family: var(--serif); font-size: 13.5px; }
.ap-item .pill { white-space: nowrap; }
.ap-item.query { border-left: 3px solid var(--bad); }
.ap-bubble { grid-column: 2 / -1; background: var(--warn-soft); border-radius: 7px; padding: 8px 10px; font-size: 12.5px; }
.ap-bubble b { display: block; color: var(--ink); font-size: 11.5px; margin-bottom: 2px; }

/* Letterhead picture */
.doc-wrap { background: var(--bg); position: relative; padding: 26px 26px 34px; }
.doc { background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.18); padding: 22px 22px 14px; max-width: 360px; margin: 0 auto; aspect-ratio: 1 / 1.2; display: flex; flex-direction: column; }
.doc-logo { align-self: flex-start; border: 1.5px dashed var(--accent); color: var(--accent); font-weight: 700; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; border-radius: 5px; padding: 8px 14px; background: var(--accent-soft); }
.doc-title { font-weight: 700; font-size: 11px; margin: 14px 0 8px; }
.doc-meta { display: grid; gap: 4px; margin-bottom: 12px; }
.doc-meta span, .doc-tr i { display: block; height: 5px; border-radius: 3px; background: #e6e4de; width: 80%; }
.doc-tr i + i { margin-top: 4px; }
.w40 { width: 40% !important; } .w50 { width: 50% !important; } .w60 { width: 60% !important; } .w70 { width: 70% !important; } .w80 { width: 80% !important; }
.doc-table { border: 1px solid #ccc; font-size: 9px; }
.doc-tr { display: grid; grid-template-columns: 26px 1fr 1fr; }
.doc-tr > span { padding: 6px; border-top: 1px solid #ddd; }
.doc-tr > span + span { border-left: 1px solid #ddd; }
.doc-tr.head > span { background: #ecebe8; font-weight: 700; border-top: none; }
.doc-foot { margin-top: auto; border-top: 1px solid #eee; padding-top: 6px; font-size: 8.5px; color: var(--ink-3); }
.doc-foot b { color: var(--accent); }
.doc-chips { position: absolute; right: 18px; bottom: 14px; display: flex; gap: 6px; }
.chip { font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 6px; background: #fff; border: 1px solid var(--line-2); }
.chip.solid { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Sharing picture */
.sh-head { margin-bottom: 8px; }
.sh-row { display: grid; gap: 6px; }
.sh-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 12px; border: 1px solid var(--line); border-radius: 7px; }
.sh-page { margin-top: 14px; border: 1px solid var(--line); border-radius: 8px; padding: 14px; background: var(--q-bg); }
.sh-title { font-family: var(--serif); font-size: 17px; font-weight: 600; margin: 2px 0 10px; }
.sh-dl { display: flex; gap: 6px; align-items: center; }
.sh-dl .small { margin-right: 4px; }

@media (max-width: 920px) {
  .frow { grid-template-columns: 1fr; gap: 26px; margin-top: 52px; }
  .frow.flip .ftext { order: 0; }
}
@media (max-width: 560px) {
  .ap-item { grid-template-columns: 24px 1fr; }
  .ap-item .pill { grid-column: 2; justify-self: start; }
  .ftext h3 { font-size: 22px; }
  .free-badge { font-size: 15px; }
}

/* People who've asked their device for less motion get the finished state straight away */
@media (prefers-reduced-motion: reduce) {
  .hero h1 .hl { animation: none; background-size: 100% 100%; }
  .hero-copy > *, .hero-mock { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Privacy policy and terms */
.legal { max-width: 760px; padding-top: 48px; padding-bottom: 72px; line-height: 1.65; }
.legal h1 { font-family: var(--serif); font-weight: 600; font-size: 38px; margin: 0 0 6px; }
.legal h2 { font-size: 19px; margin: 34px 0 8px; }
.legal h3 { font-size: 15px; margin: 18px 0 4px; }
.legal p, .legal li { color: var(--ink); font-size: 15.5px; }
.legal ul { padding-left: 22px; }
.legal li { margin: 4px 0; }
.legal-date { color: var(--ink-3) !important; font-size: 14px !important; }
.legal .fill { background: #fff1a8; border-radius: 3px; padding: 0 4px; font-weight: 600; }
