/* Hushfold landing page. Marigold brand, light and dark from the system setting. */
:root {
  --accent: #A06C00;
  --fill: #E0A325;
  --on-fill: #1B1D21;
  --fill-hover: #C98A10;
  --bg: #FFFFFF;
  --tint: #FFF8EA;
  --text: #1B1D21;
  --muted: #4A4E55;
  --line: #ECE6D8;
  --card: #FFFFFF;
  --frame: #F3F1EC;
  --shadow: 0 1px 2px rgba(60, 40, 0, .06), 0 12px 32px -12px rgba(60, 40, 0, .18);
  --glow: rgba(242, 181, 68, .32);
  --radius: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --accent: #F2B544;
    --fill: #F2B544;
    --on-fill: #1B1608;
    --fill-hover: #F7CA72;
    --bg: #17181B;
    --tint: #1E1C18;
    --text: #ECEDEF;
    --muted: #A3A8AF;
    --line: #2C2D31;
    --card: #1F2024;
    --frame: #26272B;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .7);
    --glow: rgba(242, 181, 68, .14);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 720px) { body { font-size: 18px; } }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(1.75rem, 4.2vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
kbd {
  font: 600 .85em/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  padding: .2em .45em; border: 1px solid var(--line); border-bottom-width: 2px;
  border-radius: 6px; background: var(--card); white-space: nowrap;
}
.wrap { width: min(100% - 32px, 1120px); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 50; padding: 10px 14px; background: var(--card); border-radius: 8px; }
.skip:focus { top: 12px; }
main:focus { outline: none; }
.fine { font-size: .875rem; color: var(--muted); }
.ico { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico .fill { fill: var(--accent); stroke: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  background: var(--fill); color: var(--on-fill); font-weight: 650; text-decoration: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 6px 18px -8px rgba(160, 108, 0, .7);
  transition: background-color .15s ease, transform .15s ease;
}
.btn:hover { background: var(--fill-hover); color: var(--on-fill); }
.btn:active { transform: translateY(1px); }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: .9rem; box-shadow: none; }
.btn-ghost { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); box-shadow: none; }
.btn-ghost:hover { background: var(--tint); color: var(--accent); }
.link-quiet { color: var(--text); font-weight: 600; text-decoration: none; padding: 10px 4px; }
.link-quiet:hover { color: var(--accent); }
.link-strong { font-weight: 650; }

/* Launch banner */
.launch { background: var(--fill); color: var(--on-fill); font-size: .92rem; text-align: center; padding: 10px 16px; }
.launch p { margin: 0; }
.launch a { color: var(--on-fill); font-weight: 700; white-space: nowrap; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}
.top-inner { display: flex; align-items: center; gap: 20px; min-height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 650; font-size: 1.08rem; text-decoration: none; letter-spacing: -.01em; }
.logo svg { color: var(--accent); }
.top-nav { display: none; gap: 26px; margin-left: auto; }
.top-nav a { color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 500; }
.top-nav a:hover { color: var(--text); }
.top .btn { margin-left: auto; }
@media (min-width: 820px) {
  .top-nav { display: flex; }
  .top .btn { margin-left: 8px; }
}

/* Hero */
.hero { position: relative; padding: 56px 0 0; isolation: isolate; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: -220px; width: 1200px; height: 760px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--glow), transparent 72%);
}
.hero::after { content: ""; position: absolute; z-index: -2; inset: 0; background: linear-gradient(var(--tint), var(--bg) 70%); }
.hero-text { text-align: center; max-width: 820px; }
.eyebrow { display: inline-block; margin: 0 0 18px; padding: 6px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--accent); font-size: .85rem; font-weight: 600; }
.hero h1 { font-size: clamp(2.3rem, 7.4vw, 4.3rem); font-weight: 750; letter-spacing: -.035em; line-height: 1.04; margin-bottom: 22px; }
.lede { font-size: 1.1rem; color: var(--muted); max-width: 680px; margin: 0 auto 28px; }
@media (min-width: 720px) { .lede { font-size: 1.2rem; } }
.actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 22px; margin-bottom: 14px; }
.hero-shot { margin-top: 44px; max-width: 1100px; }
.hero-shot img { border-radius: 14px 14px 0 0; box-shadow: 0 30px 80px -30px rgba(60, 40, 0, .35); }
@media (prefers-color-scheme: dark) { .hero-shot img { box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9); } }

/* Trust strip */
.trust { border-block: 1px solid var(--line); background: var(--card); }
.trust-list { list-style: none; margin-block: 0; padding: 18px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; font-size: .94rem; font-weight: 550; }
.trust-list li { display: flex; align-items: center; gap: 10px; }
@media (min-width: 860px) { .trust-list { display: flex; justify-content: space-between; } }

/* Sections */
section { padding: 72px 0; }
@media (min-width: 860px) { section { padding: 104px 0; } }
.hero { padding-block: 64px 0; }
.trust { padding: 0; }
.problem { text-align: center; }
.problem h2 { margin-bottom: 18px; }
.problem p { color: var(--muted); font-size: 1.12rem; }
.how { background: var(--tint); }
.how h2 { margin-bottom: 40px; }
.steps { list-style: none; padding: 0; margin: 0 0 48px; display: grid; gap: 18px; counter-reset: s; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.steps h3 { margin: 14px 0 10px; }
.steps p { margin: 0; color: var(--muted); }
.num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--fill); color: var(--on-fill); font-weight: 700; }
.detail { margin: 0 auto; max-width: 620px; text-align: center; }
.detail figcaption { margin-top: 14px; color: var(--muted); font-size: .95rem; }

/* Screenshot frames */
.frame { position: relative; border-radius: 14px; overflow: hidden; background: var(--frame); border: 1px solid var(--line); box-shadow: var(--shadow); padding-top: 28px; }
.frame img { width: 100%; }
.dots { position: absolute; top: 10px; left: 12px; display: flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
@media (prefers-color-scheme: dark) { .dots i { background: #3A3B40; } }
.frame-plain { padding-top: 0; }
.frame-tall { width: min(100%, 300px); margin-inline: auto; border-radius: 26px; padding: 10px; background: var(--card); }
.frame-tall img { border-radius: 18px; }

/* Feature rows */
.features { padding-bottom: 40px; overflow-x: clip; }
.row { display: grid; gap: 26px; align-items: center; margin-bottom: 72px; }
.row h3 { font-size: clamp(1.45rem, 3vw, 1.9rem); font-weight: 700; letter-spacing: -.02em; margin-bottom: 14px; }
.row-text p { color: var(--muted); }
.row-text p.fine { margin-top: 4px; }
@media (min-width: 900px) {
  .row { grid-template-columns: 5fr 7fr; gap: 64px; margin-bottom: 112px; }
  .row.flip .row-text { order: 2; }
}
/* Ask my archive illustration (decorative) */
.ask-card { max-width: 420px; margin-inline: auto; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 26px; box-shadow: var(--shadow); position: relative; }
.ask-card::before { content: ""; position: absolute; inset: -40px; z-index: -1; background: radial-gradient(closest-side, var(--glow), transparent); }
.ask-q { display: flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 650; margin-bottom: 18px; }
.ask-bubble { height: 44px; border-radius: 14px 14px 4px 14px; background: var(--tint); border: 1px solid var(--line); margin: 0 0 18px 18%; }
.ask-lines { display: grid; gap: 10px; margin-bottom: 20px; }
.ask-lines i, .ask-sources b { display: block; height: 10px; border-radius: 6px; background: var(--line); }
.ask-lines .short { width: 60%; }
.ask-sources { display: flex; gap: 10px; }
.ask-sources b { height: 28px; width: 42%; border-radius: 999px; background: transparent; border: 1.5px solid var(--accent); opacity: .7; }

/* Privacy band */
.privacy { background: linear-gradient(180deg, var(--tint), color-mix(in srgb, var(--tint) 60%, var(--bg))); border-block: 1px solid var(--line); }
.privacy-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.privacy-head h2 { margin-bottom: 14px; }
.privacy-head p { color: var(--muted); font-size: 1.15rem; }
.cards4 { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 16px; }
@media (min-width: 640px) { .cards4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .cards4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card .ico { width: 28px; height: 28px; margin-bottom: 14px; }
.card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }
.tip { max-width: 640px; margin: 22px auto 0; padding: 14px 18px; border-radius: 12px; border: 1px dashed color-mix(in srgb, var(--accent) 50%, transparent); font-size: .92rem; color: var(--muted); text-align: center; }
.tip strong { color: var(--text); }

/* Pricing */
.pricing h2 { margin-bottom: 44px; }
.plans { display: grid; gap: 20px; max-width: 860px; margin: 0 auto 28px; }
@media (min-width: 760px) { .plans { grid-template-columns: 1fr 1fr; align-items: stretch; } }
.plan { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 30px; box-shadow: var(--shadow); }
.plan-pro { border: 2px solid var(--fill); box-shadow: 0 0 0 6px color-mix(in srgb, var(--fill) 14%, transparent), var(--shadow); }
.price { margin: 8px 0 20px; color: var(--muted); }
.amount { font-size: 2.6rem; font-weight: 750; letter-spacing: -.03em; color: var(--text); line-height: 1.1; }
.price s { font-size: 1.3rem; margin-right: 4px; }
.per { font-size: 1rem; }
.ticks { list-style: none; padding: 0; margin: 0 0 26px; flex: 1; }
.ticks li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.plan .btn { align-self: stretch; }
.under { max-width: 760px; margin: 0 auto 28px; text-align: center; color: var(--muted); font-size: .95rem; }
.unlock { max-width: 760px; margin: 0 auto 28px; text-align: center; }
.unlock h3 { font-size: 1rem; margin-bottom: 10px; }
.unlock ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; counter-reset: u; font-size: .93rem; color: var(--muted); }
.unlock li { counter-increment: u; background: var(--tint); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }
.unlock li::before { content: counter(u) ". "; font-weight: 700; color: var(--accent); }
.compare { max-width: 860px; margin: 0 auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.compare > summary { cursor: pointer; padding: 16px 20px; font-weight: 650; list-style-position: inside; }
.table-wrap { padding: 0 8px 12px; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { padding: 10px 8px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { border-top: 0; font-size: .85rem; color: var(--muted); }
tbody th { font-weight: 500; }
td { width: 26%; }
@media (min-width: 640px) { td { width: 22%; } th, td { padding: 12px 14px; } }

/* Extras */
.extras { background: var(--tint); border-block: 1px solid var(--line); padding-block: 64px; }
.grid6 { list-style: none; padding: 0; margin: 0; display: grid; gap: 28px 24px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .grid6 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .grid6 { grid-template-columns: repeat(3, 1fr); } }
.grid6 li { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; }
.grid6 .ico { grid-row: span 2; margin-top: 2px; }
.grid6 h3 { font-size: 1rem; margin-bottom: 4px; }
.grid6 p { margin: 0; color: var(--muted); font-size: .95rem; }

/* FAQ */
.faq h2 { margin-bottom: 36px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; padding: 20px 2px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: 1.06rem; font-weight: 600; letter-spacing: -.005em; line-height: 1.35; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); color: var(--accent); font-weight: 600; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 2px 8px; }

/* Final CTA */
.final { padding-bottom: 96px; position: relative; isolation: isolate; overflow: hidden; }
.final::before { content: ""; position: absolute; z-index: -1; left: 50%; bottom: -320px; width: 1000px; height: 640px; transform: translateX(-50%); background: radial-gradient(closest-side, var(--glow), transparent 72%); }
.final h2 { font-size: clamp(2rem, 5.6vw, 3.2rem); margin-bottom: 14px; }
.final p { color: var(--muted); font-size: 1.12rem; }
.final .btn { margin: 8px 0 14px; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: .9rem; color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 10px; }
.foot nav a { color: var(--text); }
.foot .foot-site a { color: var(--muted); }

/* Scroll-in fades (only with JavaScript and without reduced motion) */
.motion .reveal.pending { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.motion .reveal.pending.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .motion .reveal.pending { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}

/* Guide pages (/hushfold/guides/) */
.guide { padding: 48px 0 80px; }
.guide article h1 { font-size: clamp(2rem, 5.6vw, 3rem); font-weight: 750; letter-spacing: -.03em; line-height: 1.08; margin: 8px 0 22px; }
.guide article h1 + p { font-size: 1.15rem; color: var(--muted); }
.guide article h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); margin: 44px 0 14px; }
.guide article ol, .guide article ul { padding-left: 1.4em; margin: 0 0 1.2em; }
.guide article li { margin-bottom: 10px; padding-left: 4px; }
.guide article ol li::marker { color: var(--accent); font-weight: 700; }
.guide article p:last-child { font-size: .9rem; color: var(--muted); margin-top: 40px; }
.guide-back { font-size: .9rem; margin: 0; }
.guide-cta { margin-top: 48px; padding: 30px; border-radius: 20px; background: var(--tint); border: 2px solid var(--fill); text-align: center; }
.guide-cta .guide-cta-title { color: var(--text);  font-size: 1.5rem; font-weight: 750; letter-spacing: -.02em; margin-bottom: 8px; }
.guide-cta p { color: var(--muted); }
.guide-cta .btn { margin-top: 4px; }
