/* Landing page. Loaded after style.css: takes its colours, buttons and icon tiles, and sets its own layout and type. */

@property --progress { syntax: '<percentage>'; inherits: false; initial-value: 0%; }

.landing { line-height: 24px; }
.landing main { max-width: none; padding: 0; }

.wrap { max-width: 1120px; margin-inline: auto; padding-inline: 20px; }
.landing section { padding-block: clamp(48px, 8vw, 96px); scroll-margin-top: 8px; }

.landing h1 { margin: 0; font-size: clamp(34px, 5vw, 54px); line-height: 1.06; letter-spacing: -0.03em; }
.landing h2 { margin: 0; font-size: clamp(28px, 3.8vw, 40px); line-height: 1.1; font-weight: 700; color: var(--text); text-transform: none; letter-spacing: -0.025em; text-wrap: balance; }
.landing h3 { margin: 0; font-size: 19px; line-height: 24px; font-weight: 600; letter-spacing: -0.01em; }
.landing .lead { margin: 0; max-width: 36em; font-size: clamp(17px, 1.7vw, 20px); line-height: 1.4; }
.head { display: grid; gap: 12px; margin-bottom: clamp(24px, 4vw, 40px); }
.fine { max-width: 30em; font-size: 15px; line-height: 20px; color: var(--muted); text-wrap: pretty; }

/* Top bar */
.bar { display: flex; align-items: center; gap: 16px; padding-block: max(12px, env(safe-area-inset-top)) 12px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; color: inherit; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; }
.brand .mark { width: 32px; height: 32px; margin: 0; border-radius: 7.5px; }
.brand .mark svg { width: 19px; height: 19px; }
.links { display: none; gap: 28px; font-size: 15px; }
.links a { color: var(--muted); text-decoration: none; }
/* The small button of an App Store row; ::after widens the touch area to 44px */
.get-link { position: relative; padding: 5px 16px; border-radius: 17px; background: var(--fill); color: var(--accent); font-size: 15px; font-weight: 700; text-decoration: none; }
.get-link::after { content: ""; position: absolute; inset: -6px; }
.get-link:active { opacity: 0.5; }

/* Hero: the pitch, then a list of programs the way the App Store shows them, with the price in each row */
.landing .hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: center; padding-block: clamp(20px, 5vw, 72px) clamp(48px, 8vw, 96px); }
.pitch { display: grid; gap: 18px; justify-items: start; }
.pitch .primary { justify-self: stretch; margin-top: 6px; padding-inline: 28px; }

.store { padding: 4px 0 6px; background: var(--surface); border-radius: 22px; box-shadow: 0 40px 80px -48px rgb(0 0 0 / 0.35); }
.store-cap { padding: 14px 20px 6px; font-size: 13px; line-height: 18px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.02em; }
.item { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 10px 20px; }
.item + .item { background: linear-gradient(var(--line), var(--line)) no-repeat 86px 0 / 100% 1px; }
.item .icon { width: 52px; height: 52px; font-size: 24px; }
.item b { display: block; font-weight: 600; }
.item small { display: block; font-size: 13px; line-height: 18px; color: var(--muted); }

.get { display: grid; place-items: center; min-width: 82px; height: 32px; padding: 0 14px; border-radius: 16px; background: var(--fill); color: var(--accent); font-size: 15px; font-weight: 700; white-space: nowrap; }
.get i { grid-area: 1 / 1; font-style: normal; }
/* The first row plays the purchase: price, the App Store's download ring, done */
.get .ring {
  width: 22px; height: 22px; border-radius: 50%;
  background: conic-gradient(var(--accent) var(--progress), var(--faint) 0);
  -webkit-mask: radial-gradient(circle, transparent 7.5px, #000 8px);
  mask: radial-gradient(circle, transparent 7.5px, #000 8px);
}
.get .ring, .get .done { opacity: 0; }

/* Steps */
.steps3 { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps3 li { counter-increment: step; display: grid; align-content: start; gap: 6px; padding: 20px; background: var(--surface); border-radius: 18px; }
.steps3 li::before {
  content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 10px;
  border-radius: 50%; background: var(--button); color: #fff; font-size: 15px; font-weight: 700;
}
.steps3 p, .facts p { font-size: 15px; line-height: 21px; color: var(--muted); text-wrap: pretty; }

/* The shelf of programs: icons with names under them, as on the Home Screen */
.shelf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 6px; margin: 0; padding: 24px 10px; list-style: none; background: var(--surface); border-radius: 22px; }
.shelf li { display: grid; justify-items: center; gap: 7px; min-width: 0; font-size: 11px; line-height: 15px; text-align: center; }
.shelf li span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shelf .icon { width: 60px; height: 60px; font-size: 27px; }

/* A row that opens: the full catalogue and the questions */
.fold summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 12px 20px; font-weight: 600; cursor: pointer; list-style: none; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary::after {
  content: ""; flex: none; width: 8px; height: 8px; margin: -4px 3px 0;
  border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint); transform: rotate(45deg); transition: transform 0.2s;
}
.fold[open] summary::after { transform: translateY(4px) rotate(225deg); }
.fold summary:focus-visible { outline-offset: -2px; border-radius: 18px; }

.all { margin-top: 12px; background: var(--surface); border-radius: 18px; }
.all dl { margin: 0; padding: 0 20px 6px; }
.all dl div { display: grid; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line); }
.all dt { font-size: 13px; line-height: 18px; color: var(--muted); }
.all dd { margin: 0; font-size: 15px; line-height: 21px; text-wrap: pretty; }

/* The price: the one block of colour on the page */
.price-card { display: grid; gap: 28px; padding: clamp(24px, 5vw, 56px); border-radius: 28px; background: var(--button); color: #fff; }
.figure { font-size: clamp(88px, 17vw, 168px); line-height: 0.9; font-weight: 700; letter-spacing: -0.05em; white-space: nowrap; }
.figure small { display: block; margin-top: 14px; font-size: 19px; line-height: 24px; font-weight: 600; letter-spacing: 0; opacity: 0.85; }
.terms { display: grid; gap: 24px; }
.terms ul { margin: 0; padding: 0; list-style: none; }
.terms li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; padding: 13px 0; border-top: 1px solid rgb(255 255 255 / 0.28); font-weight: 500; }
.terms li:last-child { border-bottom: 1px solid rgb(255 255 255 / 0.28); }
.terms li::before { content: "\2713\FE0E"; font-weight: 700; }
.price-card .primary { background: #fff; color: #0066cc; }
.price-card .primary:active { background: #e5e5ea; }
.price-card :focus-visible { outline-color: #fff; }

/* What the visitor trusts the site with */
.facts { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.facts li { display: grid; align-content: start; gap: 4px; padding: 18px 20px; background: var(--surface); border-radius: 18px; }

.faq { max-width: 720px; background: var(--surface); border-radius: 18px; }
.faq details + details { border-top: 1px solid var(--line); }
.faq p { padding: 0 44px 18px 20px; font-size: 15px; line-height: 21px; color: var(--muted); text-wrap: pretty; }

.closing { display: grid; justify-items: center; gap: 14px; text-align: center; }
.closing .primary { min-width: min(100%, 280px); margin-top: 10px; }

.foot { display: grid; gap: 4px; padding-block: 28px max(32px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: 13px; line-height: 18px; color: var(--muted); }
.foot p:first-child { color: var(--text); font-weight: 600; }

@media (hover: hover) {
  .links a:hover, .fold summary:hover { color: var(--accent); }
  .landing .primary:hover { background: var(--button-pressed); }
  .price-card .primary:hover { background: #f2f2f7; }
  .get-link:hover { background: var(--line); }
}

@media (min-width: 600px) {
  .pitch .primary { justify-self: start; }
  .shelf li { font-size: 12px; }
}

@media (min-width: 760px) {
  .links { display: flex; margin-right: 12px; }
  .steps3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .steps3 li { padding: 24px; }
  .all dl div { grid-template-columns: 200px 1fr; gap: 16px; }
  .price-card { grid-template-columns: auto minmax(0, 1fr); gap: clamp(40px, 7vw, 88px); align-items: center; }
  .terms .primary { justify-self: start; min-width: 240px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .shelf { grid-template-columns: repeat(8, minmax(0, 1fr)); padding: 32px 20px; gap: 28px 8px; }
}

@media (min-width: 900px) {
  .landing .hero { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 64px; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .get.live .price { animation: get-price 8s infinite; }
  .get.live .ring { animation: get-ring 8s infinite; }
  .get.live .done { animation: get-done 8s infinite; }
}
@keyframes get-price { 0%, 28% { opacity: 1; } 32%, 94% { opacity: 0; } 100% { opacity: 1; } }
@keyframes get-ring {
  0%, 30% { opacity: 0; --progress: 0%; }
  34% { opacity: 1; --progress: 0%; }
  64% { opacity: 1; --progress: 100%; }
  68%, 100% { opacity: 0; --progress: 100%; }
}
@keyframes get-done { 0%, 66% { opacity: 0; } 70%, 92% { opacity: 1; } 96%, 100% { opacity: 0; } }
