/* Picture-Line: one stylesheet for every page.
   The page moves from dusk (the hero) through paper (the stories) into night (the festivals). */
:root {
  --dusk-hi: #b59ea2;
  --dusk: #dea98e;
  --dusk-lo: #6b5f80;
  --night: #1d1937;
  --night-2: #2a2550;
  --glow: #ffd27d;
  --paper: #fffbf4;
  --paper-2: #f7efe4;
  --ink: #241e45;
  --ink-soft: #5d5677;
  --clip: #c99a62;
  --rose: #c8657a;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --hand: "Kalam", "Bradley Hand", cursive;
  --gutter: clamp(16px, 4vw, 40px);
  --measure: 34rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #7a6bd6; outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.04; letter-spacing: -0.01em; margin: 0 0 .45em; text-wrap: balance; }
h1 { font-size: clamp(44px, 6.4vw, 92px); }
h2 { font-size: clamp(36px, 4.6vw, 64px); }
h3 { font-size: clamp(26px, 2.4vw, 32px); line-height: 1.12; }
p { margin: 0 0 1em; text-wrap: pretty; }
kbd {
  font: 600 .82em var(--sans); display: inline-block; min-width: 1.7em; padding: .05em .4em; text-align: center;
  border-radius: 6px; background: #fff; color: var(--ink); border: 1px solid rgba(36,30,69,.16); box-shadow: 0 2px 0 rgba(36,30,69,.12);
}
.wrap { width: min(72rem, 100% - var(--gutter) * 2); margin-inline: auto; }
.narrow { width: min(46rem, 100% - var(--gutter) * 2); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.vh, .vh-f { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.vh-f:focus { width: auto; height: auto; clip: auto; z-index: 20; left: 16px; top: 80px; background: #fff; padding: 8px 12px; border-radius: 8px; }
.fine { font-size: 14px; color: var(--ink-soft); }
.center { text-align: center; }
.small { font-size: 14px; color: var(--ink-soft); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55em; padding: .9em 1.5em; border-radius: 999px;
  background: var(--ink); color: #fff; border: 1.5px solid var(--ink); font: 600 16px/1 var(--sans);
  text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 10px 24px -10px rgba(36,30,69,.55);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 14px 28px -10px rgba(36,30,69,.6); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: none; }
.btn.ghost:hover { background: rgba(36,30,69,.06); }
.btn.sm { padding: .62em 1.1em; font-size: 14px; box-shadow: none; }
.btn.big { padding: 1.05em 1.9em; font-size: 18px; }

/* header */
.top { position: absolute; inset: 0 0 auto; z-index: 10; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 400 25px/1 var(--serif); text-decoration: none; color: var(--ink); }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.top nav { display: flex; align-items: center; gap: 22px; }
.top .opt { font-size: 15px; font-weight: 500; text-decoration: none; }
.top .opt:hover { text-decoration: underline; }
@media (max-width: 640px) { .top .opt { display: none; } }
body:has(.page) .top { position: relative; background: var(--paper); border-bottom: 1px solid rgba(36,30,69,.08); }

/* the live strings: the canvas always fills its section, so Safari never reads back its own pixel size */
.string { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }
.photo-list { list-style: none; margin: 0; padding: 0; }

/* hero: dusk */
.hero {
  position: relative; overflow: hidden; min-height: min(100svh, 920px);
  background: var(--dusk-hi) url("/img/dusk.jpg") center bottom / cover no-repeat;
  display: flex; align-items: flex-end;
}
@media (max-width: 699px) { .hero { background-image: url("/img/dusk-900.jpg"); } }
.hero::after { /* a soft fade at the foot so the paper section rises out of the dusk */
  content: ""; position: absolute; inset: auto 0 0; height: 120px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(255,251,244,0), rgba(255,251,244,.22));
}
.hero-copy { position: relative; z-index: 2; padding: 0 0 clamp(44px, 8vh, 88px); pointer-events: none; }
.hero-copy > * { pointer-events: auto; }
.hero h1 { max-width: 12.5em; color: #261c3d; }
.hero .lede { max-width: var(--measure); font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: #3b2f50; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 14px; }
.hero .btn.ghost { border-color: rgba(38,28,61,.45); color: #261c3d; }
.hero .fine { color: #4b3e5c; margin: 0; }
.nudge { position: absolute; right: 0; bottom: clamp(44px, 8vh, 88px); margin: 0; font: 18px var(--hand); color: #4b3e5c; transform: rotate(-3deg); }
@media (max-width: 900px) { .nudge { display: none; } }
.no-js .hero { min-height: 640px; }

/* stories: paper */
.stories { padding: clamp(80px, 11vw, 150px) 0 clamp(60px, 8vw, 110px); background: var(--paper); }
.intro { max-width: 40rem; font-size: clamp(18px, 1.5vw, 20px); color: var(--ink-soft); }
.stories h2 { max-width: 13em; }
.story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 6vw, 96px); align-items: center; margin-top: clamp(56px, 8vw, 110px); }
.story.flip > .print { order: 2; }
.story h3 { margin-bottom: .4em; }
.story p { font-size: 18px; max-width: 30rem; }
.print {
  position: relative; margin: 0; padding: 4.5% 4.5% 0; background: #fffdf8; transform: rotate(var(--tilt, 0deg));
  box-shadow: 0 1px 1px rgba(0,0,0,.06), 0 24px 40px -18px rgba(60,40,60,.45); max-width: 360px; justify-self: center; width: 100%;
}
.print::before { /* the wooden clip */
  content: ""; position: absolute; left: 50%; top: -16px; width: 12px; height: 38px; margin-left: -6px; border-radius: 3px;
  background: linear-gradient(90deg, #d9b07a 0 46%, #8c6945 46% 54%, #d9b07a 54%); box-shadow: 1px 2px 0 rgba(0,0,0,.15);
}
.print img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.print figcaption { font: 22px/1 var(--hand); color: #262e63; text-align: center; padding: 18px 0 22px; }
@media (max-width: 760px) {
  .story { grid-template-columns: 1fr; }
  .story.flip > .print { order: 0; }
  .print { max-width: 300px; }
}

/* how it feels */
.feel { padding: clamp(70px, 9vw, 130px) 0; background: var(--paper-2); }
.gestures { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 34px 48px; margin: 40px 0 0; }
.gestures dt { font-weight: 700; font-size: 18px; margin-bottom: 6px; }
.gestures dd { margin: 0; color: var(--ink-soft); }

/* night: festivals */
.night {
  position: relative; overflow: hidden; color: #f3eee6;
  background: radial-gradient(120% 80% at 50% 0%, #3a3270 0%, var(--night-2) 38%, var(--night) 100%);
  padding: clamp(330px, 34vw, 400px) 0 clamp(70px, 9vw, 120px);
}
.night-copy { position: relative; z-index: 2; pointer-events: none; }
.night-copy > * { pointer-events: auto; }
.night h2 { max-width: 13em; }
.night p { max-width: 40rem; color: #d7d1e6; font-size: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.chip {
  font: 600 15px/1 var(--sans); padding: .75em 1.2em; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,.07); color: #f3eee6; border: 1.5px solid rgba(255,255,255,.25);
}
.chip:hover { background: rgba(255,255,255,.14); }
.chip[aria-pressed="true"] { background: var(--glow); color: var(--night); border-color: var(--glow); }

/* light on the Mac */
.light { padding: clamp(70px, 9vw, 130px) 0; background: var(--night); color: #f3eee6; border-top: 1px solid rgba(255,255,255,.06); }
.light .intro { color: #cfc8e2; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 44px 0 18px; }
.stats div { border-top: 1px solid rgba(255,255,255,.18); padding-top: 18px; }
.stats dt { font: 400 clamp(56px, 7vw, 96px)/1 var(--serif); color: var(--glow); }
.stats dd { margin: 10px 0 0; color: #d7d1e6; max-width: 16rem; }
.light .fine { color: #a59fbd; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; } }

/* price */
.price { padding: clamp(80px, 10vw, 140px) 0; background: var(--paper); }
.price h2 { max-width: 12em; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 40px 0 18px; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(36,30,69,.35); border: 1px solid rgba(36,30,69,.1); }
.plan { padding: clamp(28px, 4vw, 48px); background: #fff; display: flex; flex-direction: column; align-items: flex-start; }
.plan.full { background: linear-gradient(165deg, #f6d3bd 0%, #ebc4c6 55%, #d4c9e6 100%); }
.plan h3 { margin-bottom: .2em; }
.amount { font: 400 64px/1 var(--serif); margin: 6px 0 18px; }
.amount small { font: 500 15px var(--sans); color: var(--ink-soft); margin-left: 6px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; flex: 1; }
.plan li { padding-left: 1.6em; position: relative; margin: 8px 0; }
.plan li::before { content: ""; position: absolute; left: 0; top: .55em; width: .62em; height: .62em; border-radius: 50%; background: var(--clip); box-shadow: 0 0 0 3px rgba(201,154,98,.22); }
.plan.full li::before { background: var(--rose); box-shadow: 0 0 0 3px rgba(200,101,122,.25); }
.inr { margin-top: 14px; font-size: 15px; font-weight: 500; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* faq */
.faq { padding: 0 0 clamp(70px, 9vw, 120px); background: var(--paper); }
.faq details { border-top: 1px solid rgba(36,30,69,.12); padding: 18px 0; }
.faq details:last-of-type { border-bottom: 1px solid rgba(36,30,69,.12); }
.faq summary { font-weight: 600; font-size: 18px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 26px/1 var(--serif); color: var(--rose); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; color: var(--ink-soft); }

/* closing */
.last { padding: clamp(80px, 10vw, 140px) 0; text-align: center; background: linear-gradient(180deg, var(--paper) 0%, #f1dccd 100%); }
.last h2 { margin-inline: auto; }
.last .fine { margin-top: 18px; }

/* phone: a download button that stays in reach */
.dock { display: none; }
@media (max-width: 640px) {
  .dock { display: block; position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 30; transition: transform .25s ease, opacity .25s ease; }
  .dock .btn { width: 100%; justify-content: center; }
  .dock.away { transform: translateY(140%); opacity: 0; }
  body { padding-bottom: 76px; }
}

/* lightbox */
.lightbox { border: 0; padding: 18px 18px 8px; border-radius: 6px; background: #fffdf8; max-width: min(92vw, 560px); box-shadow: 0 40px 80px rgba(0,0,0,.45); }
.lightbox::backdrop { background: rgba(20,16,40,.7); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.lightbox figure { margin: 0; }
.lightbox img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.lightbox figcaption { font: 28px var(--hand); color: #262e63; text-align: center; margin: 14px 0 0; }
.lightbox .note { font: 18px var(--hand); color: #4a4f7c; text-align: center; margin: 4px 0 10px; }
.lightbox .close { position: absolute; right: 8px; top: 4px; background: none; border: 0; font: 28px var(--sans); cursor: pointer; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.6); }

/* footer */
.foot { background: var(--night); color: #cfc8e2; padding: 64px 0 80px; font-size: 15px; }
.foot .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; }
.foot .brand { color: #fff; margin-bottom: 14px; }
.foot h2 { font: 600 15px var(--sans); color: #fff; margin: 6px 0 12px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin: 6px 0; }
.foot a { color: #e9e4f3; }
@media (max-width: 760px) { .foot .wrap { grid-template-columns: 1fr; } }

/* inner pages */
.page { padding: 48px 0 90px; }
.page .wrap { max-width: 46rem; }
.page h1 { font-size: clamp(40px, 5vw, 64px); }
.page h2 { font-size: clamp(28px, 3vw, 38px); margin-top: 1.4em; }
.page .lede { font-size: 20px; color: var(--ink-soft); }
.page ul, .page ol { padding-left: 1.3em; }
.page li { margin: 6px 0; }
.crumbs { font-size: 14px; color: var(--ink-soft); }
.updated { font-size: 14px; color: var(--ink-soft); }
.callout { background: var(--paper-2); border-radius: 14px; padding: 18px 22px; }
.form input, .page input[type="text"] { font: 16px var(--sans); padding: 12px 14px; border-radius: 10px; border: 1.5px solid rgba(36,30,69,.25); width: min(100%, 22rem); }
.keybox textarea { width: 100%; font: 13px ui-monospace, Menlo, monospace; padding: 12px; border-radius: 10px; border: 1.5px solid rgba(36,30,69,.2); background: #fff; }

/* checkout card (used by the payment pages) */
.buycard { display: flex; gap: 22px; align-items: flex-start; margin: 8px 0 18px; padding: 22px; border-radius: 18px;
  background: linear-gradient(160deg, #f7d9c4 0%, #e9c7c9 55%, #cfc3dc 100%); color: #2a2236; }
.buycard img { border-radius: 20px; box-shadow: 0 8px 24px rgba(40,20,40,.22); flex: none; }
.buycard h1 { margin: 0 0 8px; font-size: clamp(34px, 4vw, 48px); }
.ticks { margin: 0 0 10px; padding: 0; list-style: none; }
.ticks li { padding-left: 1.4em; position: relative; margin: 4px 0; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: #8a3f2c; font-weight: 700; }
@media (max-width: 560px) { .buycard { flex-direction: column; } }
