/* ==========================================================================
   Sundale Technologies — Radiant
   Dark ink ground, rust accent, teal for the partner-facing surface.
   Shared across every page. Edit tokens here, the whole site follows.
   ========================================================================== */

:root{
  color-scheme: dark;

  /* Ground and surfaces */
  --ground:      #121110;
  --surface:     #1A1714;
  --surface-2:   #221E19;
  --line:        #2F2A24;
  --line-strong: #453D34;

  /* Ink */
  --text:        #EFEBE3;
  --text-2:      #C3BCB1;
  --muted:       #968F84;

  /* Accent — rust / burnt orange */
  --rust:        #E4592B;
  --rust-lift:   #F27B4E;
  --rust-deep:   #C4451C;
  --rust-wash:   rgba(228, 89, 43, 0.10);

  /* Partner surface — teal */
  --teal:        #4CAA9B;
  --teal-deep:   #2B7568;
  --teal-wash:   rgba(76, 170, 155, 0.09);

  /* Hero artwork */
  --art-sky-top:    #1A1714;
  --art-sky-bottom: #241D17;
  --art-ridge-1:    #16302E;
  --art-ridge-2:    #1E1A16;
  --art-ridge-3:    #121110;

  /* Type */
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  /* Rhythm */
  --gutter: 24px;
  --measure: 1120px;
  --section-y: clamp(56px, 8vw, 104px);
  --radius: 4px;
}

*, *::before, *::after{ box-sizing: border-box; }

html{ -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg{ max-width: 100%; }
img{ height: auto; display: block; }

a{ color: inherit; }

::selection{ background: var(--rust); color: #14100D; }

:focus-visible{
  outline: 2px solid var(--rust-lift);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */

.wrap{
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section{ padding-block: var(--section-y); }
.section + .section{ border-top: 1px solid var(--line); }
.section--tight{ padding-block: clamp(40px, 5vw, 64px); }

.skip-link{
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--rust);
  color: #14100D;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  z-index: 100;
}
.skip-link:focus{ left: 8px; top: 8px; }

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

h1, h2, h3, h4{
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0;
}

h1{ font-size: clamp(34px, 5.4vw, 58px); line-height: 1.05; }
h2{ font-size: clamp(26px, 3.2vw, 36px); line-height: 1.15; }
h3{ font-size: clamp(19px, 1.7vw, 21px); line-height: 1.3; }
h4{ font-size: 17px; line-height: 1.35; }

p{ margin: 0; }

.eyebrow{
  font-family: var(--body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--rust);
  margin: 0;
}
.eyebrow--teal{ color: var(--teal); }

.lede{
  font-size: clamp(16.5px, 1.5vw, 19px);
  line-height: 1.65;
  color: var(--text-2);
  max-width: 58ch;
}

.body-text{ color: var(--text-2); line-height: 1.7; max-width: 66ch; }
.small{ font-size: 14px; color: var(--muted); line-height: 1.6; }

.stack{ display: flex; flex-direction: column; }
.stack-8{ gap: 8px; }
.stack-12{ gap: 12px; }
.stack-16{ gap: 16px; }
.stack-24{ gap: 24px; }
.stack-32{ gap: 32px; }
.stack-40{ gap: 40px; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.btn--primary{ background: var(--rust); color: #140E0A; border-color: var(--rust); }
.btn--primary:hover{ background: var(--rust-lift); border-color: var(--rust-lift); }

.btn--ghost{ background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover{ border-color: var(--rust); color: var(--rust-lift); }

.btn--teal{ background: transparent; color: var(--teal); border-color: var(--teal-deep); }
.btn--teal:hover{ background: var(--teal-wash); border-color: var(--teal); }

.btn-row{ display: flex; flex-wrap: wrap; gap: 12px; }

.textlink{
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--rust);
  padding-bottom: 1px;
  transition: color 160ms ease;
}
.textlink:hover{ color: var(--rust-lift); }

.arrowlink{
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--rust);
  text-decoration: none;
}
.arrowlink::after{ content: "\2192"; transition: transform 160ms ease; }
.arrowlink:hover::after{ transform: translateX(3px); }
.arrowlink--teal{ color: var(--teal); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header{
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 40;
  background: rgba(18, 17, 16, 0.88);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 16px;
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.brand svg{ flex: none; }

.site-nav{ display: flex; align-items: center; gap: 26px; }
.site-nav a{
  font-size: 14.5px;
  color: var(--muted);
  text-decoration: none;
  transition: color 150ms ease;
}
.site-nav a:hover{ color: var(--text); }
.site-nav a[aria-current="page"]{ color: var(--text); }
.site-nav .btn{ padding: 9px 16px; font-size: 14px; }

.nav-toggle{
  display: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--text);
  padding: 8px 12px;
  font-size: 14px;
  font-family: var(--body);
  cursor: pointer;
}

@media (max-width: 820px){
  .nav-toggle{ display: inline-block; }
  .site-nav{
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 18px;
  }
  .site-nav.is-open{ display: flex; }
  .site-nav a{ padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .site-nav .btn{ margin-top: 14px; justify-content: center; border-bottom: none; }
  .site-header__inner{ position: relative; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero{ padding-block: clamp(48px, 7vw, 88px) clamp(28px, 3.5vw, 48px); }

.hero__grid{
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero h1{ max-width: 16ch; }

.hero__art{
  width: 100%;
  aspect-ratio: 5 / 4;
  max-width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}
.hero__art svg{ width: 100%; height: 100%; display: block; }

@media (max-width: 860px){
  .hero__grid{ grid-template-columns: 1fr; }
  .hero__art{ aspect-ratio: 16 / 9; order: -1; }
}

/* --------------------------------------------------------------------------
   Proof strip
   -------------------------------------------------------------------------- */

.proof{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 28px 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line-strong);
}
.proof__item{ display: flex; flex-direction: column; gap: 6px; }
.proof__figure{
  font-family: var(--display);
  font-size: 21px;
  font-weight: 500;
  color: var(--rust);
  letter-spacing: -0.01em;
}
.proof__label{ font-size: 14px; color: var(--muted); line-height: 1.55; max-width: 30ch; }

/* --------------------------------------------------------------------------
   Section headers
   -------------------------------------------------------------------------- */

.section-head{ display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; max-width: 62ch; }
.section-head p.body-text{ margin-top: 2px; }

/* --------------------------------------------------------------------------
   Category + solution list
   -------------------------------------------------------------------------- */

.category{ display: flex; flex-direction: column; gap: 20px; }
.category + .category{ margin-top: 56px; }

.category__head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-strong);
}
.category__title{
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0;
}

.tag{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 100px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  white-space: nowrap;
}
.tag--live{ color: var(--rust); border-color: var(--rust-deep); background: var(--rust-wash); }
.tag--soon{ color: var(--muted); }

.solution-list{ display: flex; flex-direction: column; }

.solution{
  display: grid;
  grid-template-columns: minmax(0, 230px) minmax(0, 1fr);
  gap: 8px 32px;
  padding-block: 26px;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.solution:first-child{ padding-top: 6px; }
.solution:last-child{ border-bottom: none; }
.solution h3{ margin: 0; }
.solution__meta{ display: flex; flex-direction: column; gap: 8px; }
.solution__body{ display: flex; flex-direction: column; gap: 14px; }
.solution p{ color: var(--text-2); font-size: 15px; line-height: 1.7; max-width: 62ch; }

.solution--soon h3, .solution--soon p{ color: var(--muted); }

@media (max-width: 740px){
  .solution{ grid-template-columns: 1fr; gap: 12px; }
}

.pill-list{ display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pill-list li{
  font-size: 13px;
  color: var(--text-2);
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 100px;
  padding: 5px 12px;
}

/* --------------------------------------------------------------------------
   Two-column prose
   -------------------------------------------------------------------------- */

.duo{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(28px, 4vw, 56px);
}

.principle{ display: flex; flex-direction: column; gap: 10px; }
.principle__no{
  font-family: var(--display);
  font-size: 15px;
  color: var(--rust);
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   Partner panel (teal surface)
   -------------------------------------------------------------------------- */

.partner-panel{
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.partner-panel h2{ max-width: 22ch; }
.partner-panel .body-text{ max-width: 58ch; }

.partner-tone{ --rust: var(--teal); --rust-lift: var(--teal); --rust-deep: var(--teal-deep); --rust-wash: var(--teal-wash); }

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.card-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.card{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card h3{ font-size: 19px; }
.card p{ font-size: 14.5px; color: var(--text-2); line-height: 1.65; }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta-band{
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}
.cta-band h2{ max-width: 20ch; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.field{ display: flex; flex-direction: column; gap: 7px; }
.field label{ font-size: 13.5px; font-weight: 500; color: var(--text-2); }
.field input, .field textarea, .field select{
  font-family: var(--body);
  font-size: 15px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 11px 13px;
  width: 100%;
}
.field textarea{ min-height: 130px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder{ color: #6E675E; }
.field input:focus, .field textarea:focus, .field select:focus{ border-color: var(--rust); outline: none; }

.field-row{ display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer{
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding-block: clamp(40px, 5vw, 60px) clamp(28px, 4vw, 40px);
}
.footer-grid{
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(150px, 1fr));
  gap: 36px 40px;
}
.footer-col{ display: flex; flex-direction: column; gap: 10px; }
.footer-col h4{
  font-family: var(--body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 4px;
}
.footer-col a{ font-size: 14.5px; color: var(--text-2); text-decoration: none; }
.footer-col a:hover{ color: var(--rust-lift); }

.footer-base{
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
}
.footer-base p{ font-size: 13px; color: var(--muted); }

/* --------------------------------------------------------------------------
   Build note — visible only while the site is in draft. Delete before launch.
   -------------------------------------------------------------------------- */

.draft-note{
  background: var(--surface-2);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
}
.draft-note strong{ color: var(--text-2); }
.todo{ color: var(--rust); font-style: italic; }

/* --------------------------------------------------------------------------
   Path cards — the two audiences, customer and vendor
   -------------------------------------------------------------------------- */

.path-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }

.path-card{
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--rust);
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.path-card--partner{ border-top-color: var(--teal); }
.path-card h3{ font-size: 22px; }
.path-card p{ color: var(--text-2); font-size: 15px; line-height: 1.65; flex: 1; }
.path-card .small{ margin-top: -4px; }

/* --------------------------------------------------------------------------
   Ownership split — what we own against what the vendor owns
   -------------------------------------------------------------------------- */

.owns{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.owns__col{ padding: 26px 26px 30px; background: var(--surface); }
.owns__col + .owns__col{ border-left: 1px solid var(--line); background: var(--ground); }
@media (max-width: 620px){
  .owns__col + .owns__col{ border-left: none; border-top: 1px solid var(--line); }
}
.owns__col h3{
  font-family: var(--body); font-size: 12px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 18px;
}
.owns__col--ours h3{ color: var(--rust); }
.owns__col ul{ list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.owns__col li{ font-size: 15px; line-height: 1.5; color: var(--text-2); padding-left: 20px; position: relative; }
.owns__col li::before{
  content: ""; position: absolute; left: 0; top: 9px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong);
}
.owns__col--ours li{ color: var(--text); }
.owns__col--ours li::before{ background: var(--rust); }

/* --------------------------------------------------------------------------
   Stage sequence — numbered because the order is the information
   -------------------------------------------------------------------------- */

.stages{ display: flex; flex-direction: column; counter-reset: stage; }
.stage{
  display: grid;
  grid-template-columns: 46px minmax(0, 200px) minmax(0, 1fr);
  gap: 8px 26px;
  padding-block: 22px;
  border-top: 1px solid var(--line);
  align-items: start;
}
.stage:first-child{ border-top: none; }
.stage__no{
  font-family: var(--display); font-size: 15px; color: var(--rust);
  font-variant-numeric: tabular-nums; padding-top: 3px;
}
.stage h3{ font-size: 18px; }
.stage p{ color: var(--text-2); font-size: 14.5px; line-height: 1.65; max-width: 58ch; }
.stage__who{
  display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.stage__who em{ font-style: normal; color: var(--rust); }
@media (max-width: 720px){
  .stage{ grid-template-columns: 34px minmax(0, 1fr); }
  .stage p, .stage__who{ grid-column: 2; }
}

/* --------------------------------------------------------------------------
   Callout — the one paragraph that answers the obvious objection
   -------------------------------------------------------------------------- */

.callout{
  border-left: 3px solid var(--rust);
  background: var(--rust-wash);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 26px 28px;
  display: flex; flex-direction: column; gap: 14px;
}
.callout h2{ font-size: clamp(22px, 2.4vw, 28px); max-width: 26ch; }
.callout p{ color: var(--text-2); font-size: 15.5px; line-height: 1.7; max-width: 62ch; }
.callout strong{ color: var(--text); font-weight: 500; }

/* --------------------------------------------------------------------------
   Contact detail rows
   -------------------------------------------------------------------------- */

.detail-list{ display: flex; flex-direction: column; }
.detail{
  display: grid; grid-template-columns: minmax(0, 160px) minmax(0, 1fr);
  gap: 6px 24px; padding-block: 18px; border-top: 1px solid var(--line);
}
.detail:first-child{ border-top: none; }
.detail dt{ font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.detail dd{ margin: 0; font-size: 16px; }
.detail dd a{ color: var(--text); text-decoration: none; border-bottom: 1px solid var(--rust); }
.detail dd a:hover{ color: var(--rust-lift); }
@media (max-width: 620px){ .detail{ grid-template-columns: 1fr; } }
