/* travo.ai Premium — the web purchase page. The look of travo-ai.app: deep navy, cyan accent. */
:root {
  --bg-1: #0a1628;
  --bg-2: #1a1a2e;
  --bg-3: #16213e;
  --text: #ffffff;
  --text-2: rgba(255, 255, 255, 0.78);
  --text-3: rgba(255, 255, 255, 0.55);
  --accent: #00d4ff;
  --accent-ink: #04202a;
  --card: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.12);
  --danger: #ff7a7a;
  --ok: #4ade80;
  --radius: 16px;
  color-scheme: dark;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-1);
  background-image: linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 50%, var(--bg-3) 100%);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  line-height: 1.5;
  overflow-x: hidden;
}

.wrap {
  max-width: 520px;
  margin: 0 auto;
  padding: max(24px, env(safe-area-inset-top)) 16px max(32px, env(safe-area-inset-bottom));
}

.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.brand img { width: 44px; height: 44px; border-radius: 10px; }
.brand span { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand a { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 12px; }

h1 { font-size: 28px; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 12px; }
h2 { font-size: 18px; margin: 24px 0 8px; }
h3 { font-size: 16px; margin: 18px 0 6px; }
p { color: var(--text-2); margin-bottom: 12px; }
.lead { font-size: 17px; }
.small { font-size: 13px; color: var(--text-3); }
a { color: var(--accent); }

ul.benefits { list-style: none; margin: 20px 0; display: grid; gap: 10px; }
ul.benefits li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); }
ul.benefits li::before {
  content: ""; flex: 0 0 18px; height: 18px; margin-top: 3px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2304202a' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.plans { display: grid; gap: 10px; margin: 20px 0 8px; }
.plan {
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.plan.best { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.plan .name { font-weight: 600; }
.plan .note { font-size: 13px; color: var(--text-3); }
.plan .price { font-weight: 700; white-space: nowrap; text-align: right; }
.plan .per { font-size: 12px; color: var(--text-3); font-weight: 400; display: block; }
.badge {
  display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--accent-ink); background: var(--accent); border-radius: 999px; padding: 2px 8px; margin-left: 6px;
  vertical-align: 2px;
}

.card {
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 20px 18px; margin: 20px 0;
}
.card.error { border-color: rgba(255, 122, 122, 0.45); }
.card.ok { border-color: rgba(74, 222, 128, 0.45); }
.card h2 { margin-top: 0; }

.hint {
  display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2);
  background: rgba(0, 212, 255, 0.08); border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 12px; padding: 12px 14px; margin: 16px 0;
}

.actions { display: grid; gap: 10px; margin-top: 16px; }

.btn {
  appearance: none; border: 0; cursor: pointer; width: 100%; min-height: 50px; border-radius: 12px;
  font: inherit; font-weight: 600; font-size: 17px; display: inline-flex; align-items: center;
  justify-content: center; gap: 10px; padding: 12px 18px; text-decoration: none;
  transition: transform 0.08s ease, opacity 0.15s ease;
}
.btn:active { transform: scale(0.985); }
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.6; cursor: default; }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
/* Apple's own button: black on a dark page needs its white edge, so the white style is used. */
.btn-apple { background: #ffffff; color: #000000; }
.btn-apple svg { width: 18px; height: 22px; flex: 0 0 auto; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-secondary { background: transparent; color: var(--text); border: 1px solid var(--card-border); }
.btn-link {
  background: none; border: 0; color: var(--text-3); font: inherit; font-size: 14px; cursor: pointer;
  text-decoration: underline; padding: 6px; justify-self: center;
}

.spinner {
  width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--accent); animation: spin 0.8s linear infinite; flex: 0 0 auto;
}
.loading { display: flex; align-items: center; gap: 12px; color: var(--text-2); padding: 8px 0; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } .btn { transition: none; } }

.account { font-size: 14px; color: var(--text-3); margin-top: 6px; word-break: break-word; }

[hidden] { display: none !important; }

form { display: grid; gap: 14px; margin-top: 12px; }
label { display: grid; gap: 6px; font-size: 14px; color: var(--text-2); }
input[type="text"], input[type="email"], input[type="date"], select {
  width: 100%; min-height: 46px; border-radius: 10px; border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.04); color: var(--text); font: inherit; font-size: 16px; padding: 10px 12px;
}
input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
fieldset { border: 0; display: grid; gap: 8px; }
legend { font-size: 14px; color: var(--text-2); margin-bottom: 6px; }
.radio { display: flex; gap: 10px; align-items: center; font-size: 15px; color: var(--text); }
.radio input { width: 18px; height: 18px; accent-color: var(--accent); }

.legal h2 { font-size: 17px; }
.legal p, .legal li { font-size: 15px; }
.legal ol, .legal ul { padding-left: 20px; color: var(--text-2); margin-bottom: 12px; }
.legal li { margin-bottom: 6px; }
.legal blockquote {
  border-left: 3px solid var(--card-border); padding: 8px 0 8px 14px; margin: 12px 0; color: var(--text-2);
}
.placeholder { background: rgba(255, 200, 0, 0.18); color: #ffd666; padding: 0 4px; border-radius: 4px; }

footer {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--card-border);
  display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px;
}
footer a { color: var(--text-3); text-decoration: none; }
footer a:hover, footer a:focus-visible { color: var(--text); text-decoration: underline; }
footer a.cancel { color: var(--text-2); font-weight: 600; }

.back { display: inline-block; margin-bottom: 20px; font-size: 14px; color: var(--accent); text-decoration: none; }
