/* Largent Solutions — site styles */

:root {
  --ink: #172231;
  --paper: #f6f7f9;
  --white: #ffffff;
  --ledger: #004aad;
  --ledger-dark: #003a88;
  --ledger-pale: #e9eff8;
  --rule: #d4dae3;
  --muted: #566173;
  --error: #a3352b;

  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--ledger); text-underline-offset: 3px; }
a:hover { color: var(--ledger-dark); }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--ink);
  color: var(--white);
  padding: 8px 14px;
  font-family: var(--sans);
  z-index: 10;
}
.skip:focus { left: 8px; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

h1, h2, h3 {
  font-family: var(--sans);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0;
}

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

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
}
.brand img { height: 50px; width: auto; }
.brand-text {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}
.site-nav {
  display: flex;
  gap: 28px;
  font-family: var(--sans);
  font-weight: 500;
  margin-left: auto;
  margin-right: 12px;
}
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav a:hover { color: var(--ledger); }
@media (max-width: 960px) { .site-nav { display: none; } }

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: var(--sans);
}
.header-phone {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.header-phone:hover { color: var(--ledger); }

.button {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 14px 22px;
  border-radius: 6px;
  border: 2px solid var(--ledger);
  background: var(--ledger);
  color: var(--white);
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--ledger-dark); border-color: var(--ledger-dark); color: var(--white); }
.button-quiet {
  background: transparent;
  color: var(--ledger);
}
.button-quiet:hover { background: var(--ledger-pale); color: var(--ledger-dark); }

@media (max-width: 560px) {
  .header-phone { display: none; }
  .brand img { height: 38px; }
  .site-header .button { padding: 11px 16px; }
}

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

.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(48px, 7vw, 88px); }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.9rem);
  max-width: 13ch;
}
.hero-lede {
  font-size: clamp(1.15rem, 1.6vw, 1.3rem);
  color: var(--muted);
  margin: 22px 0 32px;
  max-width: 34ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Three ways to get help */
.paths {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 10px;
  font-family: var(--sans);
}
.paths {
  text-align: center;
}
.paths-title {
  margin: 8px 12px 12px;
  font-weight: 600;
  font-size: 1rem;
}
.path {
  padding: 14px 16px;
  border-radius: 8px;
}
.path h2 {
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0;
  margin: 0 0 2px;
}
.path p { margin: 0; font-size: 0.95rem; line-height: 1.45; }
.path-muted { color: #6b7585; }
.path-muted h2 { color: #6b7585; font-weight: 500; }
.path-muted + .path-muted { border-top: 1px solid var(--rule); border-radius: 0; }
.path-best {
  margin-top: 8px;
  background: var(--ledger);
  color: var(--white);
  padding: 18px 16px;
}
.path-best h2 {
  font-size: 1.15rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.path-best p { color: #dfe8f7; font-size: 1rem; }
.path-check { width: 24px; height: 24px; flex: none; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero h1 { max-width: 16ch; }
}

/* ---------- Sections ---------- */

.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-white { background: var(--white); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }

.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.section-head p { color: var(--muted); margin: 14px 0 0; }
.section-head-center { text-align: center; margin-left: auto; margin-right: auto; }

/* Why section */
.why {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
}
.why { align-items: center; }
.why h3 { font-size: 1.25rem; margin-bottom: 12px; }
.why .why-solution { margin-top: 32px; }
.cost-chart {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: clamp(18px, 3vw, 30px);
}
.cost-chart figcaption {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.05rem;
  text-align: center;
  margin-bottom: 14px;
}
.cost-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.c-label { font-family: var(--sans); font-size: 19px; font-weight: 600; fill: #6b7585; }
.c-price { font-family: var(--sans); font-size: 17px; fill: #6b7585; }
.c-best { font-size: 23px; font-weight: 700; fill: #004aad; }
.c-best-price { font-size: 19px; font-weight: 600; fill: #172231; }
.c-diy { font-size: 17px; }
.c-note { font-family: var(--sans); font-size: 14px; fill: #6b7585; }
.why p { margin: 0 0 14px; }
.why ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 500;
}
.why li {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.why li:first-child { border-top: 1px solid var(--rule); }
@media (max-width: 760px) { .why { grid-template-columns: 1fr; } }

/* Expertise slider */
.slider-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.slider-arrow {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: var(--white);
  color: var(--ledger);
  cursor: pointer;
}
.slider-arrow:hover { border-color: var(--ledger); background: var(--ledger-pale); }
.slider-arrow svg { width: 20px; height: 20px; }

.slider-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
}
.slider-tabs button {
  font: inherit;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: var(--white);
  color: var(--muted);
  cursor: pointer;
}
.slider-tabs button:hover { color: var(--ink); border-color: #b9c3d1; }
.slider-tabs button[aria-selected="true"] {
  background: var(--ledger);
  border-color: var(--ledger);
  color: var(--white);
}

.slider-track {
  display: flex;
  align-items: flex-start;
  overflow-x: auto;
  overflow-y: hidden;
  transition: height 0.3s ease;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: 14px;
}
.slider-track::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: clamp(24px, 4vw, 48px);
}
.slide-art { width: min(100%, 280px); aspect-ratio: 240 / 220; height: auto; justify-self: center; }
.slide h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.slide-lede { color: var(--muted); margin: 8px 0 24px; }
.slide-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.slide-groups-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.slide h4 {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ledger);
  margin: 0 0 8px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ledger-pale);
}
.slide ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--sans);
  font-size: 0.97rem;
}
.slide li { padding: 4px 0; }

@media (max-width: 900px) {
  .slide { grid-template-columns: 1fr; align-content: start; }
  .slide-art { width: 150px; }
  .slide-groups-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .slider-arrow { display: none; }
  .slide-groups, .slide-groups-3 { grid-template-columns: 1fr; gap: 18px; }
}

/* NetSuite Next band */
.next-band {
  background: var(--ledger);
  color: var(--white);
  padding: clamp(56px, 8vw, 96px) 0;
}
.next-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.next-band h2 { font-size: clamp(2rem, 3.8vw, 2.9rem); max-width: 14ch; margin-bottom: 20px; }
.next-band p { color: #dfe8f7; margin: 0 0 16px; max-width: 52ch; }
.next-band .button-light { margin-top: 12px; }
.button-light { background: var(--white); border-color: var(--white); color: var(--ledger); }
.button-light:hover { background: #e9eff8; border-color: #e9eff8; color: var(--ledger-dark); }
.next-band :focus-visible { outline-color: var(--white); }
.next-card {
  background: var(--white);
  color: var(--ink);
  border-radius: 14px;
  padding: clamp(22px, 3vw, 34px);
}
.next-card h3 { font-size: 1.2rem; margin-bottom: 14px; }
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--sans);
}
.checklist li {
  position: relative;
  padding: 11px 0 11px 34px;
  border-top: 1px solid var(--rule);
  line-height: 1.45;
}
.checklist li:first-child { border-top: 0; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 12px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--ledger-pale) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%23004aad' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}
@media (max-width: 860px) { .next-grid { grid-template-columns: 1fr; } }

/* AI section */
.ai-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.ai-grid .section-head { margin-bottom: 20px; }
.ai-note { margin: 0 0 14px; }
.ai-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  font-family: var(--sans);
}
.ai-list li { padding: 10px 0; border-bottom: 1px solid var(--rule); }
.ai-list li:first-child { border-top: 1px solid var(--rule); }
.ai-list strong { color: var(--ledger); font-weight: 600; }
.ai-small { font-family: var(--sans); font-size: 0.9rem; color: var(--muted); margin: 0; }
.ai-diagram {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: clamp(16px, 3vw, 32px);
}
.ai-diagram svg { width: 100%; height: auto; display: block; }
.d-title { font-family: var(--sans); font-weight: 700; font-size: 19px; fill: var(--ink); }
.d-small { font-size: 16px; fill: var(--ledger); }
.d-blue { fill: var(--ledger); font-weight: 600; }
.d-sub { font-family: var(--sans); font-size: 13px; fill: var(--muted); }
.d-white { fill: #fff; }
.d-cap { font-family: var(--sans); font-size: 14px; font-weight: 500; fill: var(--ink); }
@media (max-width: 860px) { .ai-grid { grid-template-columns: 1fr; } }

/* Testimonial */
.testimonial {
  max-width: 780px;
  margin: 0 auto;
}
.testimonial blockquote {
  margin: 0;
  font-size: clamp(1.15rem, 1.7vw, 1.3rem);
  line-height: 1.7;
  border-left: 4px solid var(--ledger);
  padding-left: clamp(20px, 3vw, 36px);
}
.testimonial blockquote p { margin: 0 0 18px; }
.testimonial figcaption {
  margin-top: 22px;
  padding-left: clamp(24px, 3vw, 40px);
  font-family: var(--sans);
  font-weight: 600;
}
.testimonial figcaption span { font-weight: 400; color: var(--muted); }

/* Contact */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.contact h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.contact-intro p { color: var(--muted); margin: 14px 0 28px; max-width: 38ch; }
.contact-direct {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 500;
}
.contact-direct li { margin-bottom: 10px; }
.contact-direct a { color: var(--ink); text-decoration-color: var(--rule); }
.contact-direct a:hover { color: var(--ledger); text-decoration-color: currentColor; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

form {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: clamp(20px, 3vw, 32px);
  font-family: var(--sans);
}
.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 520px) { .field-pair { grid-template-columns: 1fr; gap: 0; } }
.field { margin-bottom: 18px; }
label {
  display: block;
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 6px;
}
label .optional { color: var(--muted); font-weight: 400; }
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 12px 14px;
}
input:focus,
textarea:focus {
  outline: none;
  border-color: var(--ledger);
  box-shadow: 0 0 0 3px var(--ledger-pale);
  background: var(--white);
}
textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
form .button { width: 100%; padding: 16px 22px; }
form .button[disabled] { opacity: 0.6; cursor: progress; }
.form-status {
  margin: 14px 0 0;
  font-size: 0.95rem;
  min-height: 1.4em;
}
.form-status.ok { color: var(--ledger-dark); font-weight: 600; }
.form-status.err { color: var(--error); }

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

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 28px 0;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--muted);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ledger); }
.site-footer .trademark {
  flex-basis: 100%;
  margin: 6px 0 0;
  font-size: 0.8rem;
  line-height: 1.5;
  max-width: 80ch;
}

/* ---------- Legal pages ---------- */

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(56px, 8vw, 96px);
}
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.legal .updated {
  font-family: var(--sans);
  color: var(--muted);
  margin: 10px 0 36px;
}
.legal h2 { font-size: 1.3rem; margin: 40px 0 12px; }
.legal h3 { font-size: 1.05rem; margin: 24px 0 8px; }
.legal p, .legal ul { margin: 0 0 14px; }
.legal ul { padding-left: 1.3em; }
.legal li { margin-bottom: 6px; }
.legal .caps { font-size: 0.95rem; }
.legal address { font-style: normal; font-family: var(--sans); line-height: 1.7; }

/* ---------- 404 ---------- */

.notfound { text-align: left; max-width: 640px; margin: 0 auto; padding: 120px var(--gutter); }
.notfound h1 { font-size: 2.4rem; margin-bottom: 14px; }
.notfound p { color: var(--muted); margin: 0 0 28px; }
