/* Pilvi's site, in the icon's own colours.
 *
 * Dark only, and deliberately: the app icon's Night variant is a radial
 * ground from #22406B to #07152A, so a page in that navy is a page the icon
 * sits *in* rather than on. Against the old cream it was a hard square with
 * four visible corners — the one thing an app icon should never look like.
 *
 * The house pattern is Talo's and Cruzadas': a nav wordmark, a centred hero,
 * an App Store button that admits when there is nothing to link to yet, and
 * kicker/heading/lede sections. Shared by index.html and privacy.html so the
 * two cannot drift.
 */
:root {
  color-scheme: dark;

  --bg: #07152A;          /* the icon's outer ground */
  --bg-lift: #0E2140;     /* a panel raised off it */
  --panel-edge: #1B3358;
  --ink: #EEF3FA;
  --ink-dim: #93A7C4;
  --accent: #FFA24A;      /* the cloud's highlight */
  --accent-deep: #E9640B; /* the cloud's shadow */
  --on-accent: #1A1005;
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(120% 80% at 50% -10%, #16294A 0%, transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }

/* ---- Nav ---- */

nav {
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -.01em;
}

/* Rounded, as the house style has it everywhere else. The page ground makes
   the corners invisible anyway; this is for the day somebody drops the mark
   onto something lighter. */
.wordmark img { width: 32px; height: 32px; border-radius: 8px; }

nav .links { display: flex; gap: 22px; }
nav .links a { color: var(--ink-dim); text-decoration: none; font-weight: 600; font-size: .95rem; }
nav .links a:hover { color: var(--ink); }

/* ---- Hero ---- */

.hero {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 24px 8px;
  text-align: center;
}

.hero .mark {
  width: 104px;
  height: 104px;
  margin: 0 auto 22px;
  border-radius: 24px;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  line-height: 1.08;
  margin: 0 0 14px;
  letter-spacing: -.025em;
}

h1 em { font-style: normal; color: var(--accent); }

.lead {
  font-size: 1.18rem;
  color: var(--ink-dim);
  max-width: 40rem;
  margin: 0 auto 26px;
}

.appstore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  color: var(--on-accent);
  text-decoration: none;
  padding: 13px 22px;
  border-radius: 14px;
  font-weight: 700;
}

.appstore svg { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }

/* No link yet, and it says so rather than pointing at a 404. */
.appstore.soon {
  background: var(--bg-lift);
  border: 1px solid var(--panel-edge);
  color: var(--ink-dim);
  cursor: default;
}

.platforms { margin: 16px 0 0; }

.pill {
  display: inline-block;
  padding: 4px 11px;
  border: 1px solid var(--panel-edge);
  border-radius: 999px;
  background: var(--bg-lift);
  color: var(--ink-dim);
  font-size: .85rem;
  margin: 3px;
}

/* ---- Screenshots ---- */

.shots {
  max-width: 1080px;
  margin: 42px auto 8px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.shots img {
  border-radius: 14px;
  border: 1px solid var(--panel-edge);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
}

/* The iPad shot is landscape, so it wants the width the phone strip has
   rather than one third of it. */
.shots.wide { grid-template-columns: 1fr; max-width: 900px; }

/* ---- Sections ---- */

main { max-width: 1080px; margin: 0 auto; padding: 16px 24px 40px; }

section { padding: 52px 0 8px; }

.kicker {
  color: var(--accent);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.15;
  margin: 0 0 12px;
  letter-spacing: -.015em;
}

.lede { color: var(--ink-dim); max-width: 44rem; margin: 0 0 8px; }

p { margin: 0 0 1rem; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 26px;
}

.card {
  background: var(--bg-lift);
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius);
  padding: 22px;
}

.card h3 { font-size: 1.05rem; margin: 0 0 8px; letter-spacing: -.01em; }
.card p { color: var(--ink-dim); font-size: .95rem; margin: 0; }

/* ---- Long-form pages ---- */

.prose { max-width: 40rem; margin: 0 auto; }
.prose h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: .4rem; }
.prose h2 { font-size: 1.15rem; margin: 2.4rem 0 .5rem; }
.prose .lede { font-size: 1.15rem; margin-bottom: 2rem; }

ul { padding-left: 1.1rem; margin: 0 0 1rem; }
li { margin-bottom: .35rem; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .9em;
  background: var(--bg-lift);
  border: 1px solid var(--panel-edge);
  padding: .1em .4em;
  border-radius: 5px;
}

/* ---- Footer ---- */

footer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 24px 56px;
  border-top: 1px solid var(--panel-edge);
  color: var(--ink-dim);
  font-size: .9rem;
}

footer a { color: var(--ink-dim); }
footer a:hover { color: var(--ink); }
footer .disclaimer { font-size: .82rem; opacity: .85; margin-bottom: 0; }

@media (max-width: 46rem) {
  .cards, .shots { grid-template-columns: 1fr; }
  .shots { gap: 26px; max-width: 24rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
