/* Asphere website. Light, quiet, Apple-style: system type, white and silver
   bands, product shots on a soft stage with a floor reflection, after the way
   Aperture was presented. Nothing loads from anywhere else. */

:root {
  --bg: #ffffff;
  --silver: #f5f5f7;
  --silver-deep: #e8e8ed;
  --ink: #1d1d1f;
  --ink-soft: #424245;
  --muted: #6e6e73;
  --hair: #d2d2d7;
  --blue: #0066cc;
  --gutter: 22px;
  --content: 1160px;
  --text: 680px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 64px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  margin: 0;
}

h2 {
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.025em;
}

h3 { font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -0.015em; }

p { margin: 0; }

.kicker {
  font-size: 19px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

/* ------------------------------------------------------------ header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 251, 253, 0.8);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.nav {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 52px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }

.nav-links {
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
  display: flex;
  gap: 26px;
}
.nav-links a { color: var(--ink-soft); font-size: 13px; letter-spacing: 0; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }

.nav-badge {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--hair);
  border-radius: 980px;
  padding: 3px 11px;
  white-space: nowrap;
}

/* ------------------------------------------------------------ hero */

.hero {
  text-align: center;
  padding: 72px var(--gutter) 40px;
  background: linear-gradient(#fbfbfd, #ffffff 70%);
}

/* The icon sits on a glossy floor, the way Apple showed app icons in 2010. */
.hero-icon img {
  margin: 0 auto;
  width: 200px;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.16));
  -webkit-box-reflect: below -38px linear-gradient(transparent 70%, rgba(255, 255, 255, 0.3));
}

.eyebrow {
  margin-top: 22px;
  line-height: 1.2;
  font-size: 21px;
  font-weight: 600;
  color: var(--muted);
}

h1 {
  font-size: clamp(64px, 11vw, 112px);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.035em;
  margin-top: 0;
  background: linear-gradient(180deg, #2c2c2e 0%, #1d1d1f 45%, #5a5a5f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.06em;
}

.hero-lead {
  font-size: clamp(24px, 3.2vw, 32px);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 640px;
  margin: 18px auto 0;
}

.hero-sub {
  font-size: 19px;
  color: var(--muted);
  max-width: 600px;
  margin: 16px auto 0;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 28px;
}

.store-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 980px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
}

.text-link { font-size: 17px; }
.text-link span { display: inline-block; margin-left: 2px; }

/* ------------------------------------------------------------ product shots */

/* A soft silver stage under the hero window, like a studio sweep. */
.stage {
  padding: 24px var(--gutter) 110px;
  background:
    /* Fades the sweep back to the page's white, so there's no edge where the next section starts. */
    linear-gradient(rgba(255, 255, 255, 0) 60%, var(--bg) 100%),
    radial-gradient(ellipse 60% 55% at 50% 100%, #ececf0 0%, rgba(236, 236, 240, 0) 70%),
    linear-gradient(#ffffff, #f5f5f7);
}

.window {
  margin: 0 auto;
  max-width: var(--content);
  border-radius: 12px;
  overflow: hidden;
  background: #f3f3f3;
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.22),
    0 2px 6px rgba(0, 0, 0, 0.06),
    0 24px 60px -12px rgba(0, 0, 0, 0.28);
}

.window-hero {
  -webkit-box-reflect: below 2px linear-gradient(transparent 88%, rgba(255, 255, 255, 0.12));
}

figure { margin: 0; }

/* ------------------------------------------------------------ intro */

.intro {
  background: var(--silver);
  padding: 0 var(--gutter) 110px;
}
.intro p {
  max-width: 820px;
  margin: 0 auto;
  font-size: clamp(21px, 2.4vw, 26px);
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink-soft);
  text-align: center;
}

/* ------------------------------------------------------------ features */

.feature {
  padding: 120px var(--gutter);
  max-width: calc(var(--content) + 2 * var(--gutter));
  margin: 0 auto;
}

.feature-text { max-width: var(--text); margin: 0 0 56px; }
.feature-text h2 { margin-bottom: 20px; }
.feature-text > p:not(.kicker) { font-size: 19px; color: var(--ink-soft); }

.ticks {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  gap: 12px;
}
.ticks li {
  position: relative;
  padding-left: 28px;
  color: var(--ink-soft);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.42em;
  width: 13px;
  height: 7px;
  border-left: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(-45deg);
}

@media (min-width: 901px) {
  .feature:not(.feature-center) .feature-text {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    column-gap: 72px;
    align-items: start;
  }
  .feature:not(.feature-center) .kicker { grid-column: 1; grid-row: 1; }
  .feature:not(.feature-center) .feature-text h2 { grid-column: 1; grid-row: 2 / span 2; margin-bottom: 0; }
  .feature:not(.feature-center) .feature-text > p:not(.kicker) { grid-column: 2; grid-row: 2; padding-top: 8px; }
  .feature:not(.feature-center) .ticks { grid-column: 2; grid-row: 3; }
}

.feature-center .feature-text { margin-left: auto; margin-right: auto; text-align: center; }

.feature-edit { border-top: 1px solid var(--silver-deep); }

/* Full Screen: the photo on black, on a Studio Display. */
.fullscreen { padding: 120px var(--gutter); border-top: 1px solid var(--silver-deep); }
.appearance { padding: 120px var(--gutter); border-top: 1px solid var(--silver-deep); background: linear-gradient(#ffffff, #f5f5f7); }

/* Light and Dark: the dark screen fades in over the light one and back, every few seconds. */
.device-cycle { position: relative; }
.device-cycle .cycle-dark {
  position: absolute;
  top: 0;
  left: 0;
  animation: light-dark 10s ease-in-out infinite;
}
@keyframes light-dark {
  0%, 40% { opacity: 0; }
  50%, 90% { opacity: 1; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .device-cycle .cycle-dark { animation: none; opacity: 0; }
}

/* Remove Object: the photo as taken, the tree in pink while it's filled, then the tree gone.
   The pink shot hides once the last one is fully over it, so the loop never flashes pink. */
.feature-ai,
#lighttable { border-top: 1px solid var(--silver-deep); }
.remove-cycle { position: relative; }
.remove-cycle .remove-pink,
.remove-cycle .remove-done { position: absolute; top: 0; left: 0; opacity: 0; }
.remove-cycle .remove-pink { animation: remove-pink 12s ease-in-out infinite; }
.remove-cycle .remove-done { animation: remove-done 12s ease-in-out infinite; }
@keyframes remove-pink {
  0%, 30% { opacity: 0; }
  34%, 60% { opacity: 1; }
  61%, 100% { opacity: 0; }
}
@keyframes remove-done {
  0%, 56% { opacity: 0; }
  60%, 94% { opacity: 1; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  /* Holds on the pink outline, which shows what the feature does in one picture. */
  .remove-cycle .remove-pink { animation: none; opacity: 1; }
  .remove-cycle .remove-done { animation: none; opacity: 0; }
}
.ai-points {
  max-width: var(--content);
  margin: 72px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 48px;
}
.ai-points h3 { margin-bottom: 8px; }
.ai-points p { color: var(--ink-soft); font-size: 16px; }

/* Quick Brushes guide: before-and-after pairs. */
.brush-pair { margin: 18px 0 18px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.brush-pair:focus { outline: none; }
.brush-pair:focus-visible .ba-frame { outline: 3px solid var(--blue, #0071e3); outline-offset: 3px; }
.ba-frame { position: relative; border-radius: 8px; overflow: hidden; }
.ba-frame img { display: block; width: 100%; height: auto; }
.ba-frame .ba-after { position: absolute; inset: 0; opacity: 0; transition: opacity 0.15s ease; }
.ba-label {
  position: absolute; top: 10px; left: 10px; padding: 3px 9px; border-radius: 6px;
  font-size: 12px; font-weight: 600; color: #fff; background: rgba(0, 0, 0, 0.6);
}
.ba-word-after { display: none; }
.brush-pair.ba-on .ba-after { opacity: 1; }
.brush-pair.ba-on .ba-word-before { display: none; }
.brush-pair.ba-on .ba-word-after { display: inline; }
@media (hover: hover) {
  .brush-pair:hover .ba-after { opacity: 1; }
  .brush-pair:hover .ba-word-before { display: none; }
  .brush-pair:hover .ba-word-after { display: inline; }
}
.brush-pair figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.ba-tap { display: none; }
@media (hover: none) {
  .ba-hover { display: none; }
  .ba-tap { display: inline; }
}
ul.brush-sliders { margin-top: 4px; }
.fullscreen-text { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.fullscreen-text h2 { margin-bottom: 20px; }
.fullscreen-text > p:not(.kicker) { font-size: 19px; color: var(--ink-soft); }

/* ------------------------------------------------------------ Aperture */

.aperture {
  background: linear-gradient(180deg, #f5f5f7 0%, #fbfbfd 100%);
  padding: 120px var(--gutter);
  border-top: 1px solid var(--silver-deep);
  border-bottom: 1px solid var(--silver-deep);
}
.aperture-inner { max-width: 900px; margin: 0 auto; text-align: center; }
.aperture-lead {
  font-size: 21px;
  color: var(--ink-soft);
  max-width: 700px;
  margin: 22px auto 0;
}

.carry {
  margin: 56px auto 0;
  text-align: left;
  background: #fff;
  border-radius: 18px;
  padding: 34px 38px 30px;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.1), 0 14px 36px -18px rgba(0, 0, 0, 0.18);
}
.carry h3 { font-size: 15px; color: var(--muted); font-weight: 600; margin-bottom: 18px; }
.carry-list {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 44px;
}
.carry-list li {
  break-inside: avoid;
  padding: 9px 0 9px 26px;
  border-top: 1px solid var(--silver-deep);
  position: relative;
  color: var(--ink);
}
.carry-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: calc(9px + 0.4em);
  width: 12px;
  height: 6px;
  border-left: 2px solid #34a853;
  border-bottom: 2px solid #34a853;
  transform: rotate(-45deg);
}

.aperture-note {
  max-width: 720px;
  margin: 30px auto 0;
  font-size: 15px;
  color: var(--muted);
}

/* ------------------------------------------------------------ more */

.more {
  padding: 120px var(--gutter);
  max-width: calc(var(--content) + 2 * var(--gutter));
  margin: 0 auto;
  border-top: 1px solid var(--silver-deep);
}
.more h2 { text-align: center; margin-bottom: 64px; }

.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.tile {
  background: var(--silver);
  border-radius: 18px;
  padding: 30px 28px 32px;
}
.tile h3 { margin: 18px 0 8px; }
.tile p { color: var(--ink-soft); font-size: 16px; }

.tile-icon {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tile-icon .fill { fill: var(--ink); stroke: none; }

/* ------------------------------------------------------------ yours */

.yours {
  background: var(--silver);
  padding: 110px var(--gutter);
}
.yours-grid {
  max-width: var(--content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.yours h2 { font-size: clamp(30px, 3.6vw, 40px); margin-bottom: 18px; }
.yours h3 { margin-bottom: 8px; margin-top: 10px; }
.yours p { color: var(--ink-soft); }

/* ------------------------------------------------------------ pricing */

.pricing { padding: 110px var(--gutter); }
.pricing-grid {
  max-width: var(--content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.pricing h2 { font-size: clamp(30px, 3.6vw, 40px); margin-bottom: 18px; }
.pricing-lead { font-size: 19px; color: var(--ink-soft); max-width: 460px; }
.price { margin-top: 32px; display: flex; align-items: baseline; gap: 14px; }
.price-amount { font-size: 64px; line-height: 1; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); }
.price-note { font-size: 17px; color: var(--muted); }

.pricing-compare {
  background: var(--silver);
  border-radius: 18px;
  padding: 30px 32px 28px;
}
.pricing-compare h3 { margin-bottom: 12px; }
.price-list { list-style: none; margin: 0; padding: 0; }
.price-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-top: 1px solid var(--hair);
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.price-list li span:last-child { white-space: nowrap; }
.price-list .price-list-asphere { color: var(--ink); font-weight: 600; }
.price-footnote { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* ------------------------------------------------------------ closing */

.closing {
  text-align: center;
  padding: 120px var(--gutter) 130px;
  background: linear-gradient(#ffffff, #f5f5f7);
}
.closing-icon img {
  margin: 0 auto 40px;
  width: 128px;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.16));
  -webkit-box-reflect: below -24px linear-gradient(transparent 70%, rgba(255, 255, 255, 0.28));
}
.closing h2 { font-size: clamp(30px, 4vw, 44px); max-width: 720px; margin: 0 auto; }
.closing p { margin-top: 14px; font-size: 19px; color: var(--muted); }

/* ------------------------------------------------------------ footer */

.site-footer {
  background: var(--silver);
  border-top: 1px solid var(--hair);
  padding: 34px var(--gutter) 34px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}
.footer-cols {
  max-width: var(--content);
  margin: 0 auto 26px;
  display: grid;
  /* Four equal columns: Asphere, then the guides three by three, reading down each column. */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}
.footer-cols > div:last-child { grid-column: span 3; }
.footer-head { font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-guides { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(3, auto); grid-auto-flow: column; column-gap: 32px; }
.site-footer a { color: var(--ink-soft); }
.footer-legal { max-width: var(--content); margin: 0 auto 6px; padding-top: 0; text-align: center; }
.footer-copy { text-align: center; margin: 20px auto 6px; }
.made-in { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 0 auto; }
.made-in img { width: 21px; height: 14px; border-radius: 2px; }
.footer-legal:first-of-type { border-top: 1px solid var(--hair); padding-top: 16px; }

/* ------------------------------------------------------------ devices */

.device { margin: 0 auto; }
.device img { width: 100%; }
.device-hero { max-width: 1100px; }
.device-imac { max-width: 900px; }
.device-laptop { max-width: 1100px; }
/* A soft floor shadow under each stand. */
.device::after {
  content: "";
  display: block;
  height: 30px;
  margin: -14px auto 0;
  width: 46%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.16) 0%, rgba(0, 0, 0, 0) 70%);
}

.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 500; }
.aperture-link { margin-top: 22px; font-size: 17px; }
.more-link { color: var(--blue); }

/* ------------------------------------------------------------ FAQ */

.faq { padding: 110px var(--gutter); border-top: 1px solid var(--silver-deep); }
.faq-inner { max-width: 820px; margin: 0 auto; }
.faq h2 { text-align: center; margin-bottom: 48px; }
.faq-list { border-top: 1px solid var(--hair); }
.qa { border-bottom: 1px solid var(--hair); }
.qa summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 40px 22px 0;
  position: relative;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary h3 { font-size: 19px; font-weight: 600; }
.qa summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 1.6px solid var(--muted);
  border-bottom: 1.6px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.qa[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.qa p { padding: 0 40px 24px 0; color: var(--ink-soft); }
.qa summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.faq-more { margin-top: 34px; text-align: center; color: var(--muted); }

/* ------------------------------------------------------------ guide index */

.guide-home { max-width: calc(var(--content) + 2 * var(--gutter)); margin: 0 auto; padding: 90px var(--gutter) 120px; }
.guide-hero { text-align: center; margin-bottom: 64px; }
.guide-hero h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.05; font-weight: 600; letter-spacing: -0.03em; }
.guide-lead { font-size: 21px; color: var(--muted); margin-top: 14px; }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.guide-card {
  display: block;
  background: var(--silver);
  border-radius: 18px;
  padding: 30px 30px 28px;
  color: var(--ink);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.guide-card:hover { text-decoration: none; background: #efeff3; }
.guide-card h2 { font-size: 24px; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 8px; }
.guide-card p { color: var(--ink-soft); font-size: 16px; margin-bottom: 14px; }
.guide-card .more-link { font-size: 15px; }

/* ------------------------------------------------------------ guide article */

.doc {
  max-width: calc(var(--content) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 56px var(--gutter) 110px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.doc-nav { position: sticky; top: 84px; font-size: 14px; }
.doc-nav-head { font-weight: 600; margin-bottom: 10px; }
.doc-nav-head a { color: var(--ink); }
.doc-nav ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--hair); }
.doc-nav li a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-soft); }
.doc-nav li a:hover { color: var(--ink); text-decoration: none; }
.doc-nav li a[aria-current="page"] { color: var(--ink); font-weight: 600; border-left-color: var(--ink); }

.doc-body { max-width: 760px; min-width: 0; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.doc-body h1 { font-size: clamp(34px, 4.4vw, 48px); line-height: 1.08; font-weight: 600; letter-spacing: -0.028em; }
.doc-lead { font-size: 21px; line-height: 1.45; color: var(--ink-soft); margin: 16px 0 8px; }
.doc-body h2 { font-size: 28px; line-height: 1.2; letter-spacing: -0.02em; margin: 52px 0 14px; padding-top: 4px; }
.doc-body h3 { font-size: 20px; margin: 34px 0 10px; }
.doc-body p, .doc-body li { color: var(--ink-soft); }
.doc-body p { margin: 0 0 14px; }
.doc-body ul, .doc-body ol { margin: 0 0 16px; padding-left: 22px; }
.doc-body li { margin: 6px 0; }
.doc-body li ul { margin: 8px 0 4px; }
.doc-body strong { color: var(--ink); font-weight: 600; }

ol.steps { counter-reset: step; list-style: none; padding-left: 0; }
ol.steps > li { counter-increment: step; position: relative; padding-left: 40px; margin: 12px 0; }
ol.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--silver-deep);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 26px;
  text-align: center;
}

.note {
  background: var(--silver);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 16px;
}

ul.columns { columns: 3; column-gap: 28px; list-style: none; padding-left: 0; }
ul.columns li { margin: 0 0 6px; break-inside: avoid; }

.doc-shot { margin: 30px 0 34px; }
.doc-shot img {
  border-radius: 10px;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.2), 0 16px 40px -16px rgba(0, 0, 0, 0.3);
}
.doc-shot-device img { box-shadow: none; border-radius: 0; max-width: 560px; margin: 0 auto; }
.doc-shot figcaption { font-size: 14px; color: var(--muted); margin-top: 12px; }

.doc-table { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: 16px; }
.doc-table th, .doc-table td { text-align: left; vertical-align: top; padding: 11px 16px 11px 0; border-bottom: 1px solid var(--silver-deep); color: var(--ink-soft); }
.doc-table th { color: var(--ink); font-weight: 600; font-size: 14px; border-bottom-color: var(--hair); }
.doc-table td:first-child { color: var(--ink); width: 38%; }
.doc-table.keys td:first-child { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 14px; white-space: nowrap; width: 1%; padding-right: 32px; }

.doc-updated { margin-top: 48px !important; font-size: 13px; color: var(--muted) !important; }
.doc-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; border-top: 1px solid var(--silver-deep); padding-top: 22px; }
.doc-pager a { display: block; font-size: 17px; }
.doc-pager a span { display: block; font-size: 13px; color: var(--muted); }
.doc-pager .next { text-align: right; }

.missing { text-align: center; padding: 140px var(--gutter); }
.missing h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 600; letter-spacing: -0.03em; }
.missing p { margin-top: 14px; font-size: 19px; color: var(--muted); }

/* ------------------------------------------------------------ smaller screens */

@media (max-width: 900px) {
  .doc { grid-template-columns: 1fr; gap: 0; padding-top: 36px; }
  .doc-nav { display: none; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .yours-grid { grid-template-columns: 1fr 1fr; }
  .yours-grid > div:first-child { grid-column: 1 / -1; }
  .footer-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  .footer-cols > div:last-child { grid-column: auto; }
  .footer-guides { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-flow: row; }
  .ai-points { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 36px; }
  .pricing-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .nav { gap: 14px; }
  .nav-links li:not(:first-child) { display: none; }
  .nav-links { gap: 0; }
  .hero { padding-top: 48px; }
  .hero-lead br { display: none; }
  .hero-icon img { width: 150px; -webkit-box-reflect: below -28px linear-gradient(transparent 70%, rgba(255, 255, 255, 0.3)); }
  .eyebrow { margin-top: 16px; }
  .hero-sub, .feature-text > p:not(.kicker), .fullscreen-text > p:not(.kicker) { font-size: 17px; }
  .stage { padding-bottom: 72px; }
  .window { border-radius: 8px; }
  .intro { padding-bottom: 72px; }
  .feature, .more, .aperture, .yours, .closing, .fullscreen, .appearance { padding-top: 80px; padding-bottom: 80px; }
  .feature-text, .fullscreen-text { margin-bottom: 36px; }
  .carry { padding: 24px 20px 20px; }
  .carry-list { columns: 1; }
  .aperture-lead { font-size: 18px; }
  .tiles { grid-template-columns: 1fr; }
  .yours-grid { grid-template-columns: 1fr; gap: 28px; }
  .ai-points { grid-template-columns: 1fr; gap: 26px; margin-top: 48px; }
  .pricing { padding-top: 80px; padding-bottom: 80px; }
  .pricing-compare { padding: 24px 20px 20px; }
  .price-amount { font-size: 52px; }
  .more h2 { margin-bottom: 40px; }
  .faq { padding: 80px var(--gutter); }
  .qa summary h3 { font-size: 17px; }
  .guide-home { padding-top: 56px; padding-bottom: 80px; }
  .guide-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; gap: 22px; }
  .footer-guides { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
  ul.columns { columns: 2; }
  .doc-table.keys td:first-child { white-space: normal; width: 42%; padding-right: 14px; }
  .doc-body h2 { font-size: 24px; margin-top: 40px; }
  .doc-lead { font-size: 18px; }
}

/* ------------------------------------------------------------ how Asphere organises */

.org-summary {
  background: var(--silver);
  border-radius: 14px;
  padding: 18px 22px;
  margin: 22px 0 8px !important;
  font-size: 19px;
  line-height: 1.5;
}
.org-figure { margin: 26px 0 36px; }
.org-figure figcaption { font-size: 14px; color: var(--muted); margin-top: 12px; }

.org-icon {
  display: inline-block;
  flex: none;
  width: 16px;
  height: 16px;
  background: center / contain no-repeat;
  vertical-align: -3px;
}
.org-icon-folder { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%236e6e73' stroke-width='1.3' stroke-linejoin='round'%3E%3Cpath d='M1.8 4.2c0-.6.5-1.1 1.1-1.1h3.3l1.4 1.5h5.5c.6 0 1.1.5 1.1 1.1v6.7c0 .6-.5 1.1-1.1 1.1H2.9c-.6 0-1.1-.5-1.1-1.1z'/%3E%3C/svg%3E"); }
.org-icon-project { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%236e6e73' stroke-width='1.3' stroke-linejoin='round'%3E%3Crect x='1.6' y='2.6' width='12.8' height='3.4' rx='.8'/%3E%3Cpath d='M2.6 6v6.6c0 .6.4 1 1 1h8.8c.6 0 1-.4 1-1V6M6.3 8.6h3.4' stroke-linecap='round'/%3E%3C/svg%3E"); }
.org-icon-album { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%236e6e73' stroke-width='1.3' stroke-linejoin='round'%3E%3Crect x='2' y='5' width='12' height='8.8' rx='1.2'/%3E%3Cpath d='M3.6 3.3h8.8M5.2 1.7h5.6' stroke-linecap='round'/%3E%3C/svg%3E"); }
.org-icon-smart { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%236e6e73' stroke-width='1.3'%3E%3Ccircle cx='8' cy='8' r='2.2'/%3E%3Cpath d='M8 1.8v2M8 12.2v2M1.8 8h2M12.2 8h2M3.6 3.6 5 5M11 11l1.4 1.4M3.6 12.4 5 11M11 5l1.4-1.4' stroke-linecap='round'/%3E%3C/svg%3E"); }

/* The model: a folder of projects, and an album pointing into them. */
.org-model { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.org-folder { border: 1.5px dashed #b8b8bf; border-radius: 16px; padding: 14px; }
.org-projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.org-project { background: var(--silver); border-radius: 12px; padding: 12px; }
.org-album { background: var(--bg); border: 1px solid var(--hair); border-radius: 12px; padding: 12px; box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.35); }
.org-figure .org-tag { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--ink); margin: 0 0 10px; line-height: 1.3; }
.org-folder > .org-tag { margin-bottom: 12px; }
.org-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.org-tiles .t { display: block; aspect-ratio: 4 / 3; border-radius: 4px; position: relative; }
.org-figure .org-note { font-size: 13px; color: var(--muted); margin: 10px 0 0; line-height: 1.4; }
.t1 { background: linear-gradient(160deg, #f1e4d3, #c9a98a); }
.t2 { background: linear-gradient(170deg, #fbe7e9, #d99aa6 70%, #8c5a63); }
.t3 { background: linear-gradient(180deg, #dfe8ee 45%, #9fb3a1 46%, #6f8a72); }
.t4 { background: linear-gradient(150deg, #f6efe6, #e2c9a8); }
.t5 { background: linear-gradient(180deg, #2f3d55, #7c6b8f 60%, #e3a07a); }
.t6 { background: linear-gradient(200deg, #ece9e3, #b9b2a6); }
.t7 { background: linear-gradient(180deg, #8ec5e8 50%, #e9d7b4 51%, #d2b98d); }
.t8 { background: linear-gradient(180deg, #f2c57c, #e2775a 55%, #6d4c5c); }
.t9 { background: linear-gradient(170deg, #f4e9da, #d6b48a 60%, #a3714e); }
.t10 { background: linear-gradient(180deg, #a9d1ec 40%, #f1f1ef 41%, #c7cbd1); }
.t.is-link::after {
  content: "";
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%231d1d1f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l5-5M6.5 5.5h4v4'/%3E%3C/svg%3E") center / 11px no-repeat;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

/* The example Library list, with numbered notes beside it. */
.org-sidebar-wrap { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 32px; align-items: start; }
.org-sidebar {
  background: #f2f2f5;
  border: 1px solid var(--silver-deep);
  border-radius: 12px;
  padding: 10px 8px 12px;
  font-size: 13px;
  line-height: 1.2;
  box-shadow: 0 16px 40px -24px rgba(0, 0, 0, 0.35);
}
.org-sidebar .sb-head { font-size: 11px; font-weight: 600; color: var(--muted); margin: 10px 8px 4px; }
.org-sidebar .sb-head:first-child { margin-top: 2px; }
.org-sidebar .sb-row { display: flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 8px; margin: 0; color: var(--ink); border-radius: 6px; }
.org-sidebar .sb-row.l1 { padding-left: 24px; }
.org-sidebar .sb-row.l2 { padding-left: 40px; }
.org-sidebar .sb-tri { width: 10px; height: 10px; flex: none; position: relative; }
.org-sidebar .sb-tri.open::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 1px;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg);
}
.org-sidebar .sb-row.l2 .sb-tri { display: none; }
.sb-num, .org-legend li::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  flex: none;
}
.org-sidebar .sb-num { margin-left: auto; }
.org-legend { counter-reset: org; list-style: none; padding: 4px 0 0 !important; margin: 0 !important; }
.org-legend li { counter-increment: org; position: relative; padding-left: 32px; margin: 0 0 12px !important; font-size: 16px; }
.org-legend li::before { content: counter(org); position: absolute; left: 0; top: 2px; }

/* Tables */
.org-map td:first-child { width: 26%; }

/* How it compares: a grid of apps, Asphere's row raised as a card. */
.cmp { margin: 18px 0 22px; font-size: 15px; line-height: 1.45; }
.cmp-row { display: grid; grid-template-columns: 150px repeat(3, minmax(0, 1fr)); gap: 0 20px; align-items: start; padding: 15px 0; border-top: 1px solid var(--silver-deep); color: var(--ink-soft); }
.cmp-head { border-top: 0; border-bottom: 1px solid var(--hair); padding: 0 0 10px; margin-bottom: 12px; font-size: 13px; font-weight: 600; color: var(--muted); line-height: 1.3; }
.cmp-head + .cmp-row { border-top: 0; }
.cmp-app { color: var(--ink); font-weight: 600; }
.cmp-row.is-asphere {
  margin: 2px -18px 8px;
  padding: 16px 18px;
  border: 1px solid rgba(0, 102, 204, 0.28);
  border-radius: 14px;
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 14px 34px -22px rgba(0, 102, 204, 0.55);
}
.cmp-row.is-asphere + .cmp-row { border-top: 0; }

@media (max-width: 760px) {
  .org-model { grid-template-columns: 1fr; }
  .org-sidebar-wrap { grid-template-columns: 1fr; gap: 22px; }
  .org-sidebar { max-width: 340px; }
}
@media (max-width: 640px) {
  .cmp-head { display: none; }
  .cmp-row, .cmp-row.is-asphere { grid-template-columns: 1fr; gap: 8px; padding: 16px 0; }
  .cmp-row.is-asphere { margin: 0 0 6px; padding: 16px; }
  .cmp-app { margin-bottom: 2px; }
  .cmp-row [data-label]::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 1px; }
}
@media (max-width: 480px) {
  .org-projects { grid-template-columns: 1fr; }
  .org-summary { font-size: 17px; padding: 16px 18px; }
}
