/* AmberHush website. System fonts only: no web fonts, scripts or
   third-party requests. The paper colour matches the screenshots' own
   background, so they sit on the page without a box. Amber means sealed,
   as in the app: the drop, links and small accents, never decoration. */

:root {
  color-scheme: light;
  --paper: #F4F1EB;
  --surface: #FFFFFF;
  --ink: #1C1813;
  --ink-2: #5F564B;
  --line: rgba(40, 28, 10, .14);
  --amber: #F0A640;
  --amber-ink: #9A5408;
  --resin: #3D1C07;
  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --serif-zh: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", "STSong", ui-serif, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 32px);
  --measure: 66ch;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html[lang="zh-Hans"] body { line-height: 1.75; }

img, svg { display: block; max-width: 100%; height: auto; }

a { color: var(--amber-ink); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--amber-ink); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 600; color: var(--ink); text-wrap: balance; }
html[lang="zh-Hans"] :is(h1, h2, h3) { font-family: var(--serif-zh); font-weight: 700; letter-spacing: .01em; }
p { margin: 0; }
p + p { margin-top: .9em; }
code { font-family: var(--mono); font-size: .88em; background: rgba(40, 28, 10, .06); padding: .1em .35em; border-radius: 5px; }

.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 8px; }

.nw { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ── Header ── */

.site-head {
  position: sticky; top: 0; z-index: 10;
  background: rgba(244, 241, 235, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
}
.site-head .wrap { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 1.2rem; letter-spacing: -.005em; }
.brand img { width: 26px; height: 26px; }
.site-nav { display: flex; gap: 22px; margin-left: auto; align-items: center; font-size: .95rem; }
.site-nav a { color: var(--ink-2); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav .lang { color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; }

@media (max-width: 720px) {
  .site-head .wrap { flex-wrap: wrap; gap: 0 16px; padding-block: 10px; }
  .site-nav { width: 100%; margin-left: 0; gap: 18px; overflow-x: auto; scrollbar-width: none; padding-top: 6px; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav .lang { margin-left: auto; flex: none; }
}

/* ── Buttons ── */

/* Apple's own badge, unmodified (Apple Marketing Tools); at least 40px high. */
.store { display: inline-block; line-height: 0; border-radius: 10px; }
.store img { height: 52px; width: auto; }

/* ── Home: hero ── */

.hero { padding-block: clamp(32px, 6vw, 72px) clamp(40px, 6vw, 80px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.04; letter-spacing: -.018em; }
html[lang="zh-Hans"] .hero h1 { line-height: 1.18; letter-spacing: .02em; }
.hero .lede { margin-top: 24px; font-size: clamp(1.08rem, 1.6vw, 1.22rem); color: var(--ink-2); max-width: 34em; }
.hero .cta { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.hero .fine { font-size: .92rem; color: var(--ink-2); max-width: 22em; }
.hero-media img { width: 100%; max-width: 640px; margin-inline: auto; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-media img { max-width: 480px; }
}

/* ── Sections ── */

.section { padding-block: clamp(56px, 9vw, 112px); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: var(--measure); }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.1; letter-spacing: -.012em; }
html[lang="zh-Hans"] .section-head h2 { line-height: 1.3; }
.section-head p { margin-top: 18px; color: var(--ink-2); font-size: 1.12rem; }

/* Comparison with the Hidden album: the argument of the page. */
.compare { margin-top: 40px; overflow-x: auto; }
.compare table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 1rem; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 18px 20px 18px 0; border-bottom: 1px solid var(--line); }
.compare thead th { font-family: var(--sans); font-size: .95rem; font-weight: 600; color: var(--ink-2); padding-top: 0; }
.compare thead th.us { color: var(--ink); }
.compare thead th.us::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; background: radial-gradient(circle at 35% 30%, #FFE7AE, #F6B452 40%, #8A4312); vertical-align: 1px; }
.compare tbody th { font-weight: 600; width: 22%; }
.compare td { color: var(--ink-2); width: 39%; }
.compare td.us { color: var(--ink); }
.compare tbody tr:last-child > * { border-bottom: 0; }
/* Phones: each row becomes the question, then both answers, labelled. */
@media (max-width: 640px) {
  .compare table { min-width: 0; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare tr, .compare tbody th, .compare td { display: block; width: auto; }
  .compare tbody tr { padding: 18px 0; border-bottom: 1px solid var(--line); }
  .compare tbody tr:last-child { border-bottom: 0; }
  .compare tbody th, .compare td { border: 0; padding: 0; }
  .compare td { margin-top: 10px; }
  .compare td::before { content: attr(data-label); display: block; font-size: .85rem; font-weight: 600; color: var(--ink-2); }
}
.footnote { margin-top: 18px; font-size: .92rem; color: var(--ink-2); max-width: var(--measure); }

/* Features: a screenshot beside its words, alternating sides. */
.features { display: grid; gap: clamp(56px, 8vw, 104px); margin-top: clamp(40px, 6vw, 72px); }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 88px); align-items: center; }
.feature:nth-child(even) .feature-media { order: 2; }
.feature-media img { width: 100%; max-width: 420px; margin-inline: auto; border-radius: 28px; }
/* Screenshots on the paper colour: the phone fades out instead of being cut off. */
.feature-media img.fade { border-radius: 0; -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent); mask-image: linear-gradient(to bottom, #000 72%, transparent); }
.feature h3 { font-size: clamp(1.55rem, 2.6vw, 2.1rem); line-height: 1.15; }
.feature p { margin-top: 16px; color: var(--ink-2); max-width: 30em; }
.feature .tag { display: inline-block; margin-top: 14px; font-size: .9rem; color: var(--amber-ink); }

@media (max-width: 760px) {
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature:nth-child(even) .feature-media { order: 0; }
  .feature-media img { max-width: 340px; }
}

/* Two ways to unlock. */
.modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.mode { background: var(--surface); border-radius: 22px; padding: 28px; }
.mode h3 { font-size: 1.45rem; }
.mode p { margin-top: 12px; color: var(--ink-2); }
.mode .who { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .95rem; color: var(--ink); }
@media (max-width: 760px) { .modes { grid-template-columns: minmax(0, 1fr); } }

/* Open format: the drop is the one bold moment. */
.sealed { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(28px, 6vw, 72px); align-items: center; }
.sealed .drop { width: clamp(120px, 18vw, 200px); }
.sealed .section-head { max-width: 40em; }
.sealed .more { margin-top: 20px; }
@media (max-width: 640px) { .sealed { grid-template-columns: minmax(0, 1fr); } }

/* Pricing. */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 44px; align-items: stretch; }
.plan { border-radius: 22px; padding: 28px; display: flex; flex-direction: column; }
.plan--free { border: 1px solid var(--line); }
.plan--monthly { background: var(--surface); }
.plan--lifetime { background: var(--surface); box-shadow: inset 0 0 0 2px var(--ink); }
.plan h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; }
html[lang="zh-Hans"] .plan h3 { font-family: var(--sans); }
.plan .price { margin-top: 14px; font-family: var(--serif); font-size: 2.6rem; line-height: 1; letter-spacing: -.02em; }
.plan .price small { font-family: var(--sans); font-size: 1rem; letter-spacing: 0; color: var(--ink-2); margin-left: 4px; }
.plan .term { margin-top: 10px; color: var(--ink-2); font-size: .95rem; }
.plan ul { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.plan li { padding-left: 22px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.plan .badge { align-self: flex-start; margin-bottom: 12px; font-size: .82rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--ink); color: var(--paper); }
.promise { margin-top: 28px; max-width: var(--measure); }
.promise p { color: var(--ink-2); }
.promise strong { color: var(--ink); }
@media (max-width: 900px) { .plans { grid-template-columns: minmax(0, 1fr); max-width: 480px; } }

/* FAQ. */
.faq { margin-top: 36px; max-width: 52em; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; position: relative; font-weight: 600; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 1.5rem; font-weight: 300; color: var(--ink-2); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 0 22px; color: var(--ink-2); max-width: var(--measure); }

/* Closing call to action. */
.closing { text-align: center; }
.closing .wrap { display: grid; justify-items: center; gap: 22px; }
.closing .wrap > img { width: 72px; }
.closing h2 { font-size: clamp(2rem, 4vw, 3rem); }
.closing p { color: var(--ink-2); }

/* ── Documents: privacy, terms, support, security ── */

.doc { padding-block: clamp(36px, 6vw, 72px) clamp(64px, 9vw, 112px); }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1.08; letter-spacing: -.015em; }
.doc .updated { margin-top: 12px; color: var(--ink-2); font-size: .95rem; }
.doc .intro { margin-top: 24px; font-size: 1.15rem; color: var(--ink-2); }
.doc h2 { margin-top: 52px; font-size: 1.6rem; line-height: 1.2; }
.doc h3 { margin-top: 30px; font-family: var(--sans); font-size: 1.08rem; font-weight: 600; }
html[lang="zh-Hans"] .doc h3 { font-family: var(--sans); }
.doc h2 + p, .doc h3 + p, .doc h2 + ul, .doc h3 + ul { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 1.25em; margin: 12px 0 0; }
.doc li + li { margin-top: 6px; }
.doc p + ul, .doc ul + p, .doc ol + p, .doc p + ol { margin-top: 12px; }
.doc .toc { margin-top: 32px; padding: 20px 24px; background: var(--surface); border-radius: 18px; }
.doc .toc h2 { margin: 0; font-family: var(--sans); font-size: .95rem; font-weight: 600; color: var(--ink-2); }
html[lang="zh-Hans"] .doc .toc h2 { font-family: var(--sans); }
.doc .toc ol { margin-top: 8px; columns: 2; column-gap: 32px; }
@media (max-width: 600px) { .doc .toc ol { columns: 1; } }
.doc table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: .97rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); }
.doc thead th { color: var(--ink-2); font-weight: 600; font-size: .92rem; }
.doc table + p, .doc table + ul { margin-top: 18px; }
.doc pre { margin: 14px 0 0; padding: 16px 18px; background: var(--ink); color: #F4EDE2; border-radius: 14px; overflow-x: auto; font-family: var(--mono); font-size: .88rem; line-height: 1.55; }
.doc .callout { margin-top: 20px; padding: 18px 20px; border-radius: 16px; background: var(--surface); }
.doc .contact { margin-top: 16px; font-size: 1.15rem; }

/* ── Footer ── */

.site-foot { border-top: 1px solid var(--line); padding-block: 40px 56px; font-size: .92rem; color: var(--ink-2); }
.site-foot .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: start; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: flex-end; }
.site-foot nav a { color: var(--ink-2); text-decoration: none; }
.site-foot nav a:hover { color: var(--ink); text-decoration: underline; }
.site-foot .brand { font-size: 1.05rem; }
.site-foot p { margin-top: 10px; }
@media (max-width: 640px) {
  .site-foot .wrap { grid-template-columns: minmax(0, 1fr); }
  .site-foot nav { justify-content: flex-start; }
}

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