/* amphorus.app landing. Palette and type from the app (src/theme/tokens.ts). Dark only, like the app. */

:root {
  color-scheme: dark;
  --bg: #140a0e;
  --surface: #211117;
  --surface-2: #2b171f;
  --hero: #4a1a2b;
  --ink: #f4ede4;
  --ink-soft: #e9ded8;
  --muted: #bfadb2;
  --label: #cdbdc1;
  --champagne: #d6be90;
  --gold: #c9a96e;
  --on-gold: #1a0c11;
  --gold-line: rgba(201, 169, 110, 0.32);
  --line: rgba(242, 233, 228, 0.12);
  --green: #86ba92;
  --danger: #e07a6e;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

:lang(ja) {
  --serif: 'Hiragino Mincho ProN', 'Yu Mincho', 'Noto Serif JP', serif;
  --sans: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Noto Sans JP', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(1100px 620px at 85% -10%, rgba(122, 30, 58, 0.45), transparent 70%),
    radial-gradient(700px 420px at -10% 30%, rgba(201, 169, 110, 0.08), transparent 70%),
    var(--bg);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--gold); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

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

.page { max-width: 1120px; margin: 0 auto; padding: 16px 16px 48px; }

/* Header */
.lp-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.lp-brand { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; color: var(--gold); text-decoration: none; }
.lp-brand .mark { width: 40px; height: 40px; flex: none; }
.lp-brand span { font-family: 'Fraunces', Georgia, serif; font-size: 19px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }
@media (min-width: 560px) { .lp-brand span { font-size: 21px; letter-spacing: 0.16em; } }

.lang-pick { position: relative; display: inline-flex; align-items: center; }
.lang-pick svg { position: absolute; left: 12px; width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2.2; pointer-events: none; }
.lang-pick select {
  appearance: none; -webkit-appearance: none;
  min-height: 48px; padding: 0 34px 0 42px; border-radius: 24px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F4EDE4' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 18px;
  border: 1px solid var(--gold-line); color: var(--ink);
  font: 600 16px var(--sans); cursor: pointer;
}
.lang-pick select option { background: var(--surface); color: var(--ink); }

/* Hero */
.hero { display: grid; gap: 40px; padding: 32px 0 56px; }
.eyebrow { margin: 0 0 12px; color: var(--champagne); font-size: 15px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
:lang(ja) .eyebrow { letter-spacing: 0.06em; }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); font-weight: 500; margin: 0; }
h1 { font-size: clamp(38px, 9vw, 64px); line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; }
:lang(ja) h1 { font-size: clamp(32px, 7.4vw, 52px); line-height: 1.3; letter-spacing: 0; }
.lead { margin: 20px 0 28px; max-width: 34em; color: var(--ink-soft); font-size: 19px; line-height: 1.6; }

/* Waitlist form */
.waitlist { max-width: 560px; }
.field-row { display: flex; flex-direction: column; gap: 12px; }
.waitlist input {
  width: 100%; min-height: 56px; padding: 0 20px; border-radius: 28px;
  background: var(--surface); border: 1.5px solid var(--gold-line); color: var(--ink);
  font: 17px var(--sans);
}
.waitlist input::placeholder { color: var(--label); opacity: 1; }
.waitlist input[aria-invalid='true'] { border-color: var(--danger); }
.waitlist button {
  min-height: 56px; padding: 0 28px; border: 0; border-radius: 28px;
  background: var(--gold); color: var(--on-gold);
  font: 600 17px var(--sans); cursor: pointer; white-space: nowrap;
}
.waitlist button:hover { background: #d8bb84; }
.waitlist button:disabled { opacity: 0.7; cursor: progress; }
.waitlist .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin: 12px 4px 0; min-height: 1.6em; font-size: 16px; font-weight: 600; color: var(--ink); }
.form-msg:empty { margin-top: 0; min-height: 0; }
.form-msg[data-kind='ok'] { color: var(--green); }
.form-msg[data-kind='invalid'], .form-msg[data-kind='error'] { color: var(--danger); }
.waitlist.is-done .field-row { display: none; }
.waitlist.is-done .form-msg { margin-top: 0; font-size: 18px; }
.consent { margin: 12px 4px 0; color: var(--muted); font-size: 15px; line-height: 1.5; }

@media (min-width: 560px) {
  .field-row { flex-direction: row; }
  .field-row input { flex: 1; }
}

/* Phone mock */
.hero-art { display: flex; justify-content: center; }
.phone {
  width: min(100%, 360px); padding: 22px 18px 24px; border-radius: 40px;
  background: linear-gradient(180deg, var(--hero) 0%, #25111a 46%, var(--bg) 100%);
  border: 1px solid var(--gold-line);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  display: flex; flex-direction: column; gap: 14px;
}
.phone p { margin: 0; }
.wine-card { display: flex; gap: 16px; align-items: center; padding: 16px; border-radius: 22px; background: rgba(20, 10, 14, 0.55); border: 1px solid var(--line); }
.bottle {
  flex: none; width: 34px; height: 104px; border-radius: 10px 10px 8px 8px;
  background: linear-gradient(90deg, #2a0f18, #5a1e33 45%, #2a0f18);
  position: relative;
}
.bottle::before { content: ''; position: absolute; left: 11px; top: -22px; width: 12px; height: 28px; border-radius: 4px 4px 0 0; background: #2a0f18; }
.bottle::after { content: ''; position: absolute; left: 4px; right: 4px; top: 42px; height: 30px; border-radius: 3px; background: var(--ink); opacity: 0.9; }
.wine-name { font-family: 'Fraunces', Georgia, serif; font-size: 20px; line-height: 1.2; color: var(--ink); }
.wine-region { color: var(--label); font-size: 15px; margin-top: 4px !important; }
.badge { display: inline-block; margin-top: 10px !important; padding: 4px 12px; border-radius: 14px; background: rgba(134, 186, 146, 0.18); color: var(--green); font-size: 14px; font-weight: 600; }
.wine-meta { padding: 0 6px; font-size: 15px; color: var(--label); }
.wine-meta strong { color: var(--ink); font-size: 16px; }
.bubble { max-width: 86%; padding: 12px 16px; border-radius: 20px; font-size: 15px; line-height: 1.45; }
.bubble-me { align-self: flex-end; background: var(--gold); color: var(--on-gold); border-bottom-right-radius: 6px; font-weight: 600; }
.bubble-ai { align-self: flex-start; background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 6px; }

@media (min-width: 900px) {
  .hero { grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 56px; padding: 72px 0 96px; }
  .hero-art { justify-content: flex-end; }
}

/* Features */
.features { padding: 24px 0 56px; border-top: 1px solid var(--line); }
.features h2, .cta h2 { font-size: clamp(30px, 6vw, 42px); line-height: 1.15; margin-top: 40px; text-wrap: balance; }
.feature-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 16px; }
.feature { padding: 24px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.feature-icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 28px; background: rgba(201, 169, 110, 0.14); }
.feature-icon svg { width: 30px; height: 30px; fill: none; stroke: var(--gold); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { margin-top: 16px; font-size: 23px; line-height: 1.25; }
.feature p { margin: 8px 0 0; color: var(--ink-soft); }
@media (min-width: 820px) { .feature-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Final call to action */
.cta { margin-top: 8px; padding: 8px 24px 32px; border-radius: 32px; background: linear-gradient(160deg, var(--hero), #25111a); border: 1px solid var(--gold-line); }
.cta > p { margin: 12px 0 24px; max-width: 34em; font-size: 18px; }
@media (min-width: 720px) { .cta { padding: 16px 48px 48px; } }

/* Footer */
.lp-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.lp-links, .lp-langs { display: flex; flex-wrap: wrap; gap: 4px; margin-left: -14px; }
.lp-links a, .lp-langs a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: 24px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; }
.lp-links a:hover, .lp-langs a:hover { background: var(--surface); }
.lp-langs { margin-top: 8px; }
.lp-langs a { font-weight: 400; color: var(--label); }
.lp-langs a[aria-current='page'] { color: var(--ink); font-weight: 600; background: var(--surface); outline: 1px solid var(--gold-line); }
.legal-note { margin: 0; }
.company { margin: 16px 0 0; line-height: 1.6; }
.company strong { color: var(--label); }
