/* ==========================================================================
   Cubevia — site styles
   Sections:  1 tokens · 2 reset · 3 primitives · 4 header · 5 hero
              6 services · 7 model · 8 benefits · 9 band · 10 packages
              11 who · 12 about · 13 quote form · 14 footer · 15 responsive
   ========================================================================== */

/* ------------------------------------------------------- 0. typefaces */
/* Self-hosted and subset to Latin. No third-party requests, no GDPR
   question, and the page still renders if an external CDN is blocked. */
@font-face{ font-family:'Lora'; src:url('../fonts/lora-regular.woff2') format('woff2');
            font-weight:400; font-style:normal; font-display:swap; }
@font-face{ font-family:'Lora'; src:url('../fonts/lora-bold.woff2') format('woff2');
            font-weight:700; font-style:normal; font-display:swap; }
@font-face{ font-family:'Outfit'; src:url('../fonts/outfit-regular.woff2') format('woff2');
            font-weight:400; font-style:normal; font-display:swap; }
@font-face{ font-family:'Outfit'; src:url('../fonts/outfit-bold.woff2') format('woff2');
            font-weight:700; font-style:normal; font-display:swap; }

/* ------------------------------------------------------------ 1. tokens */
:root{
  --navy:        #16212B;
  --navy-2:      #1E2A33;
  --navy-3:      #26333F;

  --paper:       #F5F0E7;
  --paper-soft:  #FAF6EF;
  --clay:        #E5DCCD;
  --card:        #FFFDF9;

  --gold:        #C08A1E;
  --gold-bright: #D9A63F;
  --gold-soft:   #EBCE8C;

  --ink:         #1B2630;
  --ink-soft:    #4A5763;
  --ink-muted:   #6E7A86;
  --on-dark:     #C4CED7;
  --on-dark-dim: #93A0AC;

  --line:        rgba(27, 38, 48, .16);
  --line-soft:   rgba(27, 38, 48, .09);
  --line-dark:   rgba(255, 255, 255, .16);

  --display: 'Lora', Georgia, 'Times New Roman', serif;
  --sans:    'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --container: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(64px, 9vw, 128px);
  --radius: 2px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ------------------------------------------------------------- 2. reset */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){ html { scroll-behavior: auto; } }

body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.62;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.14;
             letter-spacing: -.012em; text-wrap: balance; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }

:focus-visible{
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 1px;
}

.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;
}

.skip-link{
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -120%);
  z-index: 200; background: var(--gold); color: #16110A;
  padding: 12px 22px; font-size: 14px; font-weight: 500; text-decoration: none;
}
.skip-link:focus{ transform: translate(-50%, 0); }

/* --------------------------------------------------------- 3. primitives */
.container{
  width: 100%; max-width: var(--container);
  margin-inline: auto; padding-inline: var(--gutter);
}

.section{ padding-block: var(--section-y); }
.section-paper      { background: var(--paper); }
.section-paper-soft { background: var(--paper-soft); }
.section-clay       { background: var(--clay); }

.eyebrow{
  font-size: 12px; font-weight: 500; letter-spacing: .13em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 22px;
}
.eyebrow-sm{ font-size: 10.5px; margin-bottom: 12px; }

h1{ font-size: clamp(34px, 5.2vw, 60px); }
h2{ font-size: clamp(27px, 3.5vw, 42px); }
h3{ font-size: clamp(19px, 1.6vw, 23px); line-height: 1.3; }

.lede{ font-size: clamp(15.5px, 1.2vw, 17.5px); color: var(--ink-soft); max-width: 46ch; }
.small{ font-size: 13.5px; line-height: 1.6; color: var(--ink-muted); }
.meta{ font-size: 12.5px; letter-spacing: .045em; color: var(--on-dark-dim); }

.rule{ border: 0; border-top: 1px solid var(--line); margin: 30px 0; }

.btn{
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 14.5px; font-weight: 500;
  letter-spacing: .012em; text-decoration: none; cursor: pointer;
  padding: 14px 26px; border-radius: var(--radius); border: 1px solid transparent;
  transition: background .22s var(--ease), color .22s var(--ease),
              border-color .22s var(--ease), transform .22s var(--ease);
}
.btn-sm { padding: 9px 17px; font-size: 13px; }
.btn-block { width: 100%; padding-block: 16px; }

.btn-gold{ background: var(--gold); color: #16110A; border-color: var(--gold); }
.btn-gold:hover{ background: var(--gold-bright); border-color: var(--gold-bright); }

.btn-ghost{ background: transparent; color: var(--gold-bright); border-color: var(--gold); }
.btn-ghost:hover{ background: rgba(192, 138, 30, .14); color: var(--gold-soft); }

.section-paper .btn-ghost,
.section-paper-soft .btn-ghost { color: var(--gold); }

.link-arrow{
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14px; font-weight: 500; color: var(--gold);
  text-decoration: none; border-bottom: 1px solid currentColor;
  padding-bottom: 3px; transition: gap .22s var(--ease);
}
.link-arrow svg{ width: 15px; height: 15px; }
.link-arrow:hover{ gap: 14px; }
.link-arrow-gold{ color: var(--gold-bright); margin-top: 16px; }

.reveal{ opacity: 0; transform: translateY(18px);
         transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal[data-delay="1"]{ transition-delay: .09s; }
.reveal[data-delay="2"]{ transition-delay: .18s; }
.reveal.in{ opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity: 1; transform: none; transition: none; }
}

/* ------------------------------------------------------------- 4. header */
.site-header{
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.site-header.scrolled{
  border-bottom-color: var(--line-dark);
  box-shadow: 0 8px 30px -18px rgba(0, 0, 0, .8);
}
.header-inner{
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 68px;
}
.brand img{ height: 34px; width: auto; }

.nav{ display: flex; align-items: center; gap: 30px; }
.nav > a{
  font-size: 14px; font-weight: 400; color: var(--on-dark);
  text-decoration: none; transition: color .2s var(--ease);
}
.nav > a:hover{ color: var(--gold-bright); }
.nav-cta{ display: flex; gap: 10px; margin-left: 6px; }

.nav-toggle{
  display: none; background: none; border: 1px solid var(--line-dark);
  border-radius: var(--radius); padding: 9px 11px; cursor: pointer;
}
.bars{ display: block; width: 18px; }
.bars i{
  display: block; height: 1.5px; background: var(--on-dark); margin: 4px 0;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .bars i:nth-child(1){ transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars i:nth-child(2){ opacity: 0; }
.nav-toggle[aria-expanded="true"] .bars i:nth-child(3){ transform: translateY(-5.5px) rotate(-45deg); }

/* --------------------------------------------------------------- 5. hero */
.hero{
  background: var(--navy); color: #fff;
  padding-block: clamp(56px, 7vw, 104px) clamp(64px, 8vw, 116px);
}
.hero-grid{
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 76px); align-items: center;
}
.hero h1{ color: #fff; margin-bottom: 26px; }
.hero .lede{ color: var(--on-dark); margin-bottom: 34px; }
.hero .rule{ border-top-color: var(--line-dark); }
.btn-row{ display: flex; flex-wrap: wrap; gap: 12px; }

.hero-figure{ position: relative; }
.corner-accent{
  position: absolute; top: -14px; left: -14px; width: 76px; height: 62px;
  border: 1px solid var(--gold); border-right: 0; border-bottom: 0; z-index: 2;
}
.figure-frame{ overflow: hidden; border-radius: var(--radius); }
.figure-frame img{ width: 100%; }

.figure-card{
  position: absolute; right: -8px; bottom: -30px; max-width: 285px;
  background: var(--navy-2); border: 1px solid var(--line-dark);
  padding: 20px 22px; z-index: 3;
}
.figure-card p:last-child{ font-size: 14px; color: var(--on-dark); line-height: 1.5; }

/* ----------------------------------------------------------- 6. services */
.section-head{
  display: grid; grid-template-columns: minmax(160px, 1fr) 2fr;
  gap: clamp(20px, 4vw, 56px); align-items: start;
  padding-bottom: clamp(34px, 4vw, 56px);
  margin-bottom: clamp(34px, 4vw, 52px);
  border-bottom: 1px solid var(--line);
}
.section-head .eyebrow{ margin-bottom: 0; padding-top: 8px; }
.section-head-stack{ grid-template-columns: 1fr; border-bottom: 0; padding-bottom: 0; }
.section-head-stack .eyebrow{ margin-bottom: 18px; padding-top: 0; }
.section-head-stack h2{ max-width: 20ch; }
.h2-lead{ max-width: 22ch; }

.card-pair{ display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 2.4vw, 30px); }
.card{ padding: clamp(28px, 3vw, 42px); border-radius: var(--radius); }
.card-light{ background: var(--card); border: 1px solid var(--line); }
.card-dark{ background: var(--navy); color: #fff; }

.card-index{
  font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
.card h3{ margin-bottom: 26px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.card-dark h3{ border-bottom-color: var(--line-dark); }

.ticks{ display: grid; gap: 13px; }
.ticks-2col{ grid-template-columns: 1fr 1fr; column-gap: 26px; }
.ticks li{
  position: relative; padding-left: 24px; font-size: 14px;
  line-height: 1.5; color: var(--ink-soft);
}
.card-dark .ticks li{ color: var(--on-dark); }
.ticks li::before{
  content: ""; position: absolute; left: 0; top: 6px;
  width: 11px; height: 6px; border-left: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold); transform: rotate(-45deg);
}

/* -------------------------------------------------------------- 7. model */
.flow{
  display: grid; grid-template-columns: 1fr auto 1.25fr auto 1fr;
  gap: clamp(12px, 1.6vw, 22px); align-items: stretch;
  margin-top: clamp(34px, 4vw, 52px);
}
.flow-card{
  background: var(--card); border: 1px solid var(--line);
  padding: clamp(22px, 2.4vw, 32px); border-radius: var(--radius);
}
.flow-card-dark{ background: var(--navy); border-color: var(--navy); color: #fff; }
.flow-list{ font-size: 15px; line-height: 1.62; color: var(--ink-soft); }
.flow-card-dark .flow-list{ color: #fff; font-size: 16px; }
.flow-result{ color: var(--ink); }
.flow-arrow{ align-self: center; color: var(--gold); }
.flow-arrow svg{ width: 22px; height: 22px; }

/* ----------------------------------------------------------- 8. benefits */
.benefits-grid{
  display: grid; grid-template-columns: 1fr 1.35fr;
  gap: clamp(32px, 5vw, 80px); align-items: start;
}
.benefits-head h2{ max-width: 16ch; }
.benefits{
  display: grid; grid-template-columns: 1fr 1fr;
  column-gap: clamp(26px, 3vw, 46px); row-gap: clamp(30px, 3.4vw, 46px);
}
.benefits li{ position: relative; padding-left: 0; }
.benefits li:nth-child(odd){ padding-right: clamp(18px, 2vw, 30px);
                             border-right: 1px solid var(--line); }
.num{
  display: block; font-size: 11.5px; letter-spacing: .1em;
  color: var(--gold); margin-bottom: 14px;
}
.benefits h3{ font-size: clamp(17px, 1.35vw, 20px); margin-bottom: 11px; }
.benefits p{ font-size: 14px; color: var(--ink-muted); line-height: 1.58; }

/* --------------------------------------------------------------- 9. band */
.band{ background: var(--navy); color: #fff; padding-block: clamp(56px, 7vw, 96px); }
.band-grid{
  display: grid; grid-template-columns: 1.15fr 1fr;
  gap: clamp(28px, 5vw, 72px); align-items: center;
}
.band h2{ max-width: 18ch; }
.band p{ font-size: 15px; color: var(--on-dark); line-height: 1.68; max-width: 44ch; }
.band strong{ color: var(--gold-bright); font-weight: 700; }

/* ---------------------------------------------------------- 10. packages */
.packages-grid{
  display: grid; grid-template-columns: 1fr 1.15fr;
  gap: clamp(30px, 5vw, 72px); align-items: start;
}
.packages-grid h2{ max-width: 14ch; }
.price-card{
  background: var(--card); border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  padding: clamp(30px, 3.4vw, 46px); border-radius: var(--radius);
}
.price{ font-family: var(--display); font-size: clamp(25px, 2.6vw, 34px);
        line-height: 1.2; margin-bottom: 18px; }
.price strong{ font-weight: 700; }
.price-lede{ font-size: 15px; color: var(--gold); line-height: 1.6; }

/* --------------------------------------------------------------- 11. who */
.who-grid{
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line); border-right: 0; border-bottom: 0;
  margin-top: clamp(34px, 4vw, 52px); background: rgba(255, 253, 249, .4);
}
.who-grid li{
  padding: clamp(20px, 2.4vw, 30px);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-size: 15px; color: var(--ink);
}

/* ------------------------------------------------------------- 12. about */
.about-grid{
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: clamp(30px, 5vw, 76px); align-items: center;
}
.about-figure img{ width: 100%; border-radius: var(--radius); }
.about-grid h2{ margin-bottom: 20px; max-width: 18ch; }
.about-grid p{ color: var(--ink-soft); font-size: 15.5px; max-width: 48ch; }

/* ------------------------------------------------------------- 13. quote */
.quote-section{
  background: var(--navy); color: #fff;
  padding-block: clamp(60px, 8vw, 112px);
}
.quote-grid{
  display: grid; grid-template-columns: 1fr 1.05fr;
  gap: clamp(34px, 5vw, 72px); align-items: start;
}
.quote-copy h2{ color: #fff; margin-bottom: 22px; max-width: 15ch; }
.quote-copy .lede{ color: var(--on-dark); }
.quote-figure{ margin-top: clamp(28px, 3.5vw, 46px); border: 1px solid var(--line-dark); }

.form-card{
  background: var(--card); color: var(--ink);
  padding: clamp(26px, 3vw, 40px); border-radius: var(--radius);
}
.form-card h3{ margin-bottom: 10px; }
.form-card > .small{ margin-bottom: 26px; }

.form{ display: grid; gap: 16px; }
.field-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field{ display: grid; gap: 7px; margin: 0; }
.field label{ font-size: 12.5px; font-weight: 400; color: var(--ink-soft); }

.field input, .field select, .field textarea{
  font-family: var(--sans); font-size: 14.5px; font-weight: 400; color: var(--ink);
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 11px 13px; width: 100%;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea{ resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus{
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(192, 138, 30, .16);
}
.field input::placeholder, .field textarea::placeholder{ color: #9AA5B0; }
.field select{
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236E7A86' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center;
  background-size: 15px; padding-right: 36px;
}
.field.invalid input, .field.invalid select, .field.invalid textarea{ border-color: #B4442C; }
.hp{ position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.form-status{ font-size: 13.5px; line-height: 1.5; min-height: 1px; }
.form-status.ok  { color: #1F7A50; }
.form-status.err { color: #B4442C; }

/* ------------------------------------------------------------ 14. footer */
.site-footer{ background: var(--navy); color: var(--on-dark);
              padding-block: clamp(48px, 6vw, 76px) 26px; }
.footer-grid{
  display: grid; grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: clamp(28px, 4vw, 60px);
  padding-bottom: clamp(30px, 4vw, 48px);
}
.footer-logo{ height: 40px; width: auto; margin-bottom: 18px; }
.site-footer .small{ color: var(--on-dark-dim); max-width: 34ch; }
.footer-head{
  font-size: 11.5px; letter-spacing: .11em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
}
.footer-links{ display: grid; gap: 10px; }
.footer-links a{
  font-size: 14px; text-decoration: none; color: var(--on-dark);
  transition: color .2s var(--ease);
}
.footer-links a:hover{ color: var(--gold-bright); }
.footer-base{
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-top: 22px; border-top: 1px solid var(--line-dark);
}

/* -------------------------------------------------------- 15. responsive */
@media (max-width: 1000px){
  .nav{
    position: fixed; inset: 68px 0 auto 0; display: none;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); border-bottom: 1px solid var(--line-dark);
    padding: 10px var(--gutter) 24px;
  }
  .nav.open{ display: flex; }
  .nav > a{ padding: 14px 0; border-bottom: 1px solid var(--line-dark); font-size: 15px; }
  .nav-cta{ flex-direction: column; margin: 18px 0 0; gap: 10px; }
  .nav-cta .btn{ padding-block: 13px; font-size: 14px; }
  .nav-toggle{ display: block; }

  .hero-grid, .band-grid, .packages-grid, .about-grid,
  .quote-grid, .benefits-grid{ grid-template-columns: 1fr; }
  .hero-figure{ order: -1; margin-bottom: 14px; }
  .figure-card{ position: static; max-width: none; margin-top: 12px; }
  .corner-accent{ display: none; }
  .about-figure{ max-width: 520px; }

  .flow{ grid-template-columns: 1fr; }
  .flow-arrow{ justify-self: center; transform: rotate(90deg); }
  .section-head{ grid-template-columns: 1fr; }
  .section-head .eyebrow{ padding-top: 0; margin-bottom: 14px; }
}

@media (max-width: 720px){
  .card-pair{ grid-template-columns: 1fr; }
  .ticks-2col{ grid-template-columns: 1fr; }
  .who-grid{ grid-template-columns: 1fr 1fr; }
  .benefits{ grid-template-columns: 1fr; }
  .benefits li:nth-child(odd){ border-right: 0; padding-right: 0; }
  .footer-grid{ grid-template-columns: 1fr; }
  .field-row{ grid-template-columns: 1fr; }
}

@media (max-width: 460px){
  .who-grid{ grid-template-columns: 1fr; }
  .btn-row .btn{ width: 100%; }
}

/* ------------------------------------------------- 16. legal & footer add-ons */
.form-consent{
  font-size: 12px; line-height: 1.5; color: var(--ink-muted); margin-top: 2px;
}
.form-consent a{ color: var(--gold); }

.footer-legal{
  padding-top: 22px; padding-bottom: 4px;
  border-top: 1px solid var(--line-dark);
}
.footer-legal .small{ max-width: 68ch; color: var(--on-dark-dim); }
.footer-legal strong{ color: var(--on-dark); font-weight: 700; }

.footer-base a{ color: var(--on-dark-dim); text-decoration: underline;
                text-underline-offset: 3px; }
.footer-base a:hover{ color: var(--gold-bright); }

/* legal pages (privacy) */
.nav-simple{ gap: 22px; }
.legal{ background: var(--paper); padding-block: clamp(48px, 6vw, 88px) clamp(56px, 7vw, 96px); }
.legal-inner{ max-width: 760px; }
.legal h1{ font-size: clamp(30px, 4vw, 46px); margin-bottom: 20px; }
.legal .lede{ max-width: 58ch; margin-bottom: 10px; }
.legal-updated{ font-size: 13px; color: var(--ink-muted); margin-bottom: 40px; }
.legal h2{
  font-size: clamp(20px, 1.9vw, 25px); margin-top: 42px; margin-bottom: 14px;
  padding-top: 26px; border-top: 1px solid var(--line);
}
.legal p{ color: var(--ink-soft); font-size: 15.5px; margin-bottom: 14px; }
.legal p strong{ color: var(--ink); font-weight: 700; }
.legal a{ color: var(--gold); }
.legal-list{ display: grid; gap: 9px; margin: 0 0 18px; }
.legal-list li{
  position: relative; padding-left: 20px; font-size: 15px; color: var(--ink-soft);
}
.legal-list li::before{
  content: ""; position: absolute; left: 0; top: 10px;
  width: 6px; height: 6px; background: var(--gold); border-radius: 50%;
}
.legal-back{ margin-top: 46px; padding-top: 30px; border-top: 1px solid var(--line); }
