/* Plouto website. System fonts only, no external requests. */
:root {
  --bg: #f5f3ee;
  --surface: #ffffff;
  --text: #14201e;
  --muted: #5a6866;
  --line: rgba(20, 32, 30, 0.1);
  --accent: #0c6b5d;
  --accent-ink: #ffffff;
  --accent-soft: rgba(15, 117, 102, 0.1);
  --gold: #e8b53f;
  --hero-a: #f5f3ee;
  --hero-b: #efece4;
  --ring: rgba(14, 119, 101, 0.12);
  --radius: 22px;
  --shadow: 0 1px 2px rgba(10, 30, 28, 0.06), 0 18px 40px -18px rgba(10, 30, 28, 0.25);
  --max: 1120px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1112;
    --surface: #131b1c;
    --text: #eef4f2;
    --muted: #9fb0ad;
    --line: rgba(238, 244, 242, 0.12);
    --accent: #4fd1b0;
    --accent-ink: #062b25;
    --accent-soft: rgba(79, 209, 176, 0.12);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 18px 40px -18px rgba(0, 0, 0, 0.7);
    --hero-a: #141717;
    --hero-b: #0b1112;
    --ring: rgba(79, 209, 176, 0.13);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; font-size: 19px; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 26px; font-size: 15px; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 680px) { .nav-links a:not(.keep) { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 17px;
  background: var(--text); color: var(--bg); border: 0; cursor: pointer;
}
.btn:hover { text-decoration: none; opacity: 0.9; }
.btn.light { background: #fff; color: #0a3d3a; }
.btn.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.55); }
.btn[aria-disabled="true"] { opacity: 0.85; cursor: default; }

/* Hero: the app's own page colours, large left-aligned title, and real cards lifted from the app */
.hero {
  background: linear-gradient(180deg, var(--hero-a), var(--hero-b));
  color: var(--text);
  overflow: hidden;
  position: relative;
}
.hero::before { display: none; /* plain paper */
  content: ""; position: absolute; right: -240px; top: -300px; width: 900px; height: 900px; border-radius: 50%;
  background: conic-gradient(var(--ring) 0 73%, transparent 73%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 70px), #000 calc(100% - 69px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 70px), #000 calc(100% - 69px));
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding: 88px 0 0; position: relative; }
.eyebrow { font-family: ui-monospace, "SF Mono", Menlo, monospace; text-transform: uppercase; letter-spacing: 0.14em; font-size: 13px; font-weight: 600; padding-bottom: 14px; border-bottom: 1.5px dashed var(--line); max-width: 30em; color: var(--accent); margin: 0 0 18px; }
.hero h1 { font-size: clamp(34px, 3.7vw, 54px); line-height: 1.02; letter-spacing: -0.035em; margin: 0 0 22px; font-weight: 790; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { font-size: clamp(19px, 2.2vw, 22px); line-height: 1.5; max-width: 30em; margin: 0 0 32px; color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.fine { font-size: 14px; color: var(--muted); margin: 0 0 56px; }
.btn.accent { background: var(--accent); color: var(--accent-ink); }
.btn.outline { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.hero-art { position: relative; height: 640px; }
.hero-art img { position: absolute; }
.hero-art .phone { left: 50%; bottom: -90px; width: 290px; margin-left: -145px; border-radius: 40px; border: 7px solid #15191b; background: #15191b; box-shadow: 0 40px 80px -20px rgba(10, 30, 28, 0.45); z-index: 1; }
.hero-art .pop { z-index: 2; border-radius: 20px; filter: drop-shadow(0 26px 30px rgba(10, 30, 28, 0.28)); }
.hero-art .pop-a { width: 230px; left: 50%; margin-left: -250px; bottom: 30px; transform: rotate(-6deg); border-radius: 0; }
.hero-art .pop-b { width: 310px; left: 50%; margin-left: 40px; top: 70px; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 56px; }
  .fine { margin-bottom: 36px; }
  .hero-art { height: 480px; max-width: 440px; margin: 0 auto; width: 100%; }
  .hero-art .phone { width: 190px; margin-left: -95px; bottom: -70px; border-radius: 28px; border-width: 5px; }
  .hero-art .pop-a { width: 150px; margin-left: -176px; bottom: 20px; }
  .hero-art .pop-b { width: 168px; margin-left: 8px; top: 40px; }
}

/* Sections */
section { padding: 96px 0; }
.section-head { max-width: 40rem; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 14px; font-weight: 760; }
.section-head p { color: var(--muted); font-size: 20px; margin: 0; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
.card { background: var(--surface); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card h3 { margin: 18px 0 8px; font-size: 21px; letter-spacing: -0.015em; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.icon { width: 46px; height: 46px; border-radius: 13px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Gallery */
.gallery-wrap { background: linear-gradient(180deg, transparent, var(--accent-soft) 20%, var(--accent-soft) 80%, transparent); }
.gallery { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px 20px 36px; margin: 0 auto; max-width: 100%; scrollbar-width: thin; }
.gallery figure { margin: 0; flex: 0 0 auto; width: 280px; scroll-snap-align: center; }
.gallery img { width: 100%; border-radius: 26px; box-shadow: var(--shadow); }
.gallery figcaption { text-align: center; color: var(--muted); font-size: 14px; margin-top: 12px; }
@media (min-width: 1200px) { .gallery { justify-content: center; } .gallery figure { width: 230px; } }

/* Platforms */
.platforms { display: grid; grid-template-columns: 1fr; gap: 48px; }
.platform { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: center; }
.platform:nth-child(even) .copy { order: 2; }
.platform h3 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.025em; line-height: 1.1; margin: 0 0 14px; }
.platform p { color: var(--muted); font-size: 19px; margin: 0 0 14px; }
.platform ul { margin: 0; padding-left: 20px; color: var(--muted); }
.platform li { margin: 4px 0; }
.platform img { border-radius: 18px; box-shadow: var(--shadow); }
.platform img.ipad { border: 9px solid #15191b; border-radius: 34px; }
.platform img.mac { box-shadow: none; filter: drop-shadow(0 28px 36px rgba(10, 30, 28, 0.32)); border-radius: 0; }
@media (max-width: 860px) { .platform { grid-template-columns: 1fr; gap: 24px; } .platform:nth-child(even) .copy { order: 0; } }

/* Privacy band */
.privacy-band { background: linear-gradient(160deg, #0d3f40, #061f26); color: #eaf7f3; border-radius: 36px; padding: 72px 48px; }
.privacy-band h2 { font-size: clamp(32px, 4.6vw, 52px); letter-spacing: -0.03em; line-height: 1.08; margin: 0 0 16px; text-align: center; }
.privacy-band .sub { text-align: center; max-width: 36rem; margin: 0 auto 48px; font-size: 20px; opacity: 0.85; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 800px) { .pillars { grid-template-columns: 1fr; } .privacy-band { padding: 48px 24px; } }
.pillars h3 { margin: 0 0 8px; font-size: 20px; color: #fff; }
.pillars p { margin: 0; opacity: 0.8; font-size: 16px; }
.pillars .num { color: var(--gold); font-weight: 700; font-size: 14px; letter-spacing: 0.1em; margin-bottom: 8px; }

/* FAQ */
.faq { max-width: 44rem; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; font-weight: 620; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 24px; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); margin: 12px 0 0; }

/* CTA + footer */
.final { text-align: center; }
.final h2 { font-size: clamp(32px, 4.6vw, 52px); letter-spacing: -0.03em; margin: 0 0 12px; }
.final p { color: var(--muted); font-size: 20px; margin: 0 0 28px; }
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 56px; color: var(--muted); font-size: 14px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--text); }
.small-print { margin-top: 18px; font-size: 12.5px; opacity: 0.85; max-width: 50rem; }

/* Long-form pages */
.doc { padding: 64px 0 96px; max-width: 46rem; }
.doc h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 10px; }
.doc .updated { color: var(--muted); margin: 0 0 40px; }
.doc h2 { font-size: 26px; letter-spacing: -0.02em; margin: 44px 0 10px; }
.doc p, .doc li { color: var(--text); }
.doc li { margin: 6px 0; }
.doc .callout { background: var(--accent-soft); border-radius: 16px; padding: 18px 22px; margin: 24px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 16px; }
.doc th, .doc td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--muted); font-weight: 600; width: 34%; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .faq summary::after { transition: none; } }

/* App Store buttons */
.btn .apple { flex: none; margin-top: -3px; }
.nav-links .nav-store { color: var(--accent); font-weight: 600; }
