/* The page follows the app's own rule (D7): system font, system colours, no chrome. */
:root {
  color-scheme: light dark;
  --text: #1d1d1f;
  --soft: #6e6e73;
  --page: #ffffff;
  --band: #f5f5f7;
  --line: #d2d2d7;
  --accent: #0a6cff;
  --on-accent: #ffffff;
  --material: #e3e3e6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #f5f5f7;
    --soft: #a1a1a6;
    --page: #000000;
    --band: #1d1d1f;
    --line: #424245;
    --accent: #2f8cff;
    --material: #3a3a3c;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

img { max-width: 100%; height: auto; }
a { color: var(--accent); }

h1 { font-size: clamp(2rem, 5.2vw, 3.25rem); line-height: 1.08; letter-spacing: -0.02em; margin: 0.6em 0 0.4em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }

.hero, main > section, main > figure, footer {
  max-width: 62rem;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.hero { text-align: center; padding-top: 5rem; }

/* The demo moves; for someone who asked for less motion the same three steps stand still. */
.demo { display: block; margin: 3rem auto 1.5rem; border-radius: 14px; border: 1px solid var(--line); }
.flow { display: none; }
@media (prefers-reduced-motion: reduce) {
  .demo { display: none; }
  .flow { display: grid; }
}

/* The three steps, drawn here and not photographed, so they are sharp at any size. */
.flow {
  list-style: none;
  margin: 3rem 0 1.5rem;
  padding: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1rem;
  text-align: left;
  counter-reset: step;
}
.flow li { counter-increment: step; display: flex; flex-direction: column; }
.flow h3 { font-size: 1rem; margin: 0 0 0.6rem; }
.flow h3::before { content: counter(step) ". "; color: var(--soft); font-weight: 400; }
.flow .fine { margin: 0.6rem 0 0; }
.pane {
  flex: 1;
  min-height: 9.5rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--band);
  font-size: 0.9375rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.6rem;
}
.pane p { margin: 0; }
.sel { background: color-mix(in srgb, var(--accent) 30%, transparent); box-decoration-break: clone; -webkit-box-decoration-break: clone; padding: 0.1em 0; }
.bar, .card { background: var(--material); box-shadow: 0 6px 20px rgb(0 0 0 / 0.18); }
.bar { align-self: flex-end; display: inline-flex; gap: 0.15rem; padding: 0.25rem; border-radius: 10px; font-size: 1.125rem; line-height: 1; }
.bar span { padding: 0.35rem 0.45rem; border-radius: 7px; }
.bar .on { background: color-mix(in srgb, var(--text) 14%, transparent); }
.bar .glyph { color: var(--soft); }
.card { border-radius: 12px; padding: 0.75rem 0.9rem; display: flex; flex-direction: column; gap: 0.45rem; }
.card .title { font-size: 0.8125rem; color: var(--soft); }
.card del { background: rgb(255 59 48 / 0.25); }
.card ins { background: rgb(52 199 89 / 0.32); text-decoration: none; }
.card .actions { align-self: flex-end; display: flex; gap: 0.4rem; font-size: 0.8125rem; }
.card b, .card i { font-style: normal; font-weight: 500; padding: 0.25rem 0.7rem; border-radius: 6px; }
.card b { background: var(--accent); color: var(--on-accent); }
.card i { background: color-mix(in srgb, var(--text) 14%, transparent); }
.icon { border-radius: 22%; }
.lede { font-size: 1.25rem; color: var(--soft); max-width: 40rem; margin: 0 auto 1.5em; }
.fine { font-size: 0.875rem; color: var(--soft); }

.button {
  display: inline-block;
  padding: 0.7em 1.4em;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
}
.button:hover { filter: brightness(1.08); }
.button:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

main > section { border-top: 1px solid var(--line); }

.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin: 0 0 0.5rem; }
.pills a { padding: 0.35em 0.9em; border-radius: 999px; background: var(--band); color: var(--text); font-size: 0.875rem; text-decoration: none; }
.pills a:hover { background: var(--line); }

/* The four reasons. Each has a drawing made here, not a screenshot. */
.show {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr));
  gap: 3rem;
  align-items: center;
  scroll-margin-top: 1rem;
}
.show h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); line-height: 1.1; }
.show p { color: var(--soft); max-width: 34rem; }
.show code { font: 0.9em ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text); }
.eyebrow { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent) !important; margin-bottom: 0.6em; }
@media (min-width: 48rem) { .show.flip > :first-child { order: 2; } }

.art { background: var(--band); border-radius: 20px; padding: 2rem; font-size: 0.9375rem; color: var(--text); }
.art em { font-style: normal; font-weight: 700; color: #ff9500; }

.sync { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0.5rem; }
.mac { background: var(--page); border: 1px solid var(--line); border-radius: 12px; padding: 0.9rem; display: grid; gap: 0.35rem; }
.mac b { font-size: 0.8125rem; color: var(--soft); font-weight: 600; }
.mac span { background: var(--band); border-radius: 6px; padding: 0.2rem 0.5rem; font-size: 0.8125rem; }
.cloud { display: flex; align-items: center; gap: 0.3rem; }
.cloud b { background: var(--accent); color: var(--on-accent); border-radius: 999px; padding: 0.45rem 0.8rem; font-size: 0.8125rem; white-space: nowrap; }
.cloud i { width: 1rem; border-top: 2px dashed var(--accent); }
.none { grid-column: 1 / -1; margin: 1rem 0 0 !important; max-width: none !important; text-align: center; font-size: 0.875rem; }
.none s { margin-right: 0.5em; padding: 0.2rem 0.6rem; border: 1px dashed var(--line); border-radius: 6px; }

.form dl { margin: 0; background: var(--page); border: 1px solid var(--line); border-radius: 12px; }
.form dl div { display: grid; grid-template-columns: 4.5rem 1fr; gap: 0.75rem; padding: 0.6rem 0.9rem; border-top: 1px solid var(--line); }
.form dl div:first-child { border-top: 0; }
.form dt { color: var(--soft); }
.form dd { margin: 0; }
.form strong { font-weight: 500; color: #34a853; font-size: 0.8125rem; margin-left: 0.4em; white-space: nowrap; }
.form .prompt { font: 0.8125rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }

.routes { display: grid; gap: 0.75rem; }
.route { display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 0.9rem; align-items: center; background: var(--page); border: 1px solid var(--line); border-radius: 12px; padding: 0.9rem; }
.route .chip { position: relative; grid-row: span 2; font-size: 1.5rem; line-height: 1; background: var(--band); border-radius: 10px; padding: 0.5rem; }
.route .chip em { position: absolute; top: -0.1rem; right: 0; font-size: 0.75rem; }
.route b { display: block; }
.route code { font: 0.8125rem ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--soft); overflow-wrap: anywhere; }
.route .stay, .route .goes { grid-column: 2; font-size: 0.8125rem; font-weight: 600; }
.route .stay { color: #34a853; }
.route .goes { color: #ff9500; }

.term { background: #1d1d1f; color: #f5f5f7; }
.term pre { margin: 0; font: 0.8125rem/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.term pre span { color: #8e8e93; }
@media (prefers-color-scheme: dark) { .term { border: 1px solid var(--line); } }

.feature {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 2.5rem;
  align-items: center;
}
.feature .shot { justify-self: center; }
.feature p, section > p, .plain, .kinds { color: var(--soft); max-width: 40rem; }
.feature strong, .plain strong, .kinds dt { color: var(--text); }

.wide { margin: 0 auto; padding-top: 0; text-align: center; }
/* The screenshots are of a light Mac. A frame keeps the white one from glaring on a dark page. */
.framed { border: 1px solid var(--line); border-radius: 12px; }

.plain { padding-left: 1.2em; }
.plain li { margin-bottom: 0.7em; }

.kinds { margin: 0; }
.kinds div { display: grid; grid-template-columns: 5rem 1fr; gap: 1rem; padding: 0.8rem 0; border-top: 1px solid var(--line); }
.kinds div:first-child { border-top: 0; }
.kinds dt { font-weight: 600; }
.kinds dd { margin: 0; }

.buy { text-align: center; }
.buy p { margin-left: auto; margin-right: auto; }
.buy .button { font-size: 1.125rem; margin-bottom: 1rem; }
.buy .second { font-weight: 600; }

/* Free and Pro, side by side; one above the other on a phone. */
.editions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1rem;
  max-width: 40rem;
  margin: 0 auto 2rem;
  text-align: left;
}
.editions > div { background: var(--band); border-radius: 16px; padding: 1.25rem 1.5rem; }
.editions h3 { font-size: 1.125rem; margin: 0 0 0.6rem; }
.editions h3 span { font-weight: 400; color: var(--soft); }
.editions ul { margin: 0; padding-left: 1.1em; color: var(--soft); font-size: 0.9375rem; }
.editions li { margin-bottom: 0.35em; }

/* The small mark beside the iCloud section's eyebrow. */
.tag {
  display: inline-block;
  margin-left: 0.6em;
  padding: 0.05em 0.5em;
  border: 1px solid currentColor;
  border-radius: 6px;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  vertical-align: 0.1em;
}

/* The page a buyer returns to: the licence key, to copy or open in Nib. */
.thanks .key {
  margin: 0 0 1rem;
  padding: 1rem;
  background: var(--band);
  border: 1px solid var(--line);
  border-radius: 12px;
  font: 0.8125rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  user-select: all;
  -webkit-user-select: all;
  cursor: text;
}
.thanks .key-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.thanks ol { padding-left: 1.2em; }
.second-button {
  font: inherit;
  font-weight: 600;
  padding: 0.7em 1.4em;
  border-radius: 999px;
  border: 0;
  background: var(--band);
  color: var(--text);
  cursor: pointer;
}
.second-button:hover { background: var(--line); }
.second-button:focus-visible, .thanks .key:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

footer { border-top: 1px solid var(--line); padding-top: 1.5rem; padding-bottom: 2.5rem; text-align: center; }
footer p { margin: 0; font-size: 0.875rem; color: var(--soft); }
footer .links { margin-top: 0.5rem; font-size: 0.875rem; color: var(--soft); }
footer .links a { white-space: nowrap; }

/* The pages about buying: terms, privacy, refunds and the 特定商取引法 notice. */
.top { max-width: 42rem; margin: 0 auto; padding: 1.5rem 1.5rem 0; }
.top a { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--text); font-weight: 600; text-decoration: none; }
.legal { max-width: 42rem; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.legal h1 { font-size: clamp(1.75rem, 4vw, 2.25rem); margin: 0 0 1em; }
.legal h2 { font-size: 1.25rem; margin: 2em 0 0.5em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 0.5em; }
.legal a { overflow-wrap: anywhere; }
.legal .updated { margin-top: 3rem; }
.legal dl { margin: 0 0 1.5em; border-top: 1px solid var(--line); }
.legal dl div { display: grid; grid-template-columns: 12rem 1fr; gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
.legal dt { font-weight: 600; }
.legal dd { margin: 0; }
@media (max-width: 36rem) {
  .legal dl div { grid-template-columns: 1fr; gap: 0.2rem; }
}

.sym { width: 1.15em; height: 1.15em; vertical-align: -0.2em; }
.bar .sym, .route .chip .sym { display: block; }

@media (max-width: 30rem) {
  .sync { grid-template-columns: 1fr; }
  .cloud { flex-direction: column; }
  .cloud i { width: 0; height: 0.9rem; border-top: 0; border-left: 2px dashed var(--accent); }
  .art { padding: 1.25rem; }
}
