/* Rickhouse Mail website. One stylesheet, system fonts, no trackers, no external requests. */
:root {
  --copper: #a9571b;
  --copper-bright: #c8712d;
  --copper-soft: #f3e3d3;
  --bg: #fbf8f4;
  --bg-alt: #f3eee8;
  --card: #ffffff;
  --ink: #1d1a17;
  --ink-soft: #5d554d;
  --line: #e6ded4;
  --shadow: 0 1px 2px rgba(40, 24, 10, .06), 0 12px 32px rgba(40, 24, 10, .10);
  --shadow-big: 0 2px 6px rgba(40, 24, 10, .10), 0 30px 80px rgba(40, 24, 10, .28);
  --radius: 18px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --copper: #e39a55;
    --copper-bright: #f0ac6a;
    --copper-soft: #3a2a1d;
    --bg: #16120f;
    --bg-alt: #1e1a17;
    --card: #252019;
    --ink: #f4eee7;
    --ink-soft: #b7aca0;
    --line: #342c25;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .35);
    --shadow-big: 0 2px 6px rgba(0, 0, 0, .5), 0 30px 80px rgba(0, 0, 0, .6);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--ink); line-height: 1.55; font-size: 17px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--copper); text-underline-offset: 3px; }
a:hover { color: var(--copper-bright); }
:focus-visible { outline: 3px solid var(--copper-bright); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

/* Top bar */
.nav { position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); text-decoration: none; font-size: 18px; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.nav nav { margin-left: auto; display: flex; gap: 22px; align-items: center; }
.nav nav a { color: var(--ink-soft); text-decoration: none; font-size: 15px; }
.nav nav a:hover { color: var(--ink); }
@media (max-width: 720px) { .nav nav a.hide-sm { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none;
  border: 1.5px solid transparent; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; cursor: pointer; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(180deg, #d4822f, #b8641f); color: #fff; box-shadow: 0 6px 20px rgba(184, 100, 31, .45); }
.btn-primary:hover { color: #fff; background: linear-gradient(180deg, #e0903f, #c4702a); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.btn-small { padding: 8px 16px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; }

/* Hero */
.hero { background: radial-gradient(1100px 600px at 80% -10%, rgba(227, 154, 85, .35), transparent 60%), linear-gradient(165deg, #2b150b 0%, #3e1f10 45%, #6d3716 100%);
  color: #fff; padding: 84px 0 0; overflow: hidden; }
.hero-copy { text-align: center; max-width: 820px; margin: 0 auto; }
.hero .app-icon { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 26px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.hero h1 { font-size: clamp(40px, 7vw, 76px); line-height: 1.02; letter-spacing: -.035em; margin: 0 0 20px; font-weight: 750; }
.hero h1 em { font-style: normal; color: #f0b27a; }
.hero p.lead { font-size: clamp(18px, 2.2vw, 22px); color: rgba(255, 255, 255, .84); margin: 0 auto 32px; max-width: 680px; }
.hero .cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .fine { margin: 18px 0 0; font-size: 14px; color: rgba(255, 255, 255, .62); }
.trust { display: flex; gap: 10px 26px; justify-content: center; flex-wrap: wrap; margin: 34px 0 0; padding: 0; list-style: none; font-size: 15px; color: rgba(255, 255, 255, .8); }
.trust li::before { content: "✓"; color: #f0b27a; margin-right: 8px; font-weight: 700; }
.hero-shot { margin: 56px auto 0; width: min(1040px, 100%); position: relative; }
.window { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-big); border: 1px solid rgba(255, 255, 255, .12); background: #111; }
.window img { width: 100%; }
.hero-shot .window { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; max-height: 560px; }
.hero-shot img { object-fit: cover; object-position: top; }

/* Sections */
section { padding: 96px 0; }
section.alt { background: var(--bg-alt); }
.eyebrow { color: var(--copper); font-weight: 650; font-size: 14px; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 12px; }
h2 { font-size: clamp(30px, 4.4vw, 48px); line-height: 1.08; letter-spacing: -.03em; margin: 0 0 16px; font-weight: 740; }
h3 { font-size: 20px; letter-spacing: -.01em; margin: 0 0 6px; }
.sub { font-size: 20px; color: var(--ink-soft); max-width: 680px; margin: 0 0 8px; }
.center { text-align: center; }
.center .sub { margin-inline: auto; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
@media (max-width: 920px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.card .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--copper-soft); display: grid; place-items: center; margin-bottom: 16px; color: var(--copper); }
.card .ico svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.row { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; }
.row.flip { grid-template-columns: 1.25fr 1fr; }
.row.flip .copy { order: 2; }
@media (max-width: 880px) { .row, .row.flip { grid-template-columns: 1fr; gap: 32px; } .row.flip .copy { order: 0; } }
.row .window { border: 1px solid var(--line); background: var(--card); }
.row .window.small { max-width: 560px; margin-inline: auto; }
.copy ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.copy li { padding-left: 28px; position: relative; color: var(--ink-soft); }
.copy li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px; border-left: 2.5px solid var(--copper); border-bottom: 2.5px solid var(--copper); transform: rotate(-45deg) scale(.9); }
.copy li b { color: var(--ink); font-weight: 650; }

/* Steps */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 48px 0 0; padding: 0; list-style: none; }
@media (max-width: 920px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--copper); color: #fff; font-weight: 700; margin-bottom: 14px; }
.steps li p { margin: 4px 0 0; color: var(--ink-soft); font-size: 16px; }

/* Pills */
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.pills span { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 15px; color: var(--ink-soft); }

/* Download */
.download { background: linear-gradient(165deg, #2b150b, #4a2411 55%, #7a3f18); color: #fff; border-radius: 28px; padding: 64px 40px; text-align: center; }
.download h2 { color: #fff; }
.download p { color: rgba(255, 255, 255, .8); max-width: 640px; margin: 0 auto 28px; font-size: 19px; }
.download .meta { font-size: 14px; color: rgba(255, 255, 255, .6); margin-top: 20px; }
.download code { background: rgba(255, 255, 255, .1); padding: 2px 8px; border-radius: 6px; word-break: break-all; font-size: 13px; }

/* FAQ */
.faq { max-width: 780px; margin: 40px auto 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 640; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--copper); font-size: 24px; line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-soft); margin: 12px 0 0; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 48px 0; color: var(--ink-soft); font-size: 15px; }
footer .cols { display: flex; gap: 40px; flex-wrap: wrap; justify-content: space-between; }
footer a { color: var(--ink-soft); }
footer a:hover { color: var(--copper); }
footer .legal { margin-top: 28px; font-size: 13px; max-width: 760px; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }

/* Text pages (privacy, help) */
.page { padding: 64px 0 96px; }
.page .wrap { max-width: 780px; }
.page h1 { font-size: clamp(34px, 5vw, 52px); letter-spacing: -.03em; line-height: 1.08; margin: 0 0 12px; }
.page h2 { font-size: 28px; margin: 48px 0 12px; letter-spacing: -.02em; }
.page h3 { margin: 28px 0 6px; }
.page p, .page li { color: var(--ink-soft); }
.page li { margin: 6px 0; }
.page .updated { color: var(--ink-soft); font-size: 15px; margin: 0 0 32px; }
.callout { background: var(--copper-soft); border-left: 4px solid var(--copper); border-radius: 10px; padding: 16px 20px; margin: 24px 0; color: var(--ink); }
.callout p { color: var(--ink); margin: 0; }
.bigsteps { counter-reset: b; list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 18px; }
.bigsteps > li { counter-increment: b; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px 22px 76px; position: relative; box-shadow: var(--shadow); }
.bigsteps > li::before { content: counter(b); position: absolute; left: 22px; top: 20px; width: 38px; height: 38px; border-radius: 50%; background: var(--copper); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 18px; }
.bigsteps b { color: var(--ink); }
table { border-collapse: collapse; width: 100%; margin: 16px 0; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-soft); }
th { color: var(--ink); }

@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media print { .nav, .hero .cta, .download { display: none; } body { background: #fff; color: #000; } }

/* Numbered help steps */
.bigsteps { list-style: none; counter-reset: b; padding: 0; margin: 16px 0 8px; }
.bigsteps li { counter-increment: b; position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px 16px 62px; margin: 10px 0; color: var(--ink); }
.bigsteps li::before { content: counter(b); position: absolute; left: 16px; top: 14px; width: 32px; height: 32px; border-radius: 50%; background: var(--copper); color: #fff; font-weight: 700; display: grid; place-items: center; }
.page code { background: var(--copper-soft); padding: 1px 6px; border-radius: 6px; font-size: .92em; }
