/* readrubrica.com: one stylesheet for the marketing pages. Vellum and midnight,
   the app's own jewel tones, Fraunces for display and Inter for everything else. */
:root {
  --bg: #F4EBD9;
  --bg-deep: #EBDFC6;
  --card: #FBF5EA;
  --ink: #1D1A16;
  --soft: #4A443B;
  --mute: #7A7061;
  --line: #D9C9A6;
  --accent: #2447C9;
  --accent-ink: #FFFFFF;
  --verm: #C8351E;
  --gold: #B8860B;
  --green: #2E7D6B;
  --shadow: 0 18px 40px rgba(40, 28, 12, .16);
  --radius: 22px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16130F;
    --bg-deep: #1C1813;
    --card: #211C17;
    --ink: #EDE3D0;
    --soft: #C4B9A3;
    --mute: #9A8F7C;
    --line: #3A332B;
    --accent: #7F9BFF;
    --accent-ink: #0F1324;
    --verm: #F06A52;
    --gold: #E2B64A;
    --green: #5FBFAC;
    --shadow: 0 18px 40px rgba(0, 0, 0, .45);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 Inter, system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3 { font-family: Fraunces, Georgia, serif; font-weight: 600; letter-spacing: -.01em; margin: 0; }
p { margin: 0 0 14px; color: var(--soft); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }

/* Top bar */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: Fraunces, Georgia, serif; font-size: 22px; font-weight: 600; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--soft); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--ink); }
@media (max-width: 640px) { .nav .hide-sm { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid var(--line); background: var(--card); color: var(--ink); line-height: 1.2; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn small { display: block; font-weight: 500; font-size: 12px; opacity: .8; }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn[aria-disabled="true"] { cursor: default; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.note { font-size: 14px; color: var(--mute); margin-top: 12px; }

/* Hero */
.hero { padding: 56px 0 24px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-icon { width: 84px; height: 84px; border-radius: 20px; box-shadow: var(--shadow); margin-bottom: 26px; }
.hero h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.02; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--verm); }
.hero .lede { font-size: 20px; line-height: 1.5; margin-bottom: 26px; max-width: 34ch; }
.phone { width: 100%; max-width: 340px; margin: 0 auto; border: 10px solid #1D1A16; border-radius: 46px; box-shadow: var(--shadow), 0 0 0 1px var(--line); overflow: hidden; background: var(--card); }
@media (prefers-color-scheme: dark) { .phone { border-color: #050403; } }
@media (max-width: 820px) {
  .hero { padding-top: 32px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .phone { max-width: 300px; }
}

/* Sections */
section { padding: 64px 0; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--verm); margin-bottom: 10px; }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); line-height: 1.1; margin-bottom: 14px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.flip .copy { order: 2; }
.split h3 { font-size: 30px; line-height: 1.15; margin-bottom: 14px; }
.split ul { padding-left: 20px; color: var(--soft); margin: 0; }
.split li { margin-bottom: 6px; }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split.flip .copy { order: 0; }
}

.band { background: var(--bg-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { font-size: 21px; margin-bottom: 8px; }
.card p { font-size: 16px; margin: 0; }
.card .dot { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px; font-size: 20px; background: var(--bg); border: 1px solid var(--line); }

/* Screenshot rail */
.rail { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 24px; margin: 0 -16px; scrollbar-width: thin; }
.rail figure { flex: 0 0 min(260px, 70vw); margin: 0; scroll-snap-align: center; }
.rail img { height: auto; border: 8px solid #1D1A16; border-radius: 36px; box-shadow: var(--shadow); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
@media (max-width: 820px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.plan.best { border: 2px solid var(--accent); }
.plan .name { font-weight: 600; color: var(--ink); }
.plan .price { font-family: Fraunces, Georgia, serif; font-size: 40px; color: var(--ink); line-height: 1.1; margin: 8px 0 4px; }
.plan .price span { font-family: Inter, sans-serif; font-size: 16px; color: var(--mute); font-weight: 500; }
.plan p { font-size: 15px; margin: 0; }
.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 820px) { .twocol { grid-template-columns: 1fr; } }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding: 7px 0 7px 30px; position: relative; color: var(--soft); border-bottom: 1px solid var(--line); }
.checks li:last-child { border-bottom: 0; }
.checks li::before { content: ""; position: absolute; left: 4px; top: 14px; width: 12px; height: 7px; border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg); }
.checks.gold li::before { border-color: var(--gold); }

/* FAQ */
details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--mute); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 12px 0 0; }

/* Promise strip */
.promise { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: center; }
@media (max-width: 820px) { .promise { grid-template-columns: repeat(2, 1fr); } }
.promise strong { display: block; font-family: Fraunces, Georgia, serif; font-size: 22px; color: var(--ink); margin-bottom: 4px; }
.promise span { font-size: 15px; color: var(--soft); }

/* CTA */
.cta { text-align: center; }
.cta img { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 22px; box-shadow: var(--shadow); }
.cta h2 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 14px; }
.cta .stores { justify-content: center; margin-top: 24px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: var(--soft); text-decoration: none; }
footer a:hover { color: var(--ink); }
footer p { margin: 0; color: var(--mute); }

/* Plain pages (support, press) */
.page { padding: 40px 0 72px; }
.page h1 { font-size: clamp(36px, 5vw, 52px); line-height: 1.08; margin-bottom: 14px; }
.page h2 { font-size: 26px; margin: 44px 0 14px; }
.assets { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.assets a { display: block; text-decoration: none; color: var(--soft); font-size: 14px; }
.assets img { border-radius: 14px; border: 1px solid var(--line); margin-bottom: 8px; background: var(--card); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Phones show the top of the screen at a calmer height; the hero one is smaller still. */
.phone { height: auto; aspect-ratio: 720 / 1180; object-fit: cover; object-position: top; }
.hero .phone { max-width: 290px; }
.hero .wrap { align-items: center; }
@media (min-width: 821px) { .hero { padding-top: 40px; } }
