:root {
  color-scheme: light;
  font-family: "Segoe UI", sans-serif;
  --paper: #faf4e9;
  --ivory: #fffaf2;
  --ink: #282a29;
  --muted: #615950;
  --line: #dfd1bc;
  --night: #222b38;
  --gold: #f4c785;
  --accent: #7d3930;
  --serif: Georgia, serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 1.25rem; }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.55; }
h1, h2, h3, p, blockquote, dl, dd { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; }
a { color: inherit; text-underline-offset: .22em; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid #a44a36; outline-offset: 3px; }
.hero :focus-visible, .closing :focus-visible { outline-color: var(--gold); }
.shell { width: min(71rem, calc(100% - 4rem)); margin-inline: auto; }
.skip-link { position: absolute; left: 1rem; top: .5rem; z-index: 5; padding: .65rem 1rem; background: var(--ivory); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

button, .button { display: inline-flex; justify-content: center; align-items: center; gap: .6rem; min-height: 44px; border: 1px solid #cbbba6; border-radius: .45rem; padding: .57rem .95rem; color: var(--ink); background: var(--ivory); font-weight: 600; cursor: pointer; text-decoration: none; }
button:not(:disabled):hover, .button:hover { border-color: var(--accent); }
.primary { border-color: var(--accent); background: var(--accent); color: #fff; }
.primary:not(:disabled):hover { background: #642b25; }
button:disabled { opacity: .62; cursor: default; }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; }

.site-header { background: #fff9ed; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .7rem 1.5rem; padding-block: .9rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font: 600 1.15rem var(--serif); text-decoration: none; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 2rem; height: 2rem; color: #fff7e9; background: var(--accent); font: 600 .8rem var(--serif); clip-path: polygon(50% 0, 96% 25%, 96% 75%, 50% 100%, 4% 75%, 4% 25%); }
.header-inner nav { display: flex; flex-wrap: wrap; gap: .45rem 1.2rem; color: var(--muted); font-size: .94rem; }
.header-inner nav a { padding-block: .35rem; text-decoration: none; }
.header-inner nav a:hover { color: var(--accent); text-decoration: underline; }
.account { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; min-width: 0; max-width: 100%; }
.account-email { min-width: 0; overflow-wrap: anywhere; }
.account-status { padding-bottom: .65rem; color: var(--accent); font-size: .9rem; }
.account-status:empty { display: none; }

.hero { color: #fff8eb; background: radial-gradient(ellipse at 82% 5%, #4b4b4b 0, transparent 55%), linear-gradient(125deg, #232c3a, #29313b 65%, #353037); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(16rem, .7fr); align-items: center; gap: clamp(2rem, 7vw, 6.5rem); padding-block: clamp(4rem, 9vw, 8rem); }
.eyebrow { margin-bottom: 1.1rem; color: #ebc891; font-size: .86rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.hero h1 { font-size: clamp(3.15rem, 6.3vw, 5.8rem); letter-spacing: -.055em; }
.hero h1 em { color: var(--gold); font-weight: inherit; }
.hero-description { max-width: 42ch; margin: 1.25rem 0 1.6rem; color: #eee1d0; font-size: clamp(1rem, 2vw, 1.2rem); }
.hero .primary, .closing .primary { border-color: var(--gold); background: var(--gold); color: #29221c; }
.hero .primary:hover, .closing .primary:hover { background: #ffe2ac; }
.ghost { border-color: #aa9c89; background: transparent; color: #fff8eb; }
.ghost:hover { border-color: var(--gold); }
.download-note { margin-top: .75rem; color: #eee1d0; font-size: .9rem; }
.hero-note { position: relative; isolation: isolate; overflow: hidden; min-height: 18rem; padding: 2rem; border: 1px solid #caa872; border-radius: .75rem; color: #382b23; background: radial-gradient(circle at 82% 13%, #f6dcad, transparent 62%), #fff0d6; box-shadow: 0 1.1rem 2rem #14151d44; }
.hero-note::after { position: absolute; z-index: -1; inset: .55rem; border: 1px solid #b995613d; border-radius: .45rem; pointer-events: none; content: ''; }
.die { position: relative; display: grid; width: 4.45rem; aspect-ratio: 1; place-items: center; margin-bottom: 1.1rem; color: #fff5db; background: #a46c3f; clip-path: polygon(50% 0, 94% 25%, 94% 75%, 50% 100%, 6% 75%, 6% 25%); }
.die::before { content: ''; position: absolute; inset: 2px; background: conic-gradient(from 32deg, #5c5744, #494737, #766249, #4d4737, #5c5744); clip-path: inherit; }
.die span { position: relative; font: 600 1.55rem var(--serif); }
.note-label { color: #715139; font-size: .85rem; font-weight: 700; }
.hero-note blockquote { margin-top: .5rem; font: 500 clamp(1.55rem, 2.7vw, 2.15rem)/1.12 var(--serif); }
.note-answer { margin-top: .85rem; color: #5c4838; }

.section { padding-block: clamp(3.25rem, 7vw, 6.5rem); }
.section-heading { margin-bottom: 1.6rem; }
.section-heading h2, .closing h2 { font-size: clamp(2.2rem, 4.7vw, 3.65rem); letter-spacing: -.04em; }
.section-heading p { max-width: 60ch; margin-top: .65rem; color: var(--muted); }
.example-picker { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: .85rem; }
.example-picker [aria-pressed="true"] { border-color: var(--night); background: var(--night); color: #fff8eb; }
.example { display: grid; grid-template-columns: minmax(0, .55fr) minmax(0, 1fr); gap: clamp(1rem, 4vw, 3.5rem); padding: clamp(1.1rem, 3vw, 2.15rem); border: 1px solid var(--line); border-radius: .75rem; background: var(--ivory); }
.example + .example { margin-top: .8rem; }
.example h3 { margin-bottom: .5rem; font-size: 1.75rem; }
.example > div:first-child p { color: var(--muted); }
.example-conversation { display: grid; gap: .65rem; }
.question, .answer { padding: .8rem .95rem; border-radius: .45rem; }
.question { background: #f2e6d3; color: #49382a; font-weight: 600; }
.answer { border-left: 3px solid #a4794f; background: #f7f0e3; }
.answer strong { display: block; margin-bottom: .25rem; color: #65452c; font-size: .87rem; }

.plans-section { border-block: 1px solid var(--line); background: #f1e8d8; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.plan {
  --tier-paper: #f7e3ce;
  --tier: #e39343;
  --tier-button-text: #302b26;
  --tier-heading: #302b26;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: var(--tier-paper);
}
.plan.adventurer, .plan.master { --tier-button-text: #ffffff; --tier-heading: var(--tier); }
.plan.adventurer { --tier: #475666; }
.plan.master { --tier: #794343; }
.plan img { display: block; width: 100%; height: auto; background: var(--tier-paper); }
.plan-copy { flex: 1; display: flex; flex-direction: column; padding: clamp(1rem, 2.8vw, 1.6rem); border-top: 3px solid var(--tier); }
.plan h3 { margin-bottom: .4rem; color: var(--tier-heading); font-size: clamp(1.8rem, 4vw, 2.55rem); }
.plan-fit { min-height: 3.1em; color: var(--muted); }
.plan-limit { margin-top: .85rem; font-size: .93rem; }
.plan-limit strong { color: var(--tier-heading); font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.features { flex: 1; display: grid; align-content: start; gap: .4rem; margin: .85rem 0 1.2rem; padding-left: 1.1rem; }
.features li::marker { color: var(--tier); }
.plan-button { border-color: var(--tier); background: var(--tier); color: var(--tier-button-text); }
.plan-button:disabled { opacity: 1; }
.plan-status { margin-top: .5rem; color: var(--muted); font-size: .9rem; }
.compare { margin-top: 1.6rem; overflow-x: auto; border: 1px solid var(--line); border-radius: .7rem; background: var(--ivory); }
.compare table { width: 100%; min-width: 29rem; border-collapse: collapse; text-align: left; }
.compare caption { padding: 1rem 1.1rem .55rem; font: 500 1.4rem var(--serif); text-align: left; }
.compare th, .compare td { padding: .65rem 1rem; border-top: 1px solid var(--line); }
.compare thead { color: #5b3d29; background: #f7eddd; }

.packages { padding-bottom: 1rem; }
.package-note { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .8fr); gap: 1rem 2.5rem; padding: clamp(1.1rem, 3vw, 2rem); border: 1px solid #c8ae8b; border-radius: .75rem; background: #f6e8d1; }
.package-note h3 { margin-bottom: .55rem; font-size: 1.6rem; }
.package-note p, .package-note dt { color: var(--muted); }
.package-note dl { display: grid; gap: .55rem; }
.package-note dl div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .25rem 1rem; }
.package-note dd { font-weight: 600; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: .95rem 0; cursor: pointer; font-weight: 600; }
.faq details p { max-width: 67ch; padding: 0 0 1rem 1.15rem; color: var(--muted); }
.closing { background: var(--night); color: #fff8eb; }
.closing-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2.5rem; padding-block: 2.5rem; }
.closing h2 { max-width: 19ch; }
.site-footer { padding-block: 1.4rem; color: var(--muted); }

dialog { width: min(30rem, calc(100% - 2rem)); max-height: calc(100% - 2rem); overflow: auto; border: 1px solid var(--line); border-radius: .85rem; padding: clamp(1rem, 4vw, 1.75rem); background: var(--ivory); color: var(--ink); }
dialog::backdrop { background: #21181bb3; }
.dialog-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .65rem; margin-bottom: .8rem; }
.dialog-heading h2 { font-size: 1.75rem; }
dialog label { display: block; margin-top: 1rem; font-weight: 600; }
dialog input { display: block; margin-top: .35rem; width: 100%; min-width: 0; min-height: 44px; border: 1px solid #ad9d90; border-radius: .45rem; padding: .55rem .65rem; color: var(--ink); background: #fff; }
.password-field { display: flex; align-items: end; gap: .5rem; }
.password-field input { flex: 1; }
.icon-button { flex: none; width: 44px; height: 44px; padding: 0; }
.icon-button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#toggle-password[aria-pressed="false"] .eye-open,
#toggle-password[aria-pressed="true"] .eye-closed { display: none; }
.hint, .form-status { margin: .65rem 0 0; font-size: .94rem; line-height: 1.5; overflow-wrap: anywhere; }
.hint { color: var(--muted); }
.form-status { color: var(--accent); }
.form-status[data-kind="success"] { color: #315c43; }
.form-status:empty { display: none; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.25rem; }

@media (max-width: 57rem) {
  .header-inner nav { order: 3; width: 100%; }
  .hero-inner { gap: 1.5rem; }
}
@media (max-width: 44rem) {
  .shell { width: calc(100% - 2rem); }
  .hero-inner, .plans, .example, .package-note { grid-template-columns: 1fr; }
  .hero-inner { padding-block: 3rem; }
  .hero-note { min-height: 0; padding: 1.3rem; }
  .plan-fit { min-height: 0; }
}
@media (max-width: 23rem) {
  .hero h1 { font-size: 2.35rem; }
  .header-inner { gap: .7rem; }
}
