/* atticdisk.com — the night attic. Dark always; tangerine only on the buy buttons. */
@font-face { font-family: "Dela Gothic One"; src: url(/fonts/dela-gothic-one.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Manrope"; src: url(/fonts/manrope.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(/fonts/ibm-plex-mono-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(/fonts/ibm-plex-mono-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  color-scheme: dark;
  --night: #0D111C;
  --panel: #1B2030;
  --panel-deep: #141824;
  --line: rgba(232, 226, 214, 0.13);
  --paper: #EFEAE1;
  --muted: rgba(239, 234, 225, 0.68);
  --sky: #3D6EF2;
  --sky-text: #8FAEFF;
  --tangerine: #FF8A3D;
  --mint: #22A884;
  --berry: #E0487A;
  --lavender: #8C7BF2;
  --display: "Dela Gothic One", system-ui, sans-serif;
  --ui: "Manrope", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 6vw, 96px);
  /* Every picture dissolves into the night at its edges, so scenes run into each other. */
  --fade-y: linear-gradient(to bottom, transparent 0%, #000 22%, #000 74%, transparent 100%);
  --fade-x: linear-gradient(to right, transparent 0%, #000 30%, #000 100%);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--night); }
body { margin: 0; background: var(--night); color: var(--paper); font: 400 17px/1.6 var(--ui); -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-wrap: break-word; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--sky-text); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 30; background: var(--paper); color: var(--night); padding: 8px 14px; border-radius: 999px; font-weight: 700; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px; padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(13, 17, 28, 0.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font: 400 19px/1 var(--display); }
.mark { width: 22px; height: 22px; flex: none; }
.nav .links { margin-left: auto; display: flex; gap: 22px; font-weight: 600; font-size: 14px; }
.nav .links a, .nav .lang { text-decoration: none; color: var(--muted); }
.nav .links a:hover, .nav .lang:hover, .nav .links a[aria-current] { color: var(--paper); }
.nav .lang { font: 500 12.5px/1 var(--mono); }

/* Buttons */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 11px 20px; border-radius: 999px; font: 700 14px/1 var(--ui);
  text-decoration: none; border: 1px solid var(--line); color: var(--paper); background: rgba(239, 234, 225, 0.05); white-space: nowrap; }
.pill:hover { background: rgba(239, 234, 225, 0.1); }
.pill.buy { background: var(--tangerine); color: #1A1209; border-color: transparent; }
.pill.buy:hover { background: #FF9C5A; }
.pill.is-off { color: var(--muted); cursor: default; }
.pill.is-off:hover { background: rgba(239, 234, 225, 0.05); }

/* Type */
h1, h2 { font-family: var(--display); font-weight: 400; line-height: 1.08; letter-spacing: -0.005em; margin: 0 0 18px; text-wrap: balance; hyphens: manual; }
h1 { font-size: clamp(32px, 4.4vw, 60px); }
h2 { font-size: clamp(26px, 3vw, 42px); }
/* Anchors land below the sticky nav (two rows on phones). */
[id] { scroll-margin-top: 96px; }
.reading { font: 500 12.5px/1.3 var(--mono); letter-spacing: 0.04em; color: var(--muted); display: inline-flex; gap: 10px; align-items: center; margin: 0 0 20px; }
.reading i { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--sky); }
.reading .dot-mint { background: var(--mint); }
.reading .dot-berry { background: var(--berry); }
.reading .dot-lavender { background: var(--lavender); }
.lede { font-size: clamp(16.5px, 1.3vw, 19px); color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.lede strong { color: var(--paper); font-weight: 700; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.fineprint { margin: 16px 0 0; font: 400 12.5px/1.5 var(--mono); color: var(--muted); }

/* Hero: the words, then the real app in front of the attic's round window */
.hero { position: relative; padding: 72px clamp(16px, 4vw, 48px) 40px; text-align: center; }
.hero-art { position: absolute; inset: 0 0 -20vh 0; background: url(/art/a1-window.webp) center 30% / cover no-repeat; opacity: 0.55;
  -webkit-mask-image: var(--fade-y); mask-image: var(--fade-y); }
.hero > *:not(.hero-art) { position: relative; }
.hero h1 { max-width: 12em; margin-inline: auto; }
.hero .lede { margin-inline: auto; }
.hero .actions { justify-content: center; }
.shot { width: min(1040px, 100%); margin: 56px auto 0; filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.55)); }
.shot img { display: block; width: 100%; height: auto; }

/* Text pages: pricing details, specs, support, terms, privacy, refunds, 404 */
.doc { max-width: 760px; margin: 0 auto; padding: 64px 16px 96px; }
.doc h1 { font-size: clamp(30px, 4vw, 48px); }
.doc h2 { font-size: clamp(21px, 2.2vw, 26px); margin-top: 48px; }
.doc h3 { font: 800 17px/1.35 var(--ui); margin: 28px 0 6px; }
.doc p, .doc li { color: var(--paper); }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin: 6px 0; }
.doc a { color: var(--sky-text); }
.doc .updated { font: 400 13px/1.5 var(--mono); color: var(--muted); margin: 0 0 32px; }
.doc .note { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: rgba(27, 32, 48, 0.6); color: var(--muted); }
.lost { text-align: center; padding-top: 18vh; padding-bottom: 22vh; }
.lost .lede { margin-inline: auto; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 48px var(--gutter) 36px; display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; font-size: 14px; }
.footer h2 { font: 500 11.5px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.footer a { display: block; text-decoration: none; padding: 4px 0; }
.footer a:hover { color: var(--sky-text); }
.footer a[aria-current] { color: var(--muted); }
.footer .brand { display: inline-flex; padding: 0; }
.footer .muted { margin: 12px 0 0; }
.footer .legal { grid-column: 1 / -1; color: var(--muted); font-size: 12px; line-height: 1.6; border-top: 1px solid var(--line); padding-top: 22px; margin: 0; }
.footer .legal a { display: inline; padding: 0; }

@media (max-width: 860px) {
  .nav { flex-wrap: wrap; gap: 10px 18px; }
  .nav .links { order: 3; width: 100%; margin-left: 0; gap: 18px; }
  .nav .lang { margin-left: auto; }
  [id] { scroll-margin-top: 112px; }
  .footer { grid-template-columns: 1fr 1fr; }
  .footer > div:first-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Scenes: different shapes, one continuous night */
.scene { position: relative; padding: 9vh var(--gutter); }
/* Pictures fade out on every side, so their edges never show. */
.picture { -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 100%); mask-image: radial-gradient(closest-side, #000 62%, transparent 100%); }
.scene .copy { position: relative; z-index: 1; }
.scene img { display: block; max-width: 100%; height: auto; }
.more { margin: 18px 0 0; font-size: 14.5px; }
.more a { color: var(--sky-text); }

/* 1. Hidden space — words and the breakdown left, the lantern dissolving in from the right */
.hidden-space { min-height: 84vh; display: grid; align-items: center; }
.hidden-space .bg { position: absolute; inset: 0; background: url(/art/a2-lantern.webp) right center / cover no-repeat;
  -webkit-mask-image: var(--fade-y), var(--fade-x); -webkit-mask-composite: source-in; mask-image: var(--fade-y), var(--fade-x); mask-composite: intersect; }
.hidden-space .copy { max-width: 520px; }
.ledger { margin: 6px 0 0; padding: 0; list-style: none; font: 400 13.5px/1 var(--mono); max-width: 400px; }
.ledger li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.ledger li span:first-child::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 10px; background: var(--sky); }
.ledger .c-lavender span:first-child::before { background: var(--lavender); }
.ledger .c-berry span:first-child::before { background: var(--berry); }
.ledger .c-mint span:first-child::before { background: var(--mint); }

/* 2. Collect — the boxes in the middle, the words under them */
.collect-scene { text-align: center; padding-top: 4vh; }
.collect-scene .picture { width: min(900px, 100%); margin: 0 auto -6vh; }
.collect-scene .copy { max-width: 640px; margin: 0 auto; }
.collect-scene .lede { margin-inline: auto; }

/* 3. Safety — the hatch on the left, the words right, a live countdown ring */
.safety { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.safety .picture { margin-left: -4vw; }
.countdown { display: inline-flex; align-items: center; gap: 14px; margin-top: 8px; padding: 12px 16px 12px 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(27, 32, 48, 0.7); }
.countdown svg { width: 40px; height: 40px; flex: none; }
.countdown .arc { animation: count 5s linear infinite; }
@keyframes count { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 107; } }
.countdown b { font: 800 14px/1.3 var(--ui); display: block; }
.countdown small { font: 400 12px/1.3 var(--mono); color: var(--muted); }

/* 4. Privacy — the words and what leaves the Mac, the keyhole on the right */
.privacy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.facts { list-style: none; padding: 0; margin: 0; font: 400 13.5px/1.3 var(--mono); }
.facts li { padding: 11px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; }
.facts b { font-weight: 500; color: var(--paper); }
.facts span { color: var(--muted); text-align: right; }

/* The small things */
.rest { padding: 10vh var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin-top: 36px; }
.grid div { background: var(--night); padding: 24px; }
.grid kbd { font: 500 11.5px/1 var(--mono); color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 5px 7px; }
.grid h3 { font: 800 17px/1.3 var(--ui); margin: 14px 0 6px; }
.grid p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* The price ticket */
.price { padding: 4vh var(--gutter) 14vh; }
.ticket { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center; background: linear-gradient(160deg, var(--panel), var(--panel-deep)); border-radius: 18px; padding: clamp(24px, 5vw, 56px); border: 1px solid var(--line); }
.amount { font: 400 clamp(56px, 7vw, 96px)/0.9 var(--display); }
.amount span { font: 500 16px/1 var(--mono); color: var(--muted); margin-left: 10px; vertical-align: middle; }
.ticket .actions { margin-top: 28px; }
.ticket .terms { list-style: none; margin: 0; padding: 0; }
.ticket .terms li { padding: 11px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.ticket .terms li span { color: var(--muted); text-align: right; }

@media (max-width: 860px) {
  .safety, .privacy, .ticket { grid-template-columns: 1fr; }
  .safety .picture { margin-left: 0; }
  /* On a phone the picture comes first, the words under it. */
  .privacy .picture { order: -1; }
  .hidden-space .bg { opacity: 0.45; }
  .grid { grid-template-columns: 1fr; }
  .ticket .terms li { flex-direction: column; gap: 2px; }
  .ticket .terms li span { text-align: left; }
}

/* Pricing terms and the specs table */
.terms-list { margin: 40px 0 0; border-top: 1px solid var(--line); }
.terms-list div { display: grid; grid-template-columns: minmax(140px, 0.4fr) 1fr; gap: 8px 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.terms-list dt { font-weight: 800; }
.terms-list dd { margin: 0; color: var(--muted); }
.terms-list a { color: var(--sky-text); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0 0; }
.table th { text-align: left; font: 500 11.5px/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.table td { vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); }
.table td:last-child { color: var(--muted); }
@media (max-width: 600px) {
  .terms-list div { grid-template-columns: 1fr; }
  /* The table stacks: each row a small card, each cell with its column's name. */
  .table thead { display: none; }
  .table tr, .table td { display: block; }
  .table tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .table td { border: 0; padding: 4px 0; }
  .table td::before { content: attr(data-label); display: block; font: 500 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
}

/* Support */
.doc .note .note-title { font: 800 17px/1.3 var(--ui); margin: 0 0 6px; color: var(--paper); }
.note p { margin: 0; }
.faq h3 { margin: 0; padding: 20px 0 6px; border-top: 1px solid var(--line); }
.faq h3:first-child { border-top: 0; }
.faq h3:target { color: var(--sky-text); }
.faq p { margin: 0 0 20px; color: var(--muted); }
