/* VOICE   occasion: a small app's home on the web, calm and crafty
   IDEA    the app's green cutting mat, with real paper laid on it at true relative size
   PICTURE an A6 journal page and a Letter sheet drawn to scale in millimetres, the sheet filled with copies and cut lines
   COLOUR  mat green #245A4B, paper white, ink #1B2420, tape yellow #F2C14A as the one accent
   TYPE    the system face (SF on Apple devices), as in the app; 700 display, 400 text
   LAYOUT  mat band full width with the title across the top and the picture beneath; plain bands below; phone stacks */

:root {
  color-scheme: light dark;
  --ground: light-dark(#F4F6F3, #111714);
  --surface: light-dark(#FFFFFF, #1A231F);
  --ink: light-dark(#1B2420, #E8EEEA);
  --muted: light-dark(#4E5C55, #97A59E);
  --line: light-dark(#D9DFDB, #2C3833);
  --mat: light-dark(#245A4B, #173D33);
  --mat-edge: light-dark(#2D6957, #1D4A3E);
  --mat-ink: light-dark(#DCEBE5, #C9DDD5);
  --accent: light-dark(#245A4B, #7FC4AE);
  --tape: #F2C14A;
  --tape-ink: #2A2108;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter-l: max(5vw, 16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(5vw, 16px, env(safe-area-inset-right, 0px));
}
:root[data-theme=light] { color-scheme: light; }
:root[data-theme=dark] { color-scheme: dark; }

* { box-sizing: border-box; min-width: 0; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 17px/1.55 var(--sans); overflow-x: clip; }
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
.wrap { max-width: 1180px; margin: 0 auto; }
.band { padding-block: clamp(40px, 6vw, 88px); padding-left: var(--gutter-l); padding-right: var(--gutter-r); }

/* The mat: a fine line every centimetre, a heavy one every five, at the app's scale on screen. */
.mat {
  --cm: 22px;
  background-color: var(--mat);
  background-image:
    linear-gradient(rgba(255,255,255,.26) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.26) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: calc(var(--cm) * 5) calc(var(--cm) * 5), calc(var(--cm) * 5) calc(var(--cm) * 5), var(--cm) var(--cm), var(--cm) var(--cm);
  background-position: -1px -1px;
  color: var(--mat-ink);
}

/* Top bar */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: calc(env(safe-area-inset-top, 0px) + 18px); padding-bottom: 18px; padding-left: var(--gutter-l); padding-right: var(--gutter-r); background: var(--mat-edge); border-bottom: 1px solid rgba(255,255,255,.26); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 19px; text-decoration: none; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; border-radius: 8px; box-shadow: 0 1px 0 rgba(0,0,0,.2); }
.top nav { display: flex; gap: 20px; font-size: 15px; }
.top nav a { color: var(--mat-ink); text-decoration: none; }
.top nav a:hover, .top nav a[aria-current] { color: #fff; text-decoration: underline; }

/* Landing hero */
.hero { padding-top: clamp(36px, 5vw, 72px); padding-bottom: clamp(24px, 4vw, 48px); }
.hero-head { display: grid; gap: 28px; align-items: end; }
.hero h1 { color: #fff; font-size: clamp(36px, 5.4vw, 60px); max-width: 15em; }
.hero .lede { margin-top: 16px; font-size: clamp(17px, 1.6vw, 20px); max-width: 34em; color: var(--mat-ink); }
.cta { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.pill { display: inline-flex; align-items: center; gap: 10px; background: var(--tape); color: var(--tape-ink); font-weight: 700; font-size: 16px; padding: 12px 20px; border-radius: 999px; white-space: nowrap; }
.pill svg { width: 18px; height: 18px; }
.cta small { font-size: 14px; color: var(--mat-ink); }
.scene { margin-top: clamp(28px, 4vw, 48px); }
.scene svg { display: block; width: 100%; height: auto; max-height: 560px; }
@media (min-width: 900px) { .hero-head { grid-template-columns: minmax(0, 1fr) auto; } .cta { align-items: flex-end; text-align: right; } }

/* Sections */
.section-title { font-size: clamp(28px, 3.4vw, 40px); max-width: 18em; }
.section-sub { margin-top: 10px; color: var(--muted); max-width: 40em; }
.steps { margin-top: 36px; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: grid; grid-template-rows: auto auto 1fr; gap: 10px; }
.step svg { width: 100%; height: 120px; display: block; border-radius: 8px; }
.step h3 { font-size: 20px; }
.step p { color: var(--muted); font-size: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chips span { font-size: 13px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); white-space: nowrap; }

.plans { margin-top: 36px; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.plan { border-radius: 16px; padding: 26px; border: 1px solid var(--line); background: var(--surface); }
.plan.pro { background: var(--mat); border-color: var(--mat); color: var(--mat-ink); position: relative; }
.plan h3 { font-size: 24px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.plan.pro h3 { color: #fff; }
.price { font-size: 17px; font-weight: 600; white-space: nowrap; }
.plan.pro .price { background: var(--tape); color: var(--tape-ink); padding: 3px 12px; border-radius: 999px; }
.plan ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.plan li { padding-left: 28px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: .42em; width: 14px; height: 8px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.plan.pro li::before { border-color: var(--tape); }
.plan .note { margin-top: 16px; font-size: 15px; color: var(--muted); }
.plan.pro .note { color: var(--mat-ink); }

.promise { background: var(--surface); border-block: 1px solid var(--line); }
.promise .wrap { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.promise h3 { font-size: 19px; }
.promise p { margin-top: 6px; color: var(--muted); font-size: 16px; }

.closing { text-align: left; }
.closing .wrap { display: grid; gap: 20px; align-items: center; }
.closing h2 { color: #fff; font-size: clamp(28px, 3.6vw, 44px); }
.closing p { color: var(--mat-ink); margin-top: 8px; }
.closing a { color: #fff; }
@media (min-width: 800px) { .closing .wrap { grid-template-columns: minmax(0, 1fr) auto; } }

/* Plain pages: privacy and support */
.doc { padding-block: clamp(32px, 5vw, 64px); padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.paper { max-width: 760px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: clamp(24px, 5vw, 56px); box-shadow: 0 1px 2px rgba(0,0,0,.06); position: relative; }
.paper::before { content: ""; position: absolute; top: -12px; left: 50%; width: 120px; height: 26px; margin-left: -60px; background: var(--tape); opacity: .92; transform: rotate(-2deg); clip-path: polygon(4% 0, 0 25%, 4% 50%, 0 75%, 4% 100%, 96% 100%, 100% 75%, 96% 50%, 100% 25%, 96% 0); }
.paper h1 { font-size: clamp(32px, 4.4vw, 44px); }
.paper .meta { margin-top: 8px; color: var(--muted); font-size: 15px; }
.paper h2 { font-size: 21px; margin-top: 32px; letter-spacing: -0.01em; }
.paper p { margin-top: 12px; }
.paper ul { margin: 12px 0 0; padding-left: 22px; }
.paper li { margin-top: 8px; }
.paper .lead { margin-top: 20px; font-size: 19px; }
.qa { border-top: 1px solid var(--line); margin-top: 24px; }
.qa details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.qa summary { font-weight: 600; font-size: 18px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; color: var(--accent); font-weight: 400; font-size: 22px; line-height: 1; }
.qa details[open] summary::after { content: "\2212"; }
.qa details p { color: var(--muted); }
.contact { margin-top: 32px; padding: 20px; border-radius: 10px; background: var(--ground); border: 1px solid var(--line); }
.contact strong { display: block; font-size: 18px; }
.contact a { font-weight: 600; overflow-wrap: anywhere; }

footer { padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); padding-left: var(--gutter-l); padding-right: var(--gutter-r); color: var(--muted); font-size: 15px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--muted); }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .mat { --cm: 16px; }
  .top nav { gap: 16px; }
}
