:root {
  --paper: #f3ecdf;
  --paper-2: #e7dccb;
  --ink: #1a1814;
  --ink-soft: #4a433b;
  --line: rgba(26, 24, 20, 0.14);
  --pine: #1e2a24;
  --pine-2: #2a3b32;
  --ember: #9a3412;
  --ember-deep: #7c2a0e;
  --cream: #fffaf3;
  --warn: #7c4a03;
  --warn-bg: #fff4d6;
  --good: #1f6b45;
  --shadow: 0 24px 60px rgba(30, 42, 36, 0.16);
  --serif: "Newsreader", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 0% -10%, rgba(154, 52, 18, 0.09), transparent 42%),
    radial-gradient(ellipse at 100% 0%, rgba(30, 42, 36, 0.08), transparent 36%),
    var(--paper);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.55;
}

img { max-width: 100%; }

a { color: var(--ember-deep); }

a:hover { color: var(--ember); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); margin: 0 0 0.4em; }

h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0 0 0.4em; }

p { margin: 0 0 0.9em; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--cream);
  color: var(--ink);
  padding: 0.5rem 0.8rem;
  z-index: 5;
}

.skip:focus { top: 0.5rem; }

.prelaunch {
  background: var(--pine);
  color: #efe6d6;
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: 0.92rem;
}

.nav, .site-footer, main > section, .sheet {
  width: min(1120px, calc(100% - 2rem));
  margin-left: auto;
  margin-right: auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
}

.brand img,
.footer-brand img,
.hero-mark,
.window-bar img {
  display: block;
  object-fit: contain;
  background: transparent;
  flex: none;
}

.brand img {
  width: 44px;
  height: 44px;
}

.nav nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1.2rem;
  justify-content: flex-end;
}

.nav nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

.nav nav a:hover { color: var(--ember); }

.nav-country-editions {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
}

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

.country-picker { position: relative; }

.country-fallback {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  pointer-events: none;
}

.country-fallback select,
.country-apply {
  font: inherit;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
}

.country-apply {
  font-weight: 600;
  cursor: pointer;
  margin-left: 0.35rem;
}

.country-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: 14rem;
  padding: 0.28rem 0.45rem 0.28rem 0.28rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.country-toggle:hover,
.country-toggle[aria-expanded="true"] {
  color: var(--ember);
  background: rgba(255, 250, 243, 0.72);
  box-shadow: inset 0 0 0 1px var(--line);
}

.country-current {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.country-chevron { flex: none; }

.country-flag {
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(26, 24, 20, 0.2);
  background: var(--cream);
  flex: none;
}

.country-widget { position: relative; }

.country-list {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  z-index: 6;
  width: min(19rem, calc(100vw - 2rem));
  max-height: min(22rem, 60vh);
  margin: 0;
  padding: 0.35rem;
  overflow: auto;
  list-style: none;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.country-list[hidden] { display: none; }

.country-list:focus-visible {
  outline: 3px solid #e07a45;
  outline-offset: 3px;
}

.country-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.38rem 0.45rem;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 500;
}

.country-option.is-active,
.country-option:hover {
  background: rgba(154, 52, 18, 0.12);
}

.country-option-name { flex: 1; }

.country-option-code {
  color: var(--ink-soft);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

.country-check {
  width: 12px;
  height: 12px;
  flex: none;
  color: var(--ember-deep);
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  padding: 1.5rem 0 3rem;
}

.eyebrow {
  margin: 0 0 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ember-deep);
}

.lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 40rem;
}

.hero-actions, .price-side .button { margin-top: 0.4rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ember);
  color: var(--cream);
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.2rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.button:hover { background: var(--ember-deep); color: white; }

.button:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 3px solid #e07a45;
  outline-offset: 3px;
}

.button-quiet {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
  margin-left: 0.5rem;
}

.button-quiet:hover { background: rgba(255, 250, 243, 0.7); color: var(--ink); }

.stage {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}

.hero-mark {
  width: 112px;
  height: 112px;
}

.window {
  background: linear-gradient(180deg, var(--pine-2), var(--pine));
  color: var(--cream);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 1rem;
  background: rgba(0, 0, 0, 0.18);
  font-size: 0.92rem;
}

.window-bar span {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: #c9b59a;
}

.window-bar span:first-child { background: #c4491d; }
.window-bar span:nth-child(2) { background: #d7a15e; }
.window-bar span:nth-child(3) { background: #7d9a84; }

.window-bar img {
  width: 28px;
  height: 28px;
  margin-left: 0.45rem;
}

.window-bar strong { margin-left: 0.35rem; font-weight: 500; }

.window-body { padding: 2rem 1.5rem 2.2rem; text-align: center; }

.wave {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  height: 88px;
  margin-bottom: 0.5rem;
}

.wave i {
  display: block;
  width: 7px;
  height: 18px;
  border-radius: 99px;
  background: #f3ecdf;
  animation: pulse 1.3s ease-in-out infinite;
}

.wave i:nth-child(2),
.wave i:nth-child(10) { height: 28px; animation-delay: -0.2s; }
.wave i:nth-child(3),
.wave i:nth-child(9) { height: 44px; animation-delay: -0.4s; }
.wave i:nth-child(4),
.wave i:nth-child(8) { height: 62px; animation-delay: -0.6s; }
.wave i:nth-child(5),
.wave i:nth-child(7) { height: 78px; animation-delay: -0.8s; }
.wave i:nth-child(6) { height: 88px; animation-delay: -1s; background: #e7b08a; }

@keyframes pulse {
  0%, 100% { transform: scaleY(0.55); }
  50% { transform: scaleY(1); }
}

.window-title {
  font-family: var(--serif);
  font-size: 1.8rem;
  margin: 0.2rem 0;
}

.window-sub { color: #d9cbb8; margin: 0; }

.points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-bottom: 2.5rem;
}

.points article, .panel, .price-band, .faq, .sheet {
  background: rgba(255, 250, 243, 0.72);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.points article { padding: 1.3rem 1.3rem 0.4rem; }

.points h2 { font-size: 1.55rem; }

.panel, .faq, .sheet { padding: 1.6rem 1.4rem 1.4rem; margin-bottom: 1.2rem; }

.section-head { max-width: 40rem; margin-bottom: 1rem; }

.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  text-align: left;
  padding: 0.85rem 0.7rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

thead th { font-size: 0.92rem; letter-spacing: 0.04em; text-transform: uppercase; }

tbody th { font-weight: 600; width: 8rem; }

.price-band {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2rem;
  padding: 1.8rem;
  margin-bottom: 1.2rem;
  background:
    linear-gradient(160deg, rgba(30, 42, 36, 0.96), rgba(42, 59, 50, 0.92)),
    var(--pine);
  color: var(--cream);
  border: 0;
}

.price-band .eyebrow { color: #e7b08a; }

.price {
  font-family: var(--serif);
  font-size: clamp(4rem, 8vw, 6.5rem);
  line-height: 0.9;
  margin: 0 0 0.4rem;
}

.price-note { font-size: 1.15rem; }

.price-band a { color: #f3c7ae; }

.price-band .button { color: var(--cream); }

.steps { margin: 0 0 1rem; padding-left: 1.2rem; }

.steps li { margin: 0.35rem 0; }

.faq details {
  border-top: 1px solid var(--line);
  padding: 0.8rem 0;
}

.faq details:last-child { border-bottom: 1px solid var(--line); }

summary {
  cursor: pointer;
  font-weight: 600;
}

.sheet h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }

.order { margin: 1rem 0 1.2rem; }

.facts { margin: 0; }

.facts > div {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
}

.facts dt { color: var(--ink-soft); }

.facts dd { margin: 0; }

.buy-form { display: grid; gap: 0.9rem; justify-items: start; }

#checkout-form {
  width: min(100%, 32rem);
  margin: 0.4rem 0 1rem;
}

.check {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  max-width: 42rem;
}

.check input { margin-top: 0.3rem; }

.fine { color: var(--ink-soft); font-size: 0.95rem; }

.banner {
  background: #e7f3ec;
  color: var(--good);
  border-radius: 14px;
  padding: 0.8rem 1rem;
}

.banner-warn {
  background: var(--warn-bg);
  color: var(--warn);
}

.draft-banner {
  background: var(--warn-bg);
  color: #5c3b04;
  border: 1px dashed #a16207;
  border-radius: 16px;
  padding: 0.9rem 1rem;
  margin-bottom: 1.2rem;
}

.legal h2,
.docs h2 { margin-top: 1.6rem; font-size: 1.7rem; }

.docs h3 { font-size: 1.35rem; margin: 0 0 0.35em; }

.doc-contents {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0 0 1.4rem;
}

.docs section { margin-top: 0.4rem; }

.choice-list {
  display: grid;
  gap: 0.8rem;
}

.choice {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.95rem 1rem 0.2rem;
  background: rgba(255, 250, 243, 0.55);
}

.choice .command { margin-top: 0; }

pre.command {
  background: var(--pine);
  color: var(--cream);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  overflow-x: auto;
  margin: 0 0 0.9rem;
}

pre.command code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.95rem;
}

kbd {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 0.05em 0.4em;
}

.hotkeys { padding-left: 1.2rem; }

.hotkeys li { margin: 0.45rem 0; }

.legal ul, .legal ol { padding-left: 1.2rem; }

.legal li { margin: 0.35rem 0; }

.placeholder {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: var(--warn-bg);
  border: 1px dashed #a16207;
  border-radius: 6px;
  padding: 0.05em 0.35em;
}

.note {
  background: rgba(154, 52, 18, 0.06);
  border-left: 3px solid var(--ember);
  padding: 0.7rem 0.9rem;
}

.kicker {
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--warn);
  font-weight: 600;
}

code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 0 6rem;
  color: var(--ink-soft);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.footer-brand img {
  width: 36px;
  height: 36px;
}

.site-footer nav {
  display: grid;
  gap: 0.35rem;
}

.cookie-notice {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  background: var(--ink);
  color: var(--cream);
  border-radius: 18px;
  padding: 0.9rem 1rem;
  box-shadow: var(--shadow);
  z-index: 4;
}

.cookie-notice[hidden] { display: none; }

.cookie-notice p { margin: 0; }

.cookie-notice a { color: #f3c7ae; }

.cookie-notice button {
  background: var(--cream);
  color: var(--ink);
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

@media (max-width: 860px) {
  .hero, .points, .price-band, .site-footer, .facts > div {
    grid-template-columns: 1fr;
    display: grid;
  }

  .button-quiet { margin-left: 0; margin-top: 0.6rem; }

  .hero-actions { display: flex; flex-direction: column; align-items: flex-start; }

  .cookie-notice { flex-direction: column; align-items: stretch; }
}

@media (max-width: 860px) {
  .country-toggle { max-width: 46vw; }
  .country-list { right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wave i { animation: none; }
}
