/* The website around Skylark: the home page and the privacy policy. Colors and type match the app (app/style.css). */
:root {
  --bg-top: #f1f0ec; --bg-bottom: #deddd9;
  --card: #ffffff; --ink: #22262b; --secondary: #616870; --accent: #476fa1;
  --btn: #58729d; --btn-ink: #f8f9fa;
  --serif: "Spectral", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg-top: #343332; --bg-bottom: #141413; --card: #181716; --ink: #d4dde8; --secondary: #a0a7b0; --accent: #8ba5d0;
    --btn: #1d3758; --btn-ink: #b3c7df;
  }
}
* { box-sizing: border-box; }
html { background: var(--bg-bottom); }
body {
  margin: 0; min-height: 100vh; font-family: var(--sans); color: var(--ink); line-height: 1.5;
  background: linear-gradient(180deg, var(--bg-top), var(--bg-bottom)) fixed;
  padding: max(40px, env(safe-area-inset-top)) 16px max(32px, env(safe-area-inset-bottom));
}
a { color: var(--accent); }
main { max-width: 620px; margin: 0 auto; }
h1, h2 { font-family: var(--serif); font-weight: 500; line-height: 1.2; }

/* Home page (Tim, 2026-10-27): text on the left, a phone on the right; stacked on a phone. */
.hero { max-width: 1040px; margin: 0 auto; padding: 24px 0 8px; display: flex; flex-direction: column; align-items: center;
  gap: 44px; text-align: center; }
.hero-icon { width: 72px; height: 72px; border-radius: 17px; box-shadow: 0 2px 12px rgba(30, 40, 55, .12); }
.hero h1 { font-size: clamp(2.6rem, 7vw, 4rem); margin: 18px 0 12px; line-height: 1.05; }
.hero-line { font-size: 1.3rem; line-height: 1.4; margin: 0 auto 14px; max-width: 24em; }
.hero-more { font-size: 1.05rem; color: var(--secondary); margin: 0 auto 30px; max-width: 28em; }
.open { display: inline-block; background: var(--btn); color: var(--btn-ink); text-decoration: none; font-weight: 600;
  padding: 14px 30px; border-radius: 14px; font-size: 1.05rem; }
.note { font-size: .92rem; color: var(--secondary); margin: 16px auto 0; max-width: 26em; }

.showcase { display: flex; flex-direction: column; align-items: center; }
.stage { display: flex; align-items: center; gap: 12px; }
.phone { width: min(290px, calc(100vw - 150px)); border-radius: 44px; padding: 10px; background: #1c1d20;
  box-shadow: 0 2px 6px rgba(30, 40, 55, .1), 0 24px 60px rgba(30, 40, 55, .22); }
/* The screen keeps the screenshots' shape, so nothing is cropped; the frame grows around it. */
.screens { display: flex; width: 100%; aspect-ratio: 390 / 844; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 34px;
  scrollbar-width: none; outline: none; }
.screens::-webkit-scrollbar { display: none; }
.screens figure { flex: 0 0 100%; margin: 0; scroll-snap-align: center; }
.screens img { width: 100%; height: auto; display: block; }
.arrow { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; display: grid;
  place-items: center; background: var(--card); color: var(--accent); box-shadow: 0 2px 10px rgba(30, 40, 55, .12); }
.arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round;
  stroke-linejoin: round; }
.caption { margin-top: 22px; min-height: 4.4em; max-width: 22em; text-align: center; }
.caption b { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.4rem; }
.caption span { color: var(--secondary); }
.dots { display: flex; gap: 8px; margin-top: 6px; }
.dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: var(--secondary);
  opacity: .3; cursor: pointer; }
.dots button.on { opacity: .9; }
.free { font-size: 1.6rem; margin: 40px 0 6px; }
.free + .hero-more { margin-bottom: 0; }
/* On a phone, Free and the links go below the phone (Tim, 2026-10-27): the text column's parts join the page's
   column so they can be ordered. */
@media (max-width: 859px) {
  .hero { gap: 0; }
  .hero-text { display: contents; }
  .showcase { order: 1; margin-top: 44px; }
  .hero-end { order: 2; }
  .free { margin-top: 48px; }
}
.links { font-size: .9rem; color: var(--secondary); margin: 22px 0 0; }
.links a { color: var(--secondary); }
@media (min-width: 860px) {
  .hero { flex-direction: row; justify-content: space-between; text-align: left; padding-top: 3vh; gap: 40px; }
  .hero-text { flex: 0 1 460px; }
  .hero-line, .hero-more, .note { margin-left: 0; }
  .phone { width: 300px; }
}
@media (prefers-color-scheme: dark) {
  .phone { background: #0b0b0c; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 24px 60px rgba(0, 0, 0, .5); }
  .arrow { box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
}

/* Privacy policy */
.page h1 { font-size: 2.2rem; margin: 0 0 4px; }
.page h2 { font-size: 1.4rem; margin: 32px 0 6px; }
.page .updated { color: var(--secondary); margin: 0 0 24px; }
.page .lead { font-size: 1.1rem; }
.page li { margin-bottom: 8px; }
.back { display: inline-block; margin-bottom: 20px; text-decoration: none; }

footer { max-width: 620px; margin: 48px auto 0; text-align: center; font-size: .85rem; color: var(--secondary); }
footer a { color: var(--secondary); }
