/* ==========================================================================
   Georgia Travel AI Guide — purchase page
   Mobile-first. Deliberately plain: this page asks tourists for money, so it
   favours legibility and calm over decoration.
   ========================================================================== */

:root {
  --ink: #16191c;
  --ink-soft: #5b6470;
  --ink-faint: #8c949e;
  --paper: #f5f4f1;
  --surface: #ffffff;
  --line: #e4e2dd;
  --accent: #11605b;
  --accent-dark: #0c4a46;
  --accent-wash: #eaf2f1;
  --danger: #a8301f;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(22, 25, 28, 0.05), 0 12px 32px rgba(22, 25, 28, 0.07);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ----------------------------------------------------------------- layout */

.shell {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: 24px 16px calc(32px + env(safe-area-inset-bottom));
}

@media (min-width: 600px) {
  .shell {
    padding-top: 56px;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 20px;
}

@media (min-width: 400px) {
  .card {
    padding: 28px 24px;
  }
}

/* ------------------------------------------------------------------ brand */

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 8px;
  background: var(--accent-wash);
  color: var(--accent);
}

.brand__mark svg {
  width: 17px;
  height: 17px;
}

.brand__name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
}

/* ------------------------------------------------------------------- copy */

.title {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lede {
  margin: 0 0 22px;
  color: var(--ink-soft);
  font-size: 15px;
}

/* ------------------------------------------------------------------ price */

.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.price__amount {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.price__meta {
  font-size: 14px;
  color: var(--ink-faint);
}

.price__skeleton {
  display: inline-block;
  width: 104px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(90deg, #eeece8 25%, #f7f6f4 50%, #eeece8 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s ease-in-out infinite;
  vertical-align: -2px;
}

@keyframes shimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .price__skeleton {
    animation: none;
  }
}

/* -------------------------------------------------------- no auto-renewal */

.norenew {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 18px 0 0;
  padding: 11px 13px;
  border-radius: 11px;
  background: var(--accent-wash);
  color: var(--accent-dark);
  font-size: 13.5px;
  line-height: 1.45;
}

.norenew__icon {
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 1px;
}

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

.features {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.features li {
  position: relative;
  padding: 0 0 0 26px;
  margin-bottom: 10px;
  font-size: 15px;
}

.features li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------------------------------------------------------------- the CTA */

.buy {
  display: block;
  width: 100%;
  margin-top: 24px;
  padding: 16px 20px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.08s ease;
  /* Comfortably above the 44px minimum touch target. */
  min-height: 54px;
}

.buy:hover:not(:disabled) {
  background: var(--accent-dark);
}

.buy:active:not(:disabled) {
  transform: translateY(1px);
}

.buy:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.buy:disabled {
  background: #b9c2c1;
  cursor: progress;
}

.error {
  margin: 12px 0 0;
  color: var(--danger);
  font-size: 14px;
}

/* -------------------------------------------------------------- trust row */

.trust {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.trust__line {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 9px;
  color: var(--ink-soft);
  font-size: 13px;
}

.trust__line:last-child {
  margin-bottom: 0;
}

.trust__line svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--ink-faint);
}

.trust__line strong {
  color: var(--ink);
  font-weight: 600;
}

/* ------------------------------------------------------------------ steps */

.steps {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.steps__title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}

.steps ol {
  margin: 0;
  padding-left: 20px;
  color: var(--ink-soft);
  font-size: 14px;
}

.steps li {
  margin-bottom: 6px;
}

/* ----------------------------------------------------------- confirmation */

.card--success {
  text-align: left;
}

.tick {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
}

.tick svg {
  width: 26px;
  height: 26px;
}

.title--success {
  font-size: 26px;
}

#success-heading:focus {
  outline: none;
}

.activate {
  margin-top: 4px;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--accent-wash);
}

.activate__title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-dark);
}

.activate__steps {
  margin: 0;
  padding-left: 20px;
  font-size: 14.5px;
  color: var(--ink);
}

.activate__steps li {
  margin-bottom: 8px;
}

.activate__note {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.receipt {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.receipt__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 8px;
  font-size: 13.5px;
}

.receipt dt {
  color: var(--ink-faint);
  flex: none;
}

.receipt dd {
  margin: 0;
  text-align: right;
  word-break: break-all;
}

.receipt code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.help {
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
}

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

.footer {
  margin-top: 20px;
  text-align: center;
}

.footer__links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-faint);
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.footer__note {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--ink-faint);
}

.noscript {
  margin: 16px;
  padding: 14px;
  border-radius: 12px;
  background: #fff4f2;
  color: var(--danger);
  font-family: var(--font);
  font-size: 14px;
  text-align: center;
}

/* -------------------------------------------------------------- dark mode */

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f2f3f4;
    --ink-soft: #a9b1b9;
    --ink-faint: #7d858d;
    --paper: #0f1113;
    --surface: #191c1f;
    --line: #2b2f33;
    --accent: #4fb3a6;
    --accent-dark: #66c4b7;
    --accent-wash: #14302d;
    --danger: #f08b7a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.35);
  }

  .tick {
    color: #0f1113;
  }

  .buy {
    color: #0b1413;
  }

  .buy:disabled {
    background: #3a4145;
    color: #8d959a;
  }

  .price__skeleton {
    background: linear-gradient(90deg, #23272b 25%, #2c3135 50%, #23272b 75%);
    background-size: 200% 100%;
  }

  .noscript {
    background: #2a1714;
  }
}
