:root {
  color-scheme: dark;
  --black: #050505;
  --black-soft: #0a0a09;
  --surface: #10100f;
  --surface-raised: #161510;
  --line: #2d2a20;
  --line-strong: #80672d;
  --gold: #d9aa3c;
  --gold-bright: #ffdc78;
  --silver: #dcdde0;
  --text: #f7f5ee;
  --muted: #a7a397;
  --radius: 7px;
  --content: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--black); }

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--black);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
a { font: inherit; -webkit-tap-highlight-color: transparent; }

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: 72px;
  align-items: center;
  padding: 0 max(24px, calc((100vw - var(--content)) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(5, 5, 5, 0.92);
  backdrop-filter: blur(18px);
}

.brand,
.footer-brand { display: inline-flex; align-items: center; gap: 12px; width: fit-content; font-weight: 600; }
.brand strong,
.footer-brand strong { color: var(--gold-bright); font-weight: 900; }

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(231, 189, 82, 0.72);
  border-radius: 6px;
  background: #080807;
  box-shadow: 0 0 22px rgba(226, 179, 60, 0.18);
}

.brand-mark img { width: 100%; height: 100%; object-fit: cover; }

.site-nav { display: flex; align-items: center; gap: 28px; color: #c9c5ba; font-size: 0.78rem; font-weight: 800; }
.site-nav a { transition: color 160ms ease; }
.site-nav a:hover { color: var(--gold-bright); }
.site-nav .nav-home { padding-left: 24px; border-left: 1px solid var(--line); color: var(--gold-bright); }

.services-account { justify-self: end; position: relative; }
.account-login,
.account-trigger {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid #625127;
  border-radius: 5px;
  color: var(--gold-bright);
  background: #0b0b09;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
}

.account-trigger img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.account-trigger small { max-width: 116px; overflow: hidden; color: #e8e3d8; font-size: 0.72rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.account-dropdown { position: absolute; top: calc(100% + 10px); right: 0; display: none; width: 270px; padding: 10px; border: 1px solid #534724; border-radius: var(--radius); background: #0b0b09; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.68); }
.services-account.open .account-dropdown { display: grid; }
.account-profile { display: grid; grid-template-columns: 42px 1fr; gap: 11px; align-items: center; padding: 10px; border-bottom: 1px solid var(--line); }
.account-profile img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.account-profile span,
.account-profile strong,
.account-profile small { display: block; }
.account-profile span { color: var(--muted); font-size: 0.61rem; font-weight: 800; text-transform: uppercase; }
.account-profile strong { margin-top: 3px; overflow: hidden; color: #fff; font-size: 0.82rem; text-overflow: ellipsis; white-space: nowrap; }
.account-profile small { margin-top: 3px; color: var(--gold-bright); font-size: 0.68rem; }
.account-dropdown > a,
.account-dropdown > button { padding: 11px 10px; border: 0; border-radius: 4px; color: #d8d4c9; background: transparent; font-size: 0.75rem; font-weight: 800; text-align: left; cursor: pointer; }
.account-dropdown > a:hover,
.account-dropdown > button:hover { color: #171106; background: var(--gold-bright); }

.menu-toggle { display: none; }

a:focus-visible,
button:focus-visible,
summary:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }

.hero {
  position: relative;
  display: flex;
  min-height: min(800px, 82svh);
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--black);
}

.hero-image,
.hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { object-fit: cover; object-position: center; animation: heroImageIn 1.2s ease both; }
.hero-shade { background: rgba(0, 0, 0, 0.54); }

.hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--content), calc(100% - 48px));
  margin: 0 auto;
  padding-top: 66px;
}

.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; color: var(--gold-bright); font-size: 0.71rem; font-weight: 900; text-transform: uppercase; }
.eyebrow span { width: 28px; height: 1px; background: var(--gold); }

h1,
h2,
h3,
p { letter-spacing: 0; }

h1 { max-width: 800px; margin: 0; font-size: clamp(3.4rem, 7vw, 7rem); line-height: 0.91; font-weight: 900; }
.hero-copy { max-width: 620px; margin: 28px 0 0; color: #d4d0c7; font-size: 1.12rem; line-height: 1.72; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-content > * { opacity: 0; animation: heroEnter 680ms ease forwards; }
.hero-content > .eyebrow { animation-delay: 100ms; }
.hero-content > h1 { animation-delay: 180ms; }
.hero-content > .hero-copy { animation-delay: 280ms; }
.hero-content > .hero-actions { animation-delay: 380ms; }

.hero-note {
  position: absolute;
  z-index: 2;
  right: max(24px, calc((100vw - var(--content)) / 2));
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 255px;
  color: #d7d2c6;
  font-size: 0.74rem;
}

.hero-note span { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid #8c7030; border-radius: 50%; color: var(--gold-bright); font-weight: 900; }
.hero-note p { margin: 0; line-height: 1.45; }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 0.86rem;
  font-weight: 900;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button:hover { transform: translateY(-2px); }
.button-gold { color: #171106; background: var(--gold-bright); }
.button-gold:hover { background: #ffe49a; }
.button-dark { border-color: rgba(255, 255, 255, 0.2); color: #f3efe7; background: rgba(4, 4, 3, 0.78); }
.button-dark:hover { border-color: var(--gold); }
.button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

.plans-section,
.included-section,
.help-section { width: min(var(--content), calc(100% - 48px)); margin: 0 auto; padding: 112px 0; }
.included-section { display: grid; grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr); gap: 70px; align-items: start; border-top: 1px solid var(--line); }
.help-section { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 70px; border-top: 1px solid var(--line); }

.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 0.52fr); gap: 60px; align-items: end; margin-bottom: 42px; }
.section-heading .eyebrow { margin-bottom: 12px; }
.section-heading h2,
.included-intro h2,
.faq-intro h2 { max-width: 760px; margin: 0; font-size: clamp(2.25rem, 4.2vw, 4.1rem); line-height: 0.98; }
.section-heading > p,
.included-intro > p:not(.eyebrow),
.faq-intro > p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 0.94rem; line-height: 1.75; }

.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.plan-card { position: relative; display: flex; min-height: 512px; flex-direction: column; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: transform 180ms ease, border-color 180ms ease, background 180ms ease; }
.plan-card:hover { transform: translateY(-4px); border-color: #8b7035; background: var(--surface-raised); }
.pro-card { border-color: #8a7035; box-shadow: inset 0 0 0 1px rgba(226, 181, 71, 0.08), 0 0 42px rgba(226, 181, 71, 0.06); }
.plan-card-head,
.plan-footer,
.plan-title-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.plan-code,
.plan-kicker { margin: 0; color: var(--gold); font-size: 0.68rem; font-weight: 900; letter-spacing: 0.09em; text-transform: uppercase; }
.plan-tag { padding: 5px 8px; border: 1px solid rgba(255, 220, 120, 0.4); border-radius: 999px; color: var(--gold-bright); font-size: 0.61rem; font-weight: 900; text-transform: uppercase; white-space: nowrap; }
.plan-tag.popular-tag { border-color: #e5bd50; background: rgba(226, 181, 71, 0.12); box-shadow: 0 0 18px rgba(226, 181, 71, 0.12); }
.plan-tag.neutral { border-color: #4b4840; color: #bcb8ad; }
.plan-title-row { align-items: flex-start; margin-top: 38px; }
.plan-title-row h3 { margin: 8px 0 0; font-size: clamp(2rem, 3.1vw, 3.35rem); line-height: 0.98; }
.plan-title-row img { width: 86px; height: 86px; border: 1px solid #645326; border-radius: 8px; object-fit: cover; }
.fredo-logo { width: 86px; height: 86px; border: 1px solid #315568; border-radius: 8px; box-shadow: 0 0 22px rgba(51, 202, 255, 0.12); object-fit: cover; }
.plan-copy { max-width: 550px; margin: 20px 0 0; color: #c4c0b6; line-height: 1.65; }
.plan-list { display: grid; gap: 0; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.plan-list li { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.plan-list strong { color: #f5f1e8; font-size: 0.82rem; }
.plan-list span { color: var(--muted); font-size: 0.77rem; line-height: 1.55; }
.plan-footer { margin-top: auto; padding-top: 20px; }

.included-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.included-list article { display: grid; grid-template-columns: 60px 1fr; column-gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.included-list span { grid-row: span 2; color: var(--gold); font-size: 0.72rem; font-weight: 900; }
.included-list h3 { margin: 0; font-size: 1.02rem; }
.included-list p { margin: 7px 0 0; color: var(--muted); font-size: 0.86rem; line-height: 1.65; }

.access-band { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 62px; align-items: center; padding: 90px max(24px, calc((100vw - var(--content)) / 2)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #090908; }
.access-brand { overflow: hidden; border: 1px solid #4f4120; border-radius: var(--radius); background: #050505; }
.access-brand img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.access-copy h2 { max-width: 680px; margin: 0; font-size: clamp(2.15rem, 4vw, 4rem); line-height: 0.98; }
.access-copy > p:not(.eyebrow) { max-width: 650px; margin: 20px 0 26px; color: var(--muted); line-height: 1.72; }

.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 21px 0; color: #eeeae1; font-size: 0.95rem; font-weight: 800; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { color: var(--gold); font-size: 1.1rem; transition: transform 160ms ease; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list p { max-width: 640px; margin: -5px 0 21px; color: var(--muted); font-size: 0.86rem; line-height: 1.7; }

.site-footer { display: grid; grid-template-columns: 1fr auto 1fr; gap: 26px; align-items: center; width: min(var(--content), calc(100% - 48px)); min-height: 120px; margin: 0 auto; }
.site-footer > p { margin: 0; color: var(--muted); font-size: 0.72rem; text-align: center; }
.site-footer > div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; color: #d4d0c6; font-size: 0.72rem; font-weight: 800; }
.site-footer > div a:hover { color: var(--gold-bright); }

.product-dialog { width: min(620px, calc(100% - 28px)); padding: 0; border: 1px solid #66552c; border-radius: var(--radius); color: var(--text); background: #0d0d0b; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.72); }
.product-dialog::backdrop { background: rgba(0, 0, 0, 0.82); backdrop-filter: blur(8px); }
.product-dialog[open] { animation: dialogIn 180ms ease both; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 0.72rem; font-weight: 800; }
.dialog-head button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 4px; color: #fff; background: #151411; cursor: pointer; }
.dialog-type { margin: 30px 30px 8px; color: var(--gold-bright); font-size: 0.68rem; font-weight: 900; text-transform: uppercase; }
.product-dialog h2 { margin: 0 30px; font-size: clamp(1.85rem, 4vw, 2.5rem); line-height: 1.06; }
.product-dialog h2 + p { margin: 18px 30px 0; color: var(--muted); line-height: 1.7; }
.product-dialog ul { display: grid; gap: 12px; margin: 26px 30px 0; padding: 20px 0; border-block: 1px solid var(--line); list-style: none; }
.product-dialog li { position: relative; padding-left: 20px; color: #d9d5cb; font-size: 0.85rem; }
.product-dialog li::before { position: absolute; left: 0; color: var(--gold); content: "/"; font-weight: 900; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 24px 30px 30px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 560ms ease, transform 560ms ease; }
.reveal.visible { opacity: 1; transform: none; }

@keyframes heroEnter { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes heroImageIn { from { opacity: 0.45; transform: scale(1.025); } to { opacity: 1; transform: none; } }
@keyframes dialogIn { from { opacity: 0; transform: translateY(10px) scale(0.985); } to { opacity: 1; transform: none; } }

@media (max-width: 930px) {
  .site-header { grid-template-columns: 1fr auto auto; min-height: 64px; padding: 0 18px; }
  .menu-toggle { display: grid; width: 42px; height: 42px; place-content: center; gap: 6px; margin-right: 8px; border: 1px solid var(--line); border-radius: 5px; background: #0c0c0b; cursor: pointer; }
  .menu-toggle span { width: 18px; height: 1px; background: #fff; }
  .site-nav { position: absolute; inset: 64px 12px auto; display: none; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: #0a0a09; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45); }
  .site-nav.open { display: grid; gap: 0; }
  .site-nav a { padding: 13px 8px; }
  .site-nav .nav-home { padding-left: 8px; border-top: 1px solid var(--line); border-left: 0; }
  .hero { min-height: min(740px, 79svh); }
  .hero-content { width: min(100% - 36px, var(--content)); padding-top: 58px; }
  .hero-note { display: none; }
  .plans-section,
  .included-section,
  .help-section { width: min(100% - 36px, var(--content)); padding: 74px 0; }
  .section-heading,
  .included-section,
  .help-section { grid-template-columns: 1fr; gap: 26px; }
  .plan-grid { grid-template-columns: 1fr; }
  .plan-card { min-height: 0; }
  .access-band { grid-template-columns: minmax(0, 230px) minmax(0, 1fr); gap: 36px; padding: 64px 18px; }
  .site-footer { grid-template-columns: 1fr; justify-items: start; width: min(100% - 36px, var(--content)); padding: 30px 0; }
  .site-footer > p { text-align: left; }
  .site-footer > div { justify-content: flex-start; }
}

@media (max-width: 620px) {
  .brand > span:last-child { display: none; }
  .account-login,
  .account-trigger { min-width: 42px; width: 42px; justify-content: center; padding: 0; font-size: 0; }
  .account-login::before { content: "DV"; color: var(--gold-bright); font-size: 0.6rem; font-weight: 900; }
  .account-trigger small { display: none; }
  .hero { min-height: 720px; }
  .hero-content { padding-top: 84px; }
  .hero-copy { font-size: 1rem; }
  .hero-actions,
  .dialog-actions { display: grid; }
  .hero-actions .button,
  .dialog-actions .button { width: 100%; }
  .plans-section { padding: 52px 0; }
  .section-heading { margin-bottom: 22px; }
  .plan-grid { gap: 10px; }
  .plan-card { padding: 18px; border-radius: 8px; }
  .plan-card-head { gap: 10px; }
  .plan-code { font-size: 0.59rem; }
  .plan-tag { padding: 4px 6px; font-size: 0.55rem; }
  .plan-title-row { margin-top: 24px; gap: 12px; }
  .plan-title-row img,
  .fredo-logo { width: 64px; height: 64px; }
  .plan-title-row h3 { font-size: clamp(1.72rem, 8.5vw, 2.35rem); }
  .plan-copy { margin-top: 14px; font-size: 0.86rem; line-height: 1.55; }
  .plan-list { margin-top: 18px; }
  .plan-list li { grid-template-columns: 1fr; gap: 4px; padding: 12px 0; }
  .plan-footer { align-items: stretch; flex-direction: column; padding-top: 16px; }
  .plan-footer .button { width: 100%; }
  .access-band { grid-template-columns: 1fr; gap: 28px; padding: 64px 18px; }
  .access-brand { width: min(100%, 360px); }
  .product-dialog { width: min(100% - 18px, 620px); }
  .product-dialog h2,
  .product-dialog h2 + p,
  .dialog-type,
  .product-dialog ul { margin-left: 22px; margin-right: 22px; }
  .dialog-actions { padding-left: 22px; padding-right: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .reveal,
  .hero-content > * { opacity: 1; transform: none; }
}
