/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(0.17 0.012 265 / 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--header-height);
}

.wordmark {
  display: flex;
  align-items: baseline;
  gap: 1px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  flex-shrink: 0;
}

.wordmark__accent {
  color: var(--accent);
}

.wordmark__dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 1px;
  margin-left: 5px;
}

.wordmark--lg {
  font-size: 18px;
}

.wordmark--lg .wordmark__dot {
  width: 5px;
  height: 5px;
}

.site-nav {
  margin-left: auto;
  display: flex;
  gap: 4px;
}

.site-nav__link {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--text-faint);
  padding: 8px 12px;
  border-radius: 4px;
  transition: color 120ms ease, background-color 120ms ease;
}

.site-nav__link:hover {
  color: var(--text);
  background: oklch(0.22 0.014 265);
}

.site-nav__link[aria-current='page'] {
  color: var(--text);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface-1);
}

.site-footer__upper {
  padding: 52px 24px 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 40px;
}

.site-footer__tagline {
  margin-top: 12px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-faintest);
  max-width: 30ch;
}

.site-footer__col-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faintest);
  margin-bottom: 4px;
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.site-footer__link {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 120ms ease;
  word-break: break-word;
}

.site-footer__link:hover {
  color: var(--text);
}

.site-footer__lower {
  padding: 20px 24px 40px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-faintest);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.01em;
  border-radius: 7px;
  padding: 15px 26px;
  font-size: 15px;
  border: 1px solid transparent;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
  cursor: pointer;
  text-align: center;
}

.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: var(--on-accent);
}

.btn--secondary {
  background: transparent;
  border-color: var(--border-control);
  color: oklch(0.90 0.005 265);
  font-weight: 600;
}

.btn--secondary:hover {
  border-color: oklch(0.50 0.014 265);
  background: var(--surface-2-hover);
  color: oklch(0.90 0.005 265);
}

.btn--block {
  display: block;
  width: 100%;
}

.btn--buy {
  font-size: 16px;
  padding: 17px 24px;
  border-radius: 8px;
}

/* ---------- Section heading (mono kicker + headline) ---------- */
.section-heading__label {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.section-heading__title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-top: 12px;
}

.section-heading__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.section-heading__cta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
}

/* ---------- App card ---------- */
.app-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 120ms ease, background-color 120ms ease;
}

.app-card:hover {
  border-color: var(--accent-border-card);
  background: var(--surface-2-hover);
}

.app-card__icon {
  width: 60px;
  height: 60px;
  border-radius: 13px;
  display: block;
}

.app-card__name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 7px;
}

.app-card__tagline {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted-2);
  margin: 0;
}

.app-card__footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-card__price {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.app-card__action {
  position: relative;
  border: 1px solid var(--border-control);
  border-radius: 6px;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text);
  transition: border-color 120ms ease, color 120ms ease;
}

/* Stretched-link pattern: the visible "View app" link's ::after covers the
   whole card, so the entire surface is clickable with exactly one tab stop. */
.app-card__action::after {
  content: '';
  position: absolute;
  inset: 0;
}

.app-card:hover .app-card__action {
  border-color: var(--accent);
  color: var(--accent);
}

/* Placeholder card */
.app-card--placeholder {
  border: 1px dashed var(--border);
  background: none;
  color: var(--text-faintest);
}

.app-card--placeholder:hover {
  border-color: var(--border);
  background: none;
}

.app-card__icon--placeholder {
  width: 60px;
  height: 60px;
  border-radius: 13px;
  border: 1px dashed var(--border);
}

.app-card--placeholder .app-card__name {
  color: var(--text-faint);
}

.app-card--placeholder .app-card__tagline {
  color: var(--text-faintest);
}

/* ---------- Trust strip (home direction A) ---------- */
.trust-strip {
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  margin-top: 84px;
}

.trust-strip__cell {
  padding: 26px 24px;
}

.trust-strip__index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 10px;
}

.trust-strip__title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.trust-strip__body {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-muted-2);
}

/* ---------- Facts panel (home direction B) ---------- */
.facts-panel {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  overflow: hidden;
}

.facts-panel__header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}

.facts-panel__list {
  padding: 6px 16px 16px;
  font-family: var(--font-mono);
  font-size: 13px;
}

.facts-panel__row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px dashed oklch(0.26 0.014 265);
}

.facts-panel__row:last-child {
  border-bottom: none;
}

.facts-panel__row dt {
  color: var(--text-faint);
}

.facts-panel__row dd {
  margin: 0;
  text-align: right;
}

.facts-panel__row--accent dd {
  color: var(--accent);
}

/* ---------- Counter list (about band) ---------- */
.counter-list__row {
  padding: 18px 20px;
  display: flex;
  gap: 14px;
  align-items: baseline;
}

.counter-list__figure {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  min-width: 42px;
}

.counter-list__text {
  font-size: 14.5px;
  color: oklch(0.82 0.008 265);
}

/* ---------- App detail hero ---------- */
.app-hero {
  background: var(--surface-1);
  border-bottom: 1px solid var(--border);
}

.app-hero__back {
  padding: 20px 24px 0;
}

.app-hero__back-link {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  transition: color 120ms ease;
}

.app-hero__back-link:hover {
  color: var(--accent);
}

.app-hero__body {
  padding: 34px 24px 56px;
}

.app-hero__identity {
  display: flex;
  gap: 20px;
  align-items: center;
}

.app-hero__identity-text {
  /* Flex items default to min-width:auto, which stops long titles from
     wrapping and overflows the row at narrow widths. */
  min-width: 0;
}

.app-hero__icon {
  width: 84px;
  height: 84px;
  border-radius: 18px;
  flex-shrink: 0;
}

.app-hero__name {
  font-size: var(--h1-app-detail);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 0 0 8px;
}

.app-hero__tagline {
  font-size: 17px;
  line-height: 1.5;
  color: oklch(0.76 0.012 265);
}

.app-hero__description {
  font-size: 16px;
  line-height: 1.68;
  color: var(--text-muted);
  max-width: 56ch;
  margin-top: 30px;
  text-wrap: pretty;
}

.privacy-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--accent-border);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  margin-top: 26px;
}

.privacy-pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ---------- Price panel ---------- */
.price-panel {
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--bg);
  padding: 26px;
}

.price-panel__row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.price-panel__price {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.price-panel__note {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 10px 0 22px;
}

.price-panel__specs {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.price-panel__spec-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-top: 1px dashed var(--border);
}

.price-panel__spec-row dt {
  color: oklch(0.60 0.012 265);
}

.price-panel__spec-row dd {
  margin: 0;
}

/* ---------- Screenshot gallery ---------- */
.gallery-frame {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-2);
}

.gallery-stage {
  position: relative;
  aspect-ratio: 16 / 10;
}

.gallery-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  background-color: oklch(0.22 0.013 265);
  background-image: repeating-linear-gradient(
    135deg,
    oklch(0.25 0.013 265) 0 10px,
    transparent 10px 20px
  );
}

.gallery-slide[hidden] {
  display: none;
}

.gallery-slide__index {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 10px;
}

.gallery-slide__label {
  font-family: var(--font-mono);
  font-size: 15px;
  color: oklch(0.86 0.005 265);
  max-width: 40ch;
  line-height: 1.5;
}

.gallery-controls {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.gallery-controls[hidden] {
  display: none;
}

.gallery-arrow {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border-control);
  border-radius: 6px;
  background: transparent;
  color: oklch(0.90 0.005 265);
  font-size: 15px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 120ms ease, color 120ms ease;
}

.gallery-arrow:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.gallery-dots {
  display: flex;
  gap: 8px;
}

.gallery-dot {
  position: relative;
  width: 30px;
  height: 4px;
  border-radius: 2px;
  border: none;
  padding: 0;
  background: var(--dot-idle);
  transition: background-color 120ms ease;
}

/* Expand the tap target to 44x44 without changing the visible dot */
.gallery-dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
}

.gallery-dot[aria-selected='true'] {
  background: var(--accent);
}

.gallery-note {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faintest);
}

.gallery-stacked .gallery-slide {
  position: static;
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid var(--border);
}

.gallery-stacked .gallery-slide:last-child {
  border-bottom: none;
}

/* ---------- Feature grid cells ---------- */
.feature-cell {
  padding: 22px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.feature-cell__index {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  padding-top: 3px;
  flex-shrink: 0;
}

.feature-cell__title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 5px;
}

.feature-cell__body {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-muted-2);
}

/* ---------- Closing CTA panel ---------- */
.cta-panel {
  border: 1px solid var(--accent-border-soft);
  border-radius: 14px;
  padding: 44px 40px;
  background: var(--accent-wash);
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
}

.cta-panel__title {
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.cta-panel__body {
  font-size: 15.5px;
  line-height: 1.55;
  color: oklch(0.78 0.012 265);
}

.cta-panel__action {
  padding: 17px 28px;
  flex-shrink: 0;
}

/* ---------- Requirements / legal footer block ---------- */
.detail-footer {
  margin-top: 44px;
  padding-top: 34px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 32px;
}

.detail-footer__heading {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 500;
  margin-bottom: 12px;
}

.detail-footer__requirements {
  padding-left: 18px;
  font-size: 14.5px;
  line-height: 1.75;
  color: oklch(0.76 0.012 265);
  list-style: disc;
}

.detail-footer__legal {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.detail-footer__legal-link--primary {
  font-size: 14.5px;
  color: var(--accent);
}

.detail-footer__legal-link--secondary {
  font-size: 14.5px;
  color: var(--text-muted);
  transition: color 120ms ease;
}

.detail-footer__legal-link--secondary:hover {
  color: var(--text);
}

/* ---------- Policy layout ---------- */
.policy-identity {
  background: var(--surface-1);
  border-bottom: 1px solid var(--border);
}

.policy-identity__inner {
  padding: 44px 24px;
  display: flex;
  gap: 16px;
  align-items: center;
}

.policy-identity__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  flex-shrink: 0;
}

.policy-identity__text {
  min-width: 0;
}

.policy-identity__label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 5px;
}

.policy-identity__name {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.policy-identity__link {
  margin-left: auto;
  border: 1px solid var(--border-control);
  border-radius: 6px;
  padding: 9px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: oklch(0.88 0.005 265);
  transition: border-color 120ms ease, color 120ms ease;
  flex-shrink: 0;
}

.policy-identity__link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.policy-article {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--text-prose);
  padding: 56px 24px 96px;
}

.policy-article--site {
  padding: 72px 24px 96px;
}

.policy-article h1 {
  font-size: var(--h1-policy);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 10px;
}

.policy-article__date {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-faint);
  margin-bottom: 40px;
}

.policy-article__standfirst {
  font-size: 18px;
  color: oklch(0.90 0.005 265);
  margin-bottom: 22px;
}

.policy-article h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 40px 0 14px;
}

.policy-article h3 {
  font-size: 16px;
  font-weight: 700;
  color: oklch(0.92 0.005 265);
  margin: 26px 0 10px;
}

.policy-article p {
  margin: 0 0 18px;
}

.policy-article ul {
  margin: 0 0 18px;
  padding-left: 20px;
  list-style: disc;
}

/* Links inline within prose need a non-colour cue (SC 1.4.1) — the accent
   colour alone isn't distinguishable enough from the surrounding paragraph text. */
.policy-article p a,
.policy-article li a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.policy-article strong {
  color: var(--text);
}

.policy-article em {
  font-style: italic;
}

.policy-article__draft-note {
  margin-top: 48px;
  padding: 18px 20px;
  border: 1px dashed var(--border-strong);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-faintest);
}

.policy-article__closing {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 14.5px;
  color: oklch(0.62 0.012 265);
  font-style: italic;
}

/* ---------- About page ---------- */
.about-cell {
  background: var(--surface-2);
  padding: 26px 24px;
}

.about-cell__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 12px;
}

.about-cell__link {
  font-size: 15.5px;
  word-break: break-word;
}

.about-cell__note {
  margin-top: 12px;
  font-size: 13.5px;
  line-height: 1.55;
  color: oklch(0.66 0.012 265);
}

.about-cell__legal-line {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-prose);
}

/* ---------- Contact form ---------- */
.contact-form {
  margin-top: 40px;
  max-width: 560px;
}

.form-field {
  margin-bottom: 22px;
}

.form-field__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 8px;
}

.form-field__input,
.form-field__textarea {
  width: 100%;
  background: var(--surface-1);
  border: 1px solid var(--border-control);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text);
  transition: border-color 120ms ease;
}

.form-field__input::placeholder,
.form-field__textarea::placeholder {
  color: var(--text-faintest);
}

.form-field__textarea {
  resize: vertical;
  min-height: 160px;
}

.form-field__error {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: oklch(0.75 0.14 25);
}

/* Honeypot: pulled off-screen and out of the tab order rather than
   display:none, since some bots skip fields hidden that way. */
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-summary-error.validation-summary-errors {
  margin-bottom: 22px;
  padding: 14px 16px;
  border: 1px solid oklch(0.55 0.18 25);
  border-radius: 8px;
  background: oklch(0.24 0.05 25);
}

.form-summary-error ul {
  margin: 0;
  padding-left: 18px;
  list-style: disc;
  color: oklch(0.88 0.05 25);
  font-size: 14px;
  line-height: 1.6;
}

.form-success {
  margin-top: 40px;
  padding: 26px 24px;
  background: var(--surface-2);
  border-radius: 10px;
  max-width: 560px;
}

.form-success__title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.form-success__body {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- Meta row (apps index) ---------- */
.meta-row {
  margin-top: 34px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  display: flex;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
}

.meta-row__sep {
  color: var(--dot-idle);
}
