/* Feature pages and the features hub. Same tokens and fonts as the home page. */
:root {
  --indigo: #281e96;
  --indigo-deep: #170f63;
  --orange: #f26e1e;
  --orange-ink: #b43c0b;
  --paper: #f5f3ff;
  --ink: #17143a;
  --ink-soft: #55527a;
  --line: rgba(23, 20, 58, 0.12);
  --on-dark: rgba(255, 255, 255, 0.78);
}

* { box-sizing: border-box; }
body { margin: 0; font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 17px; line-height: 1.6; color: var(--ink); background: #fff; }
h1, h2 { font-family: "Plus Jakarta Sans", "Geist", sans-serif; margin: 0; line-height: 1.1; letter-spacing: -0.02em; }
a { color: var(--indigo); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 10; padding: 8px 14px; background: #fff; border-radius: 8px; }
.skip:focus { left: 8px; }

.site { background: var(--indigo); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: inline-flex; }
.site nav { display: flex; gap: 24px; }
.site nav a { color: #fff; text-decoration: none; font-weight: 500; }
.site nav a:hover { text-decoration: underline; }

.crumbs { padding: 22px 0 0; font-size: 15px; color: var(--ink-soft); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; list-style: none; }
.crumbs li + li::before { content: "/"; margin: 0 10px; opacity: 0.5; }
.crumbs a { color: var(--ink-soft); }

.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); column-gap: 72px; padding: 36px 0 24px; align-items: start; }
.feature .intro { grid-column: 1; }
.feature .body { grid-column: 1; }
.feature .shot { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 24px; margin: 6px 0 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: 28px; box-shadow: 0 30px 60px -24px rgba(23, 20, 58, 0.45); border: 1px solid var(--line); }

h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 800; }
.lead { margin: 22px 0 0; font-size: 20px; color: var(--ink); max-width: 640px; }
.glance { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 28px 0 0; padding: 4px 20px; max-width: 640px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.glance div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.glance div:nth-last-child(-n+2) { border-bottom: 0; }
.glance dt { font-size: 14px; color: var(--ink-soft); }
.glance dd { margin: 2px 0 0; font-weight: 600; }

.body { padding-top: 12px; }
.body section { margin-top: 44px; max-width: 640px; }
h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; }
.steps { margin: 20px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 0 0 18px 52px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%; background: var(--indigo); color: #fff; font: 700 16px/34px "Plus Jakarta Sans", sans-serif; text-align: center; }
.facts { margin: 18px 0 0; padding-left: 22px; }
.facts li { margin: 0 0 10px; padding-left: 4px; }
.facts li::marker { color: var(--orange); }

.qa { overflow-x: clip; }
.qa details { padding: 16px 0; border-top: 1px solid var(--line); }
.qa details:last-child { border-bottom: 1px solid var(--line); }
.qa summary { display: flex; justify-content: space-between; gap: 16px; list-style: none; cursor: pointer; font-weight: 600; font-size: 18px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--indigo); transition: transform 0.2s; }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa p { margin: 10px 0 0; color: var(--ink-soft); }

.more-features, .about { padding-top: 40px; }
.hub .lead { max-width: 760px; }
.hub { padding: 36px 0 8px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 20px 0 0; padding: 0; list-style: none; }
.cards li { display: flex; }
.cards a { display: flex; flex-direction: column; gap: 6px; width: 100%; padding: 20px; border: 1px solid var(--line); border-radius: 18px; text-decoration: none; color: var(--ink); background: #fff; transition: border-color 0.2s, transform 0.2s; }
.cards a:hover { border-color: var(--indigo); transform: translateY(-3px); }
.cards strong { font: 700 18px/1.25 "Plus Jakarta Sans", sans-serif; }
.cards span { font-size: 15px; color: var(--ink-soft); }
.cards img { width: 100%; height: 150px; object-fit: cover; object-position: top; border-radius: 12px; border: 1px solid var(--line); margin-bottom: 8px; }
.cards.wide { grid-template-columns: repeat(4, minmax(0, 1fr)); }
section > h2 { margin-top: 0; }
main > .wrap > section { margin-top: 48px; }
.about p { max-width: 720px; color: var(--ink-soft); }

.cta { margin-top: 72px; padding: 64px 0; background: radial-gradient(120% 120% at 20% 0%, #3b2fc4 0%, var(--indigo) 45%, var(--indigo-deep) 100%); color: #fff; }
.cta h2 { font-size: clamp(28px, 4vw, 40px); }
.cta p { max-width: 560px; color: var(--on-dark); }
.btn { display: inline-block; padding: 14px 26px; border-radius: 99px; background: var(--orange); color: #fff; font-weight: 600; text-decoration: none; }
.btn:hover { background: #d95c10; }

.site-foot { background: var(--indigo-deep); color: var(--on-dark); padding: 28px 0; font-size: 15px; }
.site-foot .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.site-foot a { margin-left: 20px; color: var(--on-dark); text-decoration: none; }
.site-foot a:hover { color: #fff; }

/* Floating store badges, always in view. Plain text until the apps are published. */
body { padding-bottom: 84px; }
.store-float { position: fixed; z-index: 20; right: 20px; bottom: 20px; display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 18px; border-radius: 22px; background: var(--indigo-deep); box-shadow: 0 18px 40px -12px rgba(23, 20, 58, 0.6); }
.store-note { color: var(--on-dark); font-size: 14px; font-weight: 500; margin-right: 4px; }
.store-badge { display: flex; flex-direction: column; justify-content: center; min-width: 132px; padding: 7px 14px; border-radius: 12px; background: #fff; color: var(--ink); }
.store-badge small { font-size: 11px; line-height: 1.3; color: var(--ink-soft); }
.store-badge strong { font: 700 16px/1.3 "Plus Jakarta Sans", sans-serif; }

@media (max-width: 900px) {
  .cards, .cards.wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .feature { grid-template-columns: minmax(0, 1fr); padding-top: 24px; }
  .feature .shot { grid-column: 1; grid-row: auto; position: static; max-width: 300px; margin: 28px 0 0; order: 2; }
  .feature .body { order: 3; }
  .lead { font-size: 18px; }
}
@media (max-width: 560px) {
  .glance { grid-template-columns: minmax(0, 1fr); }
  .glance div:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .cards, .cards.wide { grid-template-columns: minmax(0, 1fr); }
  .site nav { gap: 16px; }
  .site nav a { font-size: 15px; }
  .site-foot a { margin: 0 16px 0 0; }
  .site-foot .wrap > span:last-child { display: flex; flex-wrap: wrap; gap: 4px 0; }
}
@media (max-width: 640px) {
  .store-float { left: 0; right: 0; bottom: 0; justify-content: center; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; }
  .store-note { display: none; }
  .store-badge { flex: 1; min-width: 0; max-width: 200px; }
}
@media (max-width: 400px) {
  .site nav a:first-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cards a, .qa summary::after { transition: none; }
}
