/* The public front page (landing.py). vedicreader's parchment theme: its paper, Literata for text and Libre Baskerville for headings,
   hairline cards. The parchment and ink are the app's (app/src/lib/palette.ts); teal and terracotta come from the logo (static/brand/mark.svg). */
@font-face { font-family: 'Literata'; font-style: normal; font-display: swap; font-weight: 200 600; src: url(fonts/literata-latin-wght-normal.woff2) format("woff2"); }
@font-face { font-family: 'Libre Baskerville'; font-style: normal; font-display: swap; font-weight: 400; src: url(fonts/libre-baskerville-latin-400-normal.woff2) format("woff2"); }

:root {
  --bg: #F5F1E6; --fg: #4A3F35; --card: #FFFCF5; --muted: #ECE5D8; --muted-fg: #6E5B49; --border: #DCD0B9;
  --primary: #1F4D4A; --link: #1F4D4A; --acc: #A34E3B; --btn: #1F4D4A; --btn-fg: #F5F1E6; --flag: #B0413E;
  --night-bg: #17120F; --night-fg: #D9CBB5; --night-muted: #B5A894; --night-acc: #E39A82; --night-card: #221B17; --night-border: #3A2F28;
  --shadow: 2px 3px 5px 0 hsl(28 13% 20% / .12), 2px 8px 10px -1px hsl(28 13% 20% / .12);
  --paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360' viewBox='0 0 360 360'%3E%3Cfilter id='tooth'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Cfilter id='cloud'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .018' numOctaves='4' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .36 0 0 0 0 .24 0 0 0 1.6 -.7'/%3E%3C/filter%3E%3Cfilter id='fibre'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.004 .18' numOctaves='2' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .32 0 0 0 0 .22 0 0 0 2.4 -1.35'/%3E%3C/filter%3E%3Crect width='360' height='360' fill='%238b7355' opacity='.13' filter='url(%23tooth)'/%3E%3Crect width='360' height='360' opacity='.10' filter='url(%23cloud)'/%3E%3Crect width='360' height='360' opacity='.07' filter='url(%23fibre)'/%3E%3C/svg%3E");
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #2D2621; --fg: #ECE5D8; --card: #3A322C; --muted: #342D28; --muted-fg: #B5A894; --border: #4B4038;
    --primary: #8DBDB5; --link: #8DBDB5; --acc: #E39A82; --btn: #8DBDB5; --btn-fg: #2D2621; --flag: #E8847E; color-scheme: dark; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; color: var(--fg); background: var(--paper) var(--bg);
  font: 400 1.0625rem/1.65 'Literata', Georgia, serif; -webkit-font-smoothing: antialiased;
}
@media (prefers-color-scheme: dark) { body { background-image: none; } }
h1, h2, h3 { font-family: 'Libre Baskerville', Georgia, serif; font-weight: 400; letter-spacing: -.01em; line-height: 1.25; margin: 0; color: var(--fg); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem); color: var(--acc); margin-bottom: 1.5rem; }
h3 { font-size: 1.2rem; margin-bottom: .45rem; }
p { margin: 0 0 1rem; }
a { color: var(--link); text-decoration-color: color-mix(in srgb, var(--link) 40%, transparent); text-underline-offset: .2em; }
a:hover { text-decoration-color: currentColor; }
:is(a, button, summary):focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--card); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: .5rem; }
.kicker { display: block; font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--acc); margin: 0 0 .9rem; }
.muted { color: var(--muted-fg); }
.small { font-size: .9375rem; }

/* masthead */
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1rem; padding-bottom: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--fg); text-decoration: none; }
.brand img { height: 46px; width: auto; }
.top nav ul { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; font-size: .9375rem; }
.top nav a { color: var(--muted-fg); text-decoration: none; }
.top nav a:hover { color: var(--acc); }
@media (max-width: 40rem) { .top nav li:not(:last-child) { display: none; } }

/* buttons: vedicreader's, a paper card with an inked hairline and slightly uneven corners; the primary one filled */
.btns { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.6rem 0 .9rem; }
.btn {
  display: inline-flex; align-items: center; gap: .55rem; min-height: 48px; padding: .7rem 1.25rem; border-radius: 2px 5px 3px 4px;
  font: 600 1rem/1.2 'Literata', Georgia, serif; letter-spacing: .015em; text-decoration: none; cursor: pointer;
  background: var(--paper) var(--card); color: var(--fg); border: 1px solid color-mix(in srgb, var(--fg) 45%, transparent);
}
.btn:hover { background-color: var(--muted); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--btn); color: var(--btn-fg); border-color: var(--btn); }
.btn.primary:hover { background: color-mix(in srgb, var(--btn) 88%, var(--fg)); }
.btn svg { width: 1.2rem; height: 1.2rem; flex: none; }
@media (prefers-reduced-motion: reduce) { .btn:active { transform: none; } }

/* the phone: a CSS frame around a real screenshot */
.phone {
  margin: 0; width: min(100%, 300px); aspect-ratio: 1206 / 2622; padding: 9px; border-radius: 46px; background: #2a2420;
  box-shadow: var(--shadow), 0 30px 60px -30px hsl(28 30% 15% / .45); position: relative;
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 38px; background: var(--bg); }
@media (prefers-color-scheme: dark) { .phone { background: #120e0b; box-shadow: 0 0 0 1px #5B493C, 0 30px 60px -30px #000; } }
.shot { margin: 0; display: flex; flex-direction: column; align-items: center; gap: .9rem; }
.shot figcaption { font-size: .875rem; color: var(--muted-fg); text-align: center; max-width: 18rem; line-height: 1.5; }

/* hero */
.hero { display: grid; gap: 2.5rem; align-items: center; padding: 2.5rem 0 1rem; }
.hero h1 { font-size: clamp(2.6rem, 1.8rem + 3.6vw, 4.25rem); margin-bottom: 1rem; }
.hero .lede { font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem); line-height: 1.55; max-width: 32rem; }
.hero .phone { justify-self: center; }
@media (min-width: 52rem) { .hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); padding-top: 3.5rem; } }

section { margin-top: 5rem; }
#pricing > div { max-width: 40rem; }
.lede-sm { font-size: 1.2rem; line-height: 1.55; }
section > .intro { max-width: 40rem; margin: 0 0 2rem; }

/* how it works: three steps beside the voice sheet */
.how { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 52rem) { .how { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); } .how .shot { order: -1; } }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 1.6rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: .2rem 1rem; }
.steps li::before {
  content: counter(step); grid-row: span 2; width: 2.2rem; height: 2.2rem; border-radius: 999px; display: grid; place-items: center;
  border: 1px solid color-mix(in srgb, var(--acc) 55%, transparent); color: var(--acc); font-family: 'Libre Baskerville', Georgia, serif;
}
.steps li > * { grid-column: 2; }
.steps p { margin: 0; }
.say { font-style: italic; color: var(--acc); }
blockquote.say { margin: .35rem 0 .35rem; padding-left: .9rem; border-left: 2px solid color-mix(in srgb, var(--acc) 40%, transparent); }

/* features: hairline cards on the paper */
.cards { display: grid; gap: 1rem; }
@media (min-width: 40rem) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 60rem) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { background: color-mix(in srgb, var(--card) 70%, transparent); border: 1px solid color-mix(in srgb, var(--fg) 16%, transparent); padding: 1.25rem 1.35rem 1.1rem; border-radius: 3px; }
.card p { font-size: .975rem; margin-bottom: .6rem; }
.card p:last-child { margin-bottom: 0; }
.card .dot { display: inline-block; width: .6rem; height: .6rem; border-radius: 999px; margin-right: .5rem; vertical-align: .1em; }

/* screenshots in a row that scrolls sideways on a phone */
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 1.5rem; overflow-x: auto; padding: .5rem .25rem 1.5rem;
  scroll-snap-type: x mandatory; margin-top: 2.5rem; }
.gallery .shot { scroll-snap-align: center; }
.gallery .phone { width: 240px; border-radius: 38px; padding: 7px; }
.gallery .phone img { border-radius: 31px; }

/* night: the app's own night palette, always */
.night { margin-top: 5rem; background: var(--night-bg); color: var(--night-fg); padding: 4rem 0; }
.night h2 { color: var(--night-acc); }
.night .muted { color: var(--night-muted); }
.night .grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 52rem) { .night .grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.night .phone { background: #0b0907; box-shadow: 0 30px 60px -30px #000; justify-self: center; }
.night .shot figcaption { color: var(--night-muted); }

/* privacy and download */
.two { display: grid; gap: 1.5rem 3rem; }
@media (min-width: 52rem) { .two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.plain { list-style: none; padding: 0; margin: 0 0 1rem; }
.plain li { padding: .55rem 0; border-top: 1px solid color-mix(in srgb, var(--fg) 12%, transparent); }
.plain li:last-child { border-bottom: 1px solid color-mix(in srgb, var(--fg) 12%, transparent); }
.get { background: color-mix(in srgb, var(--card) 70%, transparent); border: 1px solid color-mix(in srgb, var(--fg) 16%, transparent); padding: 1.5rem; border-radius: 3px; }
.get h3 { margin-bottom: .6rem; }
.get .btns { margin: .4rem 0 1rem; }
.get ol { margin: 0; padding-left: 1.2rem; font-size: .975rem; }
.get li { margin-bottom: .35rem; }

footer.wrap { margin-top: 5rem; padding: 2rem 1.25rem 3rem; border-top: 1px solid color-mix(in srgb, var(--fg) 14%, transparent); font-size: .9375rem; color: var(--muted-fg); }
footer .row { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }
footer ul { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; list-style: none; margin: 0; padding: 0; }

/* The public documents (pages.py): privacy, terms, support, delete account. */
.doc { max-width: 42rem; padding-bottom: 3rem; }
.doc h2 { margin-top: 1.8rem; }
