/* PureSpin v2 — "Editorial Pop"
   Logo-driven palette. Dusty blue (#6BA3BE) used as the DOMINANT color, not an accent.
   Paytone One display + Outfit body. Sharp geometry, thick borders, hard-edged corners (border-radius: 0). */

:root {
  --paper: #EAF2F7;        /* soft sky-tinted family-friendly bright */
  --paper-deep: #D6E6EF;   /* hover / accent surface */
  --ink: #14222C;
  --ink-muted: #4A5A66;
  --blue: #6BA3BE;       /* logo */
  --blue-deep: #2F5C75;
  --blue-ink: #102633;
  --rule: #1F3947;

  --display: "Paytone One", "Arial Black", ui-sans-serif, sans-serif;
  --body: "Outfit", ui-sans-serif, system-ui, sans-serif;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur: 320ms;
  --max: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; color: var(--blue-deep); }
button { font: inherit; cursor: pointer; }

/* Selection in brand blue for cohesion */
::selection { background: var(--blue); color: var(--ink); }

/* Soft sun-warmth wash on the paper — subtle, not animated */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 600px at 12% -10%, rgba(255,236,200,0.45), transparent 60%),
    radial-gradient(700px 500px at 90% 110%, rgba(107,163,190,0.18), transparent 60%);
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;             /* Paytone One ships only one weight */
  font-style: normal;
  letter-spacing: -0.01em;
  line-height: 1.02;
  margin: 0 0 0.5em;
  color: var(--blue);
  text-transform: uppercase;
}
h1 { font-size: clamp(2.8rem, 8vw, 7rem); letter-spacing: -0.03em; line-height: 0.95; }
h2 { font-size: clamp(1.9rem, 4.4vw, 3.6rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); letter-spacing: 0; }
p  { margin: 0 0 1em; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

/* ---------- Top bar (banner-style, not floating) ---------- */
.topbar {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 9px 0;
}
.topbar-inner { max-width: var(--max); margin: 0 auto; padding: 0 28px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.topbar a { color: var(--paper); opacity: 0.85; text-decoration: none; }
.topbar a:hover { opacity: 1; color: var(--blue); }

.nav {
  background: var(--paper);
  border-bottom: 1.5px solid var(--rule);
  position: sticky; top: 0; z-index: 50;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max); margin: 0 auto; padding: 18px 28px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 64px; width: auto; }
@media (max-width: 880px) { .nav-logo img { height: 52px; } }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  color: var(--ink); text-decoration: none;
  font-weight: 500; font-size: 0.92rem;
  letter-spacing: 0.02em;
}
.nav-links a:hover { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 6px; }
.nav-cta {
  background: var(--blue);
  color: var(--ink) !important;
  padding: 10px 18px;
  border: 1.5px solid var(--rule);
  font-weight: 600; font-size: 0.86rem !important;
  letter-spacing: 0.04em; text-transform: uppercase;
  text-decoration: none !important;
  transition: background var(--dur) var(--ease);
}
.nav-cta:hover { background: var(--ink); color: var(--blue) !important; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1.5px solid var(--rule);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 28px 20px; display: none;
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .nav-cta { text-align: center; margin-top: 12px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 28px;
  font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  border: 1.5px solid var(--rule);
  border-radius: 0;
  text-decoration: none !important;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--blue); color: var(--ink); }
.btn-blue { background: var(--blue); color: var(--ink); }
.btn-blue:hover { background: var(--ink); color: var(--blue); }

/* ---------- Hero — editorial spread ---------- */
.hero {
  border-bottom: 1.5px solid var(--rule);
  padding: 56px 0 0;
  position: relative;
}
.hero--video { overflow: hidden; isolation: isolate; }
.hero--video .hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
  background: var(--paper);
}
.hero--video .hero-bg-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(234,242,247,0.92) 0%, rgba(234,242,247,0.78) 45%, rgba(234,242,247,0.95) 100%);
  z-index: -1;
}
.hero--video .hero-copy { border-right: 0; }
.hero--video .hero-side { padding-bottom: 64px; justify-content: flex-end; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 0;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}
.hero-copy { padding: 24px 36px 64px 0; border-right: 1.5px solid var(--rule); }
.hero-meta-row {
  font-family: var(--body); font-size: 0.82rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
  display: flex; gap: 22px; margin-bottom: 32px;
  flex-wrap: wrap;
}
.hero-meta-row span::before { content: "·"; margin-right: 22px; color: var(--blue-deep); }
.hero-meta-row span:first-child::before { content: ""; margin-right: 0; }
.hero h1 .blue, .hero h1 em { color: var(--blue); }
.hero h1 em {
  font-style: normal;
  font-family: var(--display);
  display: inline-block;
}
.hero-sub {
  margin: 32px 0 36px;
  font-size: 1.2rem;
  color: var(--ink);
  font-weight: 500;
  max-width: 44ch;
  line-height: 1.5;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-side {
  padding: 24px 0 64px 36px;
  display: flex; flex-direction: column; gap: 24px;
}
.hero-card {
  background: var(--blue);
  border: 1.5px solid var(--rule);
  padding: 22px 24px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink);
}
.hero-card strong { display: block; font-family: var(--display); font-size: 1.05rem; text-transform: uppercase; letter-spacing: -0.005em; line-height: 1.1; margin-bottom: 6px; }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { border-right: 0; padding: 0 0 32px; }
  .hero-side { padding: 32px 0 48px; border-top: 1.5px solid var(--rule); }
  .hero--video .hero-bg-overlay {
    background: linear-gradient(180deg, rgba(234,242,247,0.88) 0%, rgba(234,242,247,0.78) 50%, rgba(234,242,247,0.92) 100%);
  }
  .hero--video .hero-side { border-top-color: rgba(31,57,71,0.4); }
}


/* ---------- Section base ---------- */
section { padding: 96px 0; border-bottom: 1.5px solid var(--rule); }
section:last-of-type { border-bottom: 0; }
@media (max-width: 700px) {
  section { padding: 56px 0; }
}

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 48px; flex-wrap: wrap; }
.section-head h2 { max-width: 22ch; }
.section-head .meta { color: var(--ink-muted); font-size: 0.95rem; max-width: 40ch; }

/* ---------- Editorial 3-column ledger (replaces feature cards) ---------- */
.ledger {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-top: 2px solid var(--rule);
}
.ledger-item {
  border-right: 1.5px solid var(--rule);
  padding: 32px 28px 36px;
  background: transparent;
  transition: background var(--dur) var(--ease);
}
.ledger-item:last-child { border-right: 0; }
.ledger-item:hover { background: var(--paper-deep); }
.ledger-item h3 {
  font-family: var(--display);
  font-size: 1.4rem;
  font-style: normal;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.ledger-item p { color: var(--ink-muted); font-size: 0.97rem; margin: 0 0 18px; }
.ledger-item .ledger-link {
  display: inline-block;
  font-family: var(--body); font-weight: 600; font-size: 0.78rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue-deep);
  text-decoration: none;
  border-bottom: 1.5px solid var(--blue-deep);
  padding-bottom: 2px;
}
.ledger-item .ledger-link:hover { color: var(--ink); border-bottom-color: var(--ink); }

@media (max-width: 880px) {
  .ledger { grid-template-columns: 1fr; }
  .ledger-item { border-right: 0; border-bottom: 1.5px solid var(--rule); }
  .ledger-item:last-child { border-bottom: 0; }
}

/* ---------- Machine sizes — editorial table ---------- */
.size-table {
  border-top: 2px solid var(--rule);
  border-bottom: 2px solid var(--rule);
}
.size-row {
  display: grid;
  grid-template-columns: 0.5fr 1fr 1.6fr;
  align-items: baseline;
  padding: 22px 8px;
  border-bottom: 1px solid var(--rule);
  gap: 24px;
}
.size-row:last-child { border-bottom: 0; }
.size-row .lb {
  font-family: var(--display); font-style: normal;
  font-size: 1.8rem; line-height: 1;
  color: #000;
  letter-spacing: -0.02em;
}
.size-row .label { font-weight: 500; }
.size-row .desc { color: var(--ink-muted); font-size: 0.95rem; }

@media (max-width: 700px) {
  .size-row { grid-template-columns: 0.6fr 1fr; gap: 12px; padding: 18px 4px; }
  .size-row .desc { display: none; }
}

/* ---------- Values — value name is the dominant element ---------- */
.values { border-top: 2px solid var(--rule); border-bottom: 2px solid var(--rule); }
.value-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 2fr;
  align-items: baseline;
  padding: 28px 8px;
  border-bottom: 1px solid var(--rule);
  gap: 32px;
}
.value-row:last-child { border-bottom: 0; }
.value-row .value-name {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  text-transform: uppercase;
  color: #000;
  letter-spacing: -0.01em;
  line-height: 1;
}
.value-row .value-desc {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.55;
}
@media (max-width: 700px) {
  .value-row { grid-template-columns: 1fr; gap: 8px; padding: 22px 4px; }
}

/* ---------- Promise list — bold pop pills ---------- */
.promise-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.promise-list li {
  font-family: var(--display);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  background: var(--blue);
  color: var(--paper);
  padding: 12px 18px;
  border: 2px solid var(--blue-deep);
}

/* ---------- Big split ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-top: 2px solid var(--rule);
}
.split-text { padding: 56px 56px 56px 0; border-right: 1.5px solid var(--rule); }
.split-image { aspect-ratio: 1/1; overflow: hidden; }
.split-image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.split.reverse .split-text { padding: 56px 0 56px 56px; border-right: 0; border-left: 1.5px solid var(--rule); order: 2; }
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; }
  .split-text, .split.reverse .split-text { padding: 32px 0; border: 0; order: 0; }
  .split-image { aspect-ratio: 1/1; }
}

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; max-width: 540px; }
.form input, .form textarea, .form select {
  font: inherit;
  padding: 14px 16px;
  background: var(--paper);
  border: 1.5px solid var(--rule);
  border-radius: 0;
  color: var(--ink);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: 0; background: var(--paper-deep);
}
.form label { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); font-weight: 600; margin-bottom: -10px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 96px 0 32px;
  border-top: 1.5px solid var(--rule);
}
.footer-top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 56px;
  padding-bottom: 56px; border-bottom: 1px solid rgba(234,242,247,0.18);
}
.footer h4 { font-family: var(--display); font-size: 1.15rem; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 400; color: var(--blue); margin-bottom: 18px; }
.footer-brand .footer-logo {
  display: block;
  height: 56px;
  width: auto;
  margin-bottom: 20px;
}
@media (max-width: 880px) {
  .footer-brand .footer-logo { height: 48px; }
}
.footer-brand p { color: rgba(234,242,247,0.7); max-width: 32ch; font-size: 0.95rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { padding: 5px 0; font-size: 0.95rem; }
.footer a { color: var(--paper); opacity: 0.78; text-decoration: none; }
.footer a:hover { opacity: 1; color: var(--blue); }
.footer-bottom { display: flex; justify-content: space-between; align-items: baseline; padding-top: 24px; flex-wrap: wrap; gap: 12px; font-size: 0.82rem; color: rgba(234,242,247,0.55); letter-spacing: 0.04em; }
@media (max-width: 880px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; } }

/* ---------- Chatbot — themed for v2 ---------- */
#ps-chat { position: fixed; bottom: 24px; right: 24px; z-index: 100; font-family: var(--body); }
#ps-chat-toggle {
  width: 64px; height: 64px;
  background: var(--blue);
  color: var(--ink);
  border: 1.5px solid var(--rule);
  border-radius: 0;
  box-shadow: 6px 6px 0 var(--rule);
  display: grid; place-items: center;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
#ps-chat-toggle:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--rule); }
#ps-chat-toggle svg { width: 26px; height: 26px; }
#ps-chat-window {
  position: absolute; bottom: 80px; right: 0;
  width: 380px; max-width: calc(100vw - 32px);
  height: 540px; max-height: calc(100vh - 130px);
  background: var(--paper);
  border: 1.5px solid var(--rule);
  border-radius: 0;
  box-shadow: 8px 8px 0 var(--rule);
  display: none; flex-direction: column;
  overflow: hidden;
}
#ps-chat.open #ps-chat-window { display: flex; }
.ps-chat-head {
  background: var(--ink); color: var(--paper);
  padding: 16px 20px; display: flex; align-items: center; gap: 12px;
  border-bottom: 1.5px solid var(--rule);
}
.ps-chat-head .av {
  width: 36px; height: 36px; background: var(--blue); color: var(--ink);
  display: grid; place-items: center;
  font-family: var(--display); font-style: normal; font-size: 1rem;
  border: 1.5px solid var(--paper);
  text-transform: uppercase;
}
.ps-chat-head .who { font-weight: 600; font-size: 0.95rem; }
.ps-chat-head .status { font-size: 0.74rem; opacity: 0.8; letter-spacing: 0.1em; text-transform: uppercase; display: flex; align-items: center; gap: 6px; }
.ps-chat-head .status::before {
  content: ""; width: 8px; height: 8px;
  background: var(--blue);
}
#ps-chat-log { flex: 1; padding: 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; background: var(--paper); }
.ps-msg {
  max-width: 84%;
  padding: 12px 14px;
  border: 1.5px solid var(--rule);
  font-size: 0.92rem; line-height: 1.45;
  white-space: pre-wrap;
}
.ps-msg.bot { background: var(--paper-deep); align-self: flex-start; }
.ps-msg.user { background: var(--blue); align-self: flex-end; }
.ps-suggestions {
  display: flex; flex-wrap: nowrap; gap: 6px;
  padding: 10px 14px;
  background: var(--paper);
  border-top: 1.5px solid var(--rule);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.ps-suggestions::-webkit-scrollbar { display: none; }
#ps-chat.engaged .ps-suggestions { display: none; }
.ps-chip {
  background: var(--paper); border: 1.5px solid var(--rule);
  padding: 6px 12px; border-radius: 0;
  font-size: 0.78rem; letter-spacing: 0.04em;
  color: var(--ink); cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--dur) var(--ease);
}
.ps-chip:hover { background: var(--ink); color: var(--blue); }
#ps-chat-form { display: flex; gap: 8px; padding: 12px; background: var(--paper); border-top: 1.5px solid var(--rule); }
#ps-chat-input { flex: 1; padding: 10px 14px; border: 1.5px solid var(--rule); border-radius: 0; font: inherit; font-size: 0.92rem; background: var(--paper); }
#ps-chat-input:focus { outline: 0; background: var(--paper-deep); }
#ps-chat-send {
  background: var(--ink); color: var(--paper);
  border: 1.5px solid var(--rule); border-radius: 0;
  width: 42px; height: 42px;
  display: grid; place-items: center;
}
#ps-chat-send:hover { background: var(--blue); color: var(--ink); }

@media (max-width: 700px) {
  #ps-chat { bottom: 16px; right: 16px; }
  #ps-chat-toggle { width: 52px; height: 52px; box-shadow: 4px 4px 0 var(--rule); }
  #ps-chat-toggle svg { width: 22px; height: 22px; }
  #ps-chat-window { bottom: 66px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
