/* Marketing site */

.site-header {
  position: sticky; top: 0; z-index: 90;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.site-header.is-stuck { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 1.2rem; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); font-weight: 700; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-name { font-family: var(--display); font-size: 1.22rem; letter-spacing: -.02em; }

.site-nav { display: flex; gap: .3rem; margin-left: auto; align-items: center; }
.site-nav a {
  padding: .45rem .7rem; border-radius: var(--radius-sm);
  color: var(--ink-2); text-decoration: none; font-size: .92rem; font-weight: 500;
}
.site-nav a:hover { background: var(--surface-2); color: var(--ink); }
/* `.site-nav a` is more specific than `.btn`, so without this the buttons in
   the nav lose their own foreground colour and sit at 2.8:1 on the blue. */
.site-nav a.btn { color: var(--btn-fg); }
.site-nav a.btn:hover { color: var(--btn-fg); }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: .15rem;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: .7rem 1.25rem 1rem; box-shadow: var(--shadow);
  }
  .site-nav:not(.is-open) { display: none; }
  .site-nav a { padding: .65rem .5rem; }
  .site-nav .btn { margin-top: .4rem; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
}

/* --- hero ---------------------------------------------------------------- */
.hero { padding: clamp(2.5rem, 1rem + 6vw, 5.5rem) 0 clamp(2rem, 1rem + 4vw, 4rem); position: relative; overflow: hidden; }
/* A blue bloom behind the headline, over a faint grid that fades out before
   it reaches the edges. Two layers, no images. */
.hero::before {
  content: ''; position: absolute; inset: -40% -20% auto -20%; height: 95vh;
  background:
    radial-gradient(52% 52% at 68% 8%, rgba(47, 107, 255, .30), transparent 68%),
    radial-gradient(40% 40% at 12% 30%, rgba(47, 107, 255, .12), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--hairline) 1px, transparent 1px),
    linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(70% 70% at 50% 25%, #000, transparent 78%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
@media (max-width: 940px) { .hero .wrap { grid-template-columns: 1fr; } }

.hero h1 { margin-bottom: .55rem; }
.hero .lede { font-size: clamp(1.05rem, .98rem + .4vw, 1.22rem); color: var(--ink-2); max-width: 34rem; }
.hero-actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero-note { margin-top: 1rem; font-size: .85rem; color: var(--muted); }

/* The stack of photographs in the hero, drawn as CSS only. */
.photo-stack { position: relative; aspect-ratio: 4 / 3.2; }
/* Deliberately light: these are meant to read as physical prints, and on a
   near-black page a white border is what sells that. */
.photo-stack figure {
  position: absolute; margin: 0;
  background: #f7f4ee;
  padding: 10px 10px 34px;
  border-radius: 5px;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .8), 0 2px 6px rgba(0, 0, 0, .5);
  border: 1px solid rgba(255, 255, 255, .12);
  transition: transform .35s cubic-bezier(.2, .9, .3, 1.2);
}
.photo-stack figure figcaption {
  position: absolute; left: 12px; right: 12px; bottom: 9px;
  font-family: var(--display); font-size: .76rem; font-weight: 500; color: #6b6459;
  letter-spacing: -.01em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.photo-stack .frame { aspect-ratio: 3 / 2; border-radius: 2px; overflow: hidden; position: relative; background: var(--surface-2); }
.photo-stack .frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-stack figure:nth-child(1) { width: 52%; left: 0; top: 6%; transform: rotate(-6deg); }
.photo-stack figure:nth-child(2) { width: 50%; right: 2%; top: 0; transform: rotate(4.5deg); }
.photo-stack figure:nth-child(3) { width: 56%; left: 16%; bottom: 0; transform: rotate(-1.5deg); z-index: 2; }
.photo-stack:hover figure:nth-child(1) { transform: rotate(-8.5deg) translate(-6px, -5px); }
.photo-stack:hover figure:nth-child(2) { transform: rotate(6.5deg) translate(6px, -4px); }
.photo-stack:hover figure:nth-child(3) { transform: rotate(-.5deg) translateY(4px); }

/* Tag chips drawn over the hero photo. */
.tag-box {
  position: absolute;
  border: 2px solid rgba(255, 253, 248, .95);
  border-radius: 6px;
  box-shadow: 0 0 0 1.5px rgba(0, 0, 0, .28), inset 0 0 0 1px rgba(0, 0, 0, .18);
}
.tag-box b {
  position: absolute; left: 50%; top: calc(100% + 5px); transform: translateX(-50%);
  background: rgba(8, 9, 13, .92); color: #fff;
  font-size: .64rem; font-weight: 700; letter-spacing: .01em;
  padding: .12rem .4rem; border-radius: 4px; white-space: nowrap;
}

.logos { display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: center; justify-content: center; opacity: .7; }

/* --- sections ------------------------------------------------------------ */
.section { padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0; }
.section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 44rem; margin-bottom: 2.5rem; }
.section-head.center { margin-inline: auto; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.2rem; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.5rem; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.section.alt .feature { background: var(--surface-2); }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-icon {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-text); margin-bottom: 1rem;
}
.feature h3 { font-size: 1.08rem; margin-bottom: .4rem; }
.feature p { font-size: .92rem; color: var(--muted); margin: 0; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.6rem; counter-reset: step; }
.step { counter-increment: step; position: relative; padding-top: 3.1rem; }
.step::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 2.3rem; height: 2.3rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--display); font-size: 1.1rem; font-weight: 700;
}
.step h3 { font-size: 1.05rem; }
.step p { font-size: .92rem; color: var(--muted); margin: 0; }

/* --- pricing ------------------------------------------------------------- */
/* On dark the selected pill has to be *lighter* than its track, so the track
   drops back to the page tone and the pill rises. */
.interval-switch {
  display: inline-flex; padding: .28rem; gap: .2rem;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px;
}
.interval-switch button {
  border: none; background: transparent; color: var(--muted);
  font: inherit; font-size: .88rem; font-weight: 600;
  padding: .42rem 1rem; border-radius: 999px; cursor: pointer;
  display: inline-flex; align-items: center; gap: .4rem;
}
.interval-switch button[aria-pressed="true"] { background: var(--surface-3); color: var(--ink); box-shadow: var(--shadow-sm); }
.interval-switch .save { font-size: .68rem; color: var(--good); font-weight: 700; }

.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 1.2rem; align-items: start; }
.plan {
  position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl);
  padding: 1.6rem 1.4rem; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; height: 100%;
}
.section.alt .plan { background: var(--surface-2); }
.plan.is-featured { border-color: var(--accent); box-shadow: var(--shadow); }
.plan-badge {
  position: absolute; top: -.72rem; left: 1.4rem;
  background: var(--accent); color: var(--accent-ink);
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  padding: .22rem .6rem; border-radius: 999px;
}
.plan h3 { font-size: 1.3rem; margin-bottom: .2rem; }
.plan .plan-tagline { font-size: .86rem; color: var(--muted); min-height: 2.6em; margin-bottom: 1rem; }
.plan-price { display: flex; align-items: baseline; gap: .35rem; margin-bottom: .2rem; }
.plan-price .amount { font-family: var(--display); font-size: 2.5rem; font-weight: 700; letter-spacing: -.03em; }
.plan-price .per { font-size: .9rem; color: var(--muted); }
.plan-sub { font-size: .8rem; color: var(--muted); min-height: 1.4em; margin-bottom: 1.2rem; }
.plan-sub .save { color: var(--good); font-weight: 700; }
.plan .btn { margin-bottom: 1.2rem; }
.plan-features { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; font-size: .89rem; }
.plan-features li { display: flex; gap: .5rem; align-items: flex-start; color: var(--ink-2); }
.plan-features li svg { flex: none; margin-top: .18rem; color: var(--good); }
.plan-features li.is-missing { color: var(--muted); }
.plan-features li.is-missing svg { color: var(--faint); opacity: .8; }
/* Photo capacity: the second-loudest thing on the card, after the price.
   The gigabyte figure sits underneath at a deliberately quiet weight - there
   for anyone checking the arithmetic, never competing with the count. */
.plan-capacity {
  margin: 0 0 1.2rem;
  padding: .85rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.capacity-count { display: flex; align-items: baseline; gap: .38rem; flex-wrap: wrap; }
.capacity-approx { font-size: .74rem; color: var(--muted); }
.capacity-count b {
  font-family: var(--display); font-size: 1.9rem; font-weight: 700;
  letter-spacing: -.025em; color: var(--ink); line-height: 1;
}
.capacity-unit { font-size: .92rem; color: var(--ink-2); }
.capacity-bytes { margin-top: .3rem; font-size: .7rem; color: var(--faint); }

.plan-meta {
  margin-top: auto; padding-top: 1.2rem;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem .8rem;
  font-size: .76rem; color: var(--muted);
}
.plan-meta div { border-top: 1px solid var(--line); padding-top: .5rem; }
.plan-meta b { display: block; color: var(--ink); font-size: .95rem; font-weight: 700; font-family: var(--display); }

.compare { width: 100%; border-collapse: collapse; font-size: .88rem; }
.compare th, .compare td { padding: .7rem .8rem; border-bottom: 1px solid var(--line); text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; font-weight: 600; color: var(--ink-2); }
.compare thead th { font-family: var(--display); font-size: 1rem; }
.compare tbody tr:hover { background: var(--surface-2); }
.compare .yes { color: var(--good); font-weight: 700; }
.compare .no { color: var(--faint); }

/* --- payment methods ----------------------------------------------------- */
.pay-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .7rem; }
.pay-card {
  display: flex; align-items: center; gap: .7rem;
  padding: .7rem .8rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  font-size: .88rem; font-weight: 600;
}
.section.alt .pay-card { background: var(--surface-2); }
.pay-card small { display: block; font-weight: 500; color: var(--muted); font-size: .72rem; }
.pay-logo {
  width: 40px; height: 26px; flex: none; border-radius: 5px;
  display: grid; place-items: center;
  background: var(--surface-3); border: 1px solid var(--line);
  font-size: .56rem; font-weight: 800; letter-spacing: .02em; color: var(--ink-2);
  text-transform: uppercase; overflow: hidden;
}
.pay-count { display: flex; gap: 2rem; flex-wrap: wrap; margin-bottom: 2rem; }
.pay-count div b { display: block; font-family: var(--display); font-size: 2.4rem; line-height: 1; letter-spacing: -.03em; }
.pay-count div span { font-size: .82rem; color: var(--muted); }

/* --- faq ----------------------------------------------------------------- */
.faq { max-width: 46rem; margin-inline: auto; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: .3rem 0;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 1rem 2rem 1rem 0; position: relative;
  font-weight: 600; font-size: 1.02rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: .3rem; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--accent-text); font-weight: 400; line-height: 1;
}
.faq details[open] summary::after { content: '\2212'; }
.faq details p { padding: 0 2rem 1.1rem 0; color: var(--muted); margin: 0; font-size: .95rem; }

/* --- cta / footer -------------------------------------------------------- */
/* On a dark page the closing band cannot be "the dark one" any more, so it
   earns its emphasis from a blue field and a glow instead. */
.cta-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 50% -20%, rgba(47, 107, 255, .55), transparent 62%),
    linear-gradient(180deg, #141a2e, #0c0e16);
  border: 1px solid var(--accent-line);
  color: var(--ink);
  border-radius: var(--radius-xl);
  padding: clamp(2.2rem, 1rem + 4vw, 3.8rem);
  text-align: center;
  box-shadow: 0 30px 80px -40px var(--accent-glow);
}
.cta-band::after {
  content: '';
  position: absolute; inset: auto 0 -60% 0; height: 60%;
  background: radial-gradient(60% 100% at 50% 0%, rgba(47, 107, 255, .22), transparent 70%);
  pointer-events: none;
}
.cta-band h2 { color: #fff; position: relative; }
.cta-band p { color: var(--ink-2); max-width: 36rem; margin-inline: auto; position: relative; }
.cta-band .row { position: relative; }
.cta-band .btn { --btn-bg: #fff; --btn-fg: #0b0f1a; --btn-shadow: 0 8px 30px -8px rgba(255,255,255,.35); }
.cta-band .btn:hover { --btn-bg: #e8eefc; --btn-fg: #0b0f1a; }
.cta-band .btn-ghost { --btn-bg: rgba(255,255,255,.06); --btn-fg: #fff; --btn-border: rgba(255,255,255,.24); --btn-shadow: none; }
.cta-band .btn-ghost:hover { --btn-bg: rgba(255,255,255,.13); --btn-fg: #fff; }

.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 3rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2rem; }
@media (max-width: 840px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { font-family: var(--sans); font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .8rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.footer-grid a { color: var(--ink-2); text-decoration: none; font-size: .9rem; }
.footer-grid a:hover { color: var(--accent-text); text-decoration: underline; }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .8rem; color: var(--muted);
}
address { font-style: normal; font-size: .88rem; color: var(--muted); line-height: 1.7; }

/* --- pricing cards, three-tier ------------------------------------------- */
.plan-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); max-width: 68rem; margin-inline: auto; }

.plan-headline {
  font-family: var(--display);
  font-size: 1.02rem; font-weight: 620; letter-spacing: -.018em;
  color: var(--ink); margin: 0 0 .2rem;
}
.plan-audience { font-size: .82rem; color: var(--muted); margin: 0 0 1.2rem; min-height: 2.4em; }

/* The recommended tier is lifted rather than merely outlined. */
.plan.is-featured {
  border-color: var(--accent);
  box-shadow: var(--shadow), 0 0 0 1px var(--accent-line), 0 18px 50px -24px var(--accent-glow);
  transform: translateY(-6px);
}
@media (max-width: 900px) { .plan.is-featured { transform: none; } }
.plan.is-featured .plan-price .amount { color: var(--accent-text); }

.plan-price .amount { font-size: 2.9rem; }
.plan-sub { min-height: 1.4em; }

/* Feature inheritance: the carried-forward line reads as a summary, the
   tier's own additions as the detail beneath it. */
.plan-features li.is-inherited {
  padding-bottom: .65rem;
  margin-bottom: .3rem;
  border-bottom: 1px dashed var(--line-strong);
  color: var(--ink);
}
.plan-features li.is-inherited b { color: var(--accent-text); font-weight: 650; }
.plan-features li svg { color: var(--accent-text); }

.plan-meta { grid-template-columns: repeat(3, 1fr); gap: .6rem .8rem; }
.plan-meta b { font-size: 1rem; }

.plan.is-featured .capacity-count b { color: var(--accent-text); }

.compare thead th { position: relative; padding-top: 1.4rem; }
.compare .th-badge {
  position: absolute; top: .2rem; left: 50%; transform: translateX(-50%);
  font-family: var(--sans); font-size: .6rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .09em;
  color: var(--accent-text); white-space: nowrap;
}
.compare tbody td:first-child { white-space: nowrap; }

/* Currency picker + the popup it opens. The popup uses a fixed backdrop
   because the picker sits in the middle of the pricing section and a
   position:absolute tooltip would flow with the page. */
/* The currency picker and its disclaimer sit directly above the plan cards.
   The host had a top margin and no bottom one, and the note was a full-width
   left-aligned paragraph under a centred control - so a long sentence about
   exchange rates ran straight into the first card and read as part of it. */
.currency-picker { margin-top: 1rem; margin-bottom: 2rem; }

/* "How many of MY photographs fit" - the size switcher and the three counts
   it drives, sitting above the plan cards. */
.capacity-picker {
  max-width: 62rem; margin: 0 auto 2rem; padding: 1.1rem 1.2rem 1rem;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius-lg); text-align: center;
}
.capacity-lead { margin: 0 0 .6rem; color: var(--ink-2); font-size: .95rem; }
.capacity-picker .size-switch { margin-bottom: .9rem; }

/* Same shape as the billing-interval switch, so it reads as a control of the
   same kind rather than a new idea. */
.size-switch { display: inline-flex; gap: .2rem; padding: .2rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.size-switch button {
  border: 0; background: transparent; cursor: pointer;
  padding: .32rem .72rem; border-radius: 999px;
  font: inherit; font-size: .88rem; font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.size-switch button:hover { color: var(--ink); }
.size-switch button[aria-pressed="true"] { background: var(--accent); color: var(--accent-on, #fff); }
.size-switch button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.capacity-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem;
  margin: 0 0 .8rem;
}
.capacity-col { display: flex; flex-direction: column; align-items: center; gap: .1rem; }
.capacity-plan { font-size: .82rem; color: var(--muted); letter-spacing: .02em; }
.capacity-big { display: flex; align-items: baseline; gap: .3rem; }
.capacity-big b { font-family: var(--display); font-size: 1.5rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.capacity-word { font-size: .82rem; color: var(--ink-2); }
/* The comparison that makes the control mean something. Deliberately quiet:
   it is context for the number above, not a claim competing with it. */
.capacity-versus { font-size: .74rem; color: var(--muted); margin-top: .15rem; text-wrap: balance; }
.capacity-note {
  margin: 0; padding-top: .8rem; border-top: 1px solid var(--line);
  font-size: .8rem; line-height: 1.5; color: var(--muted); text-wrap: pretty;
}

@media (max-width: 560px) {
  .capacity-strip { grid-template-columns: 1fr; gap: .9rem; }
  .capacity-col { flex-direction: row; justify-content: space-between; align-items: baseline; text-align: left; }
  .capacity-versus { margin-top: 0; }
}
.currency-note {
  max-width: 44rem; margin: .7rem auto 0;
  text-align: center; text-wrap: pretty; line-height: 1.5;
}

/* Never let the cards butt against whatever precedes them, whichever of the
   picker, the note or the interval switch happens to be last. */
.plan-grid { margin-top: .5rem; }

.currency-info {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  width: 1.6rem; height: 1.6rem;
  border-radius: 50%;
  padding: 0; margin-left: .3rem;
  cursor: pointer;
  font-size: .9rem; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
.currency-info:hover { color: var(--accent-text); border-color: var(--accent); }

.currency-popup-backdrop {
  position: fixed; inset: 0;
  background: rgba(4, 5, 8, .62);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.currency-popup {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 1.6rem 1.6rem 1.3rem;
  max-width: 30rem;
  box-shadow: var(--shadow);
}
.currency-popup h3 { margin: 0 0 .8rem; font-size: 1.15rem; }
.currency-popup p { margin: 0 0 .8rem; line-height: 1.55; }
.currency-popup .btn { margin-top: .4rem; }
