/* Lectern website. System fonts only: the site makes no third-party requests. */
:root{
  color-scheme:light dark;
  --bg:#F5F3EC;--card:#FCFBF7;--ink:#17211E;--muted:#4F5D58;--link:#1F6B57;--line:#D8D8CC;
  --green:#4FC3A1;--on-green:#10231D;--green-edge:#2E8F74;
  /* Illustration only. Bars stand in for script lines, so they carry no text contrast duty. */
  --device:#17211E;--bar:#C9CBBF;--bar-now:#6B7872;
  --sans:-apple-system,BlinkMacSystemFont,'SF Pro Text',system-ui,sans-serif;
  --serif:'Iowan Old Style','Palatino Linotype',Georgia,serif;
  --gutter:20px;
}
@media (min-width:480px){:root{--gutter:28px}}
@media (min-width:768px){:root{--gutter:40px}}
@media (min-width:1024px){:root{--gutter:56px}}
@media (min-width:1280px){:root{--gutter:72px}}
@media (prefers-color-scheme:dark){:root{
  --bg:#101614;--card:#18201D;--ink:#EEF2EF;--muted:#A3AFAA;--link:#8FDCC6;--line:#2B3632;
  --green-edge:#4FC3A1;
  --device:#3A4742;--bar:#37443F;--bar-now:#8A9791;
}}

*{box-sizing:border-box}
/* The sticky nav is 64px tall, so anchors stop below it. */
html{scroll-padding-top:84px}
@media (prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--sans);font-size:17px;line-height:1.55;-webkit-font-smoothing:antialiased}
img,svg{max-width:100%}
p{margin:0}
a{color:var(--link);text-underline-offset:.16em;border-radius:4px}
a:focus-visible{outline:2px solid var(--link);outline-offset:2px}
h1,h2,h3{font-family:var(--serif);font-weight:700;letter-spacing:-.01em;line-height:1.12;margin:0}
h2{font-size:clamp(26px,5vw,38px)}
h3{font-size:20px}

/* The gutter is set with padding-left and padding-right only, so a section's vertical padding never wipes it out. */
.wrap{max-width:1200px;margin:0 auto;padding-left:max(var(--gutter),env(safe-area-inset-left,0px));padding-right:max(var(--gutter),env(safe-area-inset-right,0px))}

/* Parked above the page, which cannot add scroll width or height. */
.skip{position:absolute;left:8px;top:-80px;z-index:20;background:var(--card);color:var(--ink);padding:10px 14px;border:1px solid var(--line);border-radius:8px}
.skip:focus{top:8px}

/* Nav */
/* The plain background is the fallback where color-mix is not supported. */
nav{position:sticky;top:0;z-index:10;background:var(--bg);background:color-mix(in srgb,var(--bg) 88%,transparent);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}
nav .wrap{display:flex;align-items:center;justify-content:space-between;gap:16px;height:64px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink);font-family:var(--serif);font-weight:700;font-size:20px}
.brand img{width:32px;height:32px;border-radius:8px}
nav .links{display:flex;gap:22px;font-size:14px;font-weight:600}
/* 44px tall so the links are a fair touch target. */
nav .links a{display:inline-flex;align-items:center;min-height:44px;color:var(--muted);text-decoration:none}
nav .links a:hover{color:var(--ink);text-decoration:underline}
/* On a phone only the links marked keep stay, so Support is always one tap away. */
@media (max-width:680px){nav .links a:not(.keep){display:none}}

/* Hero */
.hero .wrap{padding-top:clamp(40px,7vw,88px);padding-bottom:clamp(44px,7vw,88px);display:grid;gap:clamp(36px,5vw,56px);align-items:center}
@media (min-width:1200px){.hero .wrap{grid-template-columns:minmax(0,.5fr) minmax(0,1fr)}}
.hero h1{font-size:clamp(40px,8vw,72px)}
.sub{font-size:clamp(18px,2.6vw,22px);font-weight:600;margin-top:10px}
.lead{max-width:46ch;margin-top:18px;color:var(--muted)}
.store{margin-top:28px;display:flex;flex-wrap:wrap;align-items:center;gap:12px 18px}
.badge{display:inline-block;line-height:0;border-radius:9px}
.badge img{width:150px;height:50px}
.soon{display:inline-flex;align-items:center;min-height:50px;padding:0 20px;border:1px solid var(--line);border-radius:9px;background:var(--card);font-weight:600;font-size:16px}
.terms{font-size:14px;color:var(--muted)}
/* App Store switch: set data-ios on body to "live" when the app is released. */
body[data-ios=soon] .ios-live, body[data-ios=live] .ios-soon{display:none}

/* Hero illustration: script here, slide there. Two drawings so they can stack on a phone and keep their lettering readable. */
.stage{margin:0;max-width:820px;display:flex;align-items:flex-start;gap:clamp(20px,3vw,36px)}
.stage-part{min-width:0}
.stage-part svg{display:block;width:100%;height:auto}
/* The flex ratios match the viewBox widths (300 and 480), so both drawings come out the same height. */
.stage-ipad{flex:300 1 0}
.stage-display{flex:480 1 0}
.cap{font-size:14px;color:var(--muted);margin-top:10px;text-align:center}
@media (max-width:680px){
  .stage{flex-direction:column;align-items:center;gap:28px}
  .stage-part{flex:none;width:100%}
  .stage-ipad{max-width:270px}
}
.i-device{fill:var(--device)}
.i-screen{fill:var(--card)}
.i-strip{fill:var(--bg);stroke:var(--line)}
.i-bar{fill:var(--bar)}
.i-bar-now{fill:var(--bar-now)}
.i-line{fill:none;stroke:var(--ink);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.i-ring{fill:none;stroke:var(--line);stroke-width:1.5}
.i-text{fill:var(--ink);font-family:var(--sans);font-weight:700}
.i-text-muted{fill:var(--muted);font-family:var(--sans)}
.i-title{fill:var(--ink);font-family:var(--serif);font-weight:700}
/* Green on the light background is about 2:1, so a green fill that means something gets a darker edge. */
.i-green{fill:var(--green);stroke:var(--green-edge);stroke-width:1}
.i-halo{fill:var(--green);opacity:.28}

/* Sections */
section .wrap{padding-top:clamp(48px,7vw,84px);padding-bottom:clamp(48px,7vw,84px)}
section{border-top:1px solid var(--line)}
.intro{max-width:62ch;color:var(--muted);margin-top:14px}
/* The four modes sit 1, 2 by 2 or 4 across, never 3 and 1. */
.grid{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;margin-top:30px}
@media (min-width:560px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:1086px){.grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
.card{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:22px}
.card h3{margin-bottom:8px}
.card p{color:var(--muted);font-size:15.5px}
.card p + p{margin-top:10px}

/* Mode glyphs: a green tile with a dark drawing on it, never the other way round. */
.glyph{display:block;width:44px;height:44px;padding:9px;margin-bottom:16px;border-radius:12px;background:var(--green);border:1px solid var(--green-edge);fill:none;stroke:var(--on-green);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* Importing: one row per kind of file */
.ledger{margin:30px 0 0;border-top:1px solid var(--line);max-width:860px}
.ledger div{display:grid;grid-template-columns:170px minmax(0,1fr);gap:4px 24px;padding:16px 0;border-bottom:1px solid var(--line)}
.ledger dt{font-family:var(--serif);font-weight:700;font-size:20px;line-height:1.3}
.ledger dd{margin:0;color:var(--muted)}
@media (max-width:560px){.ledger div{grid-template-columns:minmax(0,1fr)}}
.advice{margin-top:30px;max-width:860px;border-left:5px solid var(--green-edge)}
.advice p{font-size:17px}
.chip{display:inline-block;font-size:13px;font-weight:700;line-height:1;padding:6px 10px;border-radius:999px;margin-bottom:12px;background:var(--green);color:var(--on-green);border:1px solid var(--green-edge)}
.chip.quiet{background:transparent;color:var(--muted);border-color:var(--line)}
.pair{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px;margin-top:18px;max-width:860px}

/* Presenting */
.split{display:grid;gap:30px;margin-top:30px;align-items:start}
@media (min-width:900px){.split{grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:48px}}
ol.steps{margin:0;padding:0;list-style:none;counter-reset:step;display:grid;gap:18px;max-width:62ch}
ol.steps li{counter-increment:step;position:relative;padding-left:48px;color:var(--muted)}
ol.steps li::before{content:counter(step);position:absolute;left:0;top:-2px;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:var(--green);border:1px solid var(--green-edge);color:var(--on-green);font-weight:700;font-size:15px}
ol.steps strong,.card strong{color:var(--ink)}
.stack{display:grid;gap:18px}

/* Support */
.contact{margin-top:26px;max-width:860px}
.contact p{font-size:17px}
.contact .mail{font-family:var(--serif);font-weight:700;font-size:clamp(20px,4.6vw,26px);color:var(--ink);overflow-wrap:anywhere}
.contact .mail a{color:var(--link)}
.faq{margin-top:18px;max-width:860px;display:grid;gap:12px}
.faq .card p{font-size:17px}

/* Footer */
footer{border-top:1px solid var(--line)}
footer .wrap{padding-top:24px;padding-bottom:36px;align-items:center;color:var(--muted);font-size:14px;display:flex;flex-wrap:wrap;gap:8px 22px;justify-content:space-between}
footer a{display:inline-flex;align-items:center;min-height:44px;color:var(--muted)}
footer a:hover{color:var(--ink)}
footer .links{display:flex;flex-wrap:wrap;gap:8px 22px}

/* The privacy policy: a single readable column. */
.doc .wrap{max-width:760px;padding-top:clamp(40px,6vw,72px);padding-bottom:clamp(40px,6vw,72px)}
.doc h1{font-size:clamp(30px,6vw,44px)}
.doc h2{font-size:22px;margin-top:38px}
.doc p{color:var(--muted);margin-top:12px}
.doc strong{color:var(--ink)}
.doc .dated{font-size:14px;margin-top:8px}
