* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}
::selection { background: var(--cream); color: var(--on-cream); }
a { text-underline-offset: .2em; }
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--brown);
  outline-offset: 4px;
  border-radius: 6px;
}
.skip-link {
  position: fixed;
  left: 18px;
  top: 12px;
  z-index: 100;
  transform: translateY(-160%);
  background: var(--surface);
  color: var(--brown);
  padding: 10px 14px;
  border-radius: 10px;
  box-shadow: 0 8px 24px var(--shadow-md);
}
.skip-link:focus { transform: none; }
.wrap { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(760px, calc(100% - 40px)); margin-inline: auto; }

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brown);
  font-size: 20px;
  font-weight: 750;
  text-decoration: none;
}
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.links { display: flex; align-items: center; gap: 22px; }
.links a { color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; }
.links a:hover { color: var(--brown); }
.login-btn,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 19px;
  border-radius: 12px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.login-btn,
.button.primary { background: var(--brand-solid); color: var(--on-brand); }
.button.secondary { color: var(--brown); border: 1px solid var(--cream-bd); background: var(--surface); }
.button:hover { filter: brightness(1.04); }

main { overflow: clip; }
.hero {
  min-height: min(780px, calc(100svh - 68px));
  display: grid;
  grid-template-columns: minmax(0, .93fr) minmax(480px, 1.07fr);
  align-items: center;
  gap: clamp(42px, 7vw, 90px);
  padding-block: clamp(62px, 10vw, 112px);
}
.hero-copy { max-width: 650px; }
.hero h1 {
  max-width: 12ch;
  margin: 0;
  color: var(--brown);
  font-size: clamp(42px, 6.2vw, 76px);
  line-height: .98;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.hero-lead {
  max-width: 61ch;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.55;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin: 18px 0 0; color: var(--muted); font-size: 14px; }

.hero-proof {
  position: relative;
  min-height: 600px;
  isolation: isolate;
}
.hero-proof::before {
  content: "";
  position: absolute;
  inset: 7% 0 12% 8%;
  z-index: -1;
  border-radius: 48% 52% 42% 58% / 50% 40% 60% 50%;
  background: var(--cream);
  opacity: .7;
}
.phone {
  position: absolute;
  overflow: hidden;
  width: 230px;
  border: 6px solid var(--phone-frame);
  border-radius: 26px;
  background: var(--phone-frame);
  box-shadow: 0 26px 58px var(--shadow-lg);
}
.phone img { display: block; width: 100%; height: auto; }
.phone.primary { right: 18px; top: 0; transform: rotate(2.5deg); }
.phone.secondary { left: 24px; bottom: 0; transform: rotate(-3deg); }
.proof-strip {
  position: absolute;
  left: 155px;
  top: 230px;
  width: min(310px, 56%);
  padding: 20px;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: 0 18px 44px var(--shadow-md);
}
.proof-strip strong { display: block; color: var(--brown); font-size: 16px; margin-bottom: 12px; }
.proof-row { display: grid; grid-template-columns: 58px 1fr; gap: 13px; padding: 10px 0; border-top: 1px solid var(--border); }
.proof-row span:first-child { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.proof-row span:last-child { color: var(--text); font-size: 14px; font-weight: 650; }

.section { padding-block: clamp(74px, 10vw, 120px); scroll-margin-top: 78px; }
.section.surface { background: var(--surface); }
h2 {
  max-width: 19ch;
  margin: 0;
  color: var(--brown);
  font-size: clamp(31px, 4.8vw, 52px);
  line-height: 1.08;
  letter-spacing: -.028em;
  text-wrap: balance;
}
.section-intro { max-width: 66ch; margin: 20px 0 0; color: var(--muted); font-size: 18px; }

.friction-list { margin: 48px 0 0; border-top: 1px solid var(--border); }
.friction-row {
  display: grid;
  grid-template-columns: minmax(180px, .6fr) minmax(0, 1.4fr);
  gap: clamp(28px, 7vw, 90px);
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.friction-row dt { color: var(--brown); font-size: 18px; font-weight: 750; }
.friction-row dd { margin: 0; color: var(--muted); max-width: 68ch; }

.workflow {
  counter-reset: flow;
  list-style: none;
  margin: 54px 0 0;
  padding: 0;
  border-top: 1px solid var(--cream-bd);
}
.workflow li {
  counter-increment: flow;
  display: grid;
  grid-template-columns: 72px minmax(180px, .55fr) minmax(0, 1.45fr);
  gap: 24px;
  align-items: start;
  padding: 30px 0;
  border-bottom: 1px solid var(--cream-bd);
}
.workflow li::before {
  content: counter(flow, decimal-leading-zero);
  color: var(--brown);
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.workflow h3 { margin: 0; color: var(--text); font-size: 20px; }
.workflow p { margin: 0; color: var(--muted); max-width: 64ch; }

.org-split,
.surface-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 50px;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.org-panel,
.surface-panel { padding: clamp(28px, 5vw, 50px); background: var(--bg); }
.org-panel + .org-panel,
.surface-panel + .surface-panel { border-left: 1px solid var(--border); }
.org-panel h3,
.surface-panel h3 { margin: 0 0 14px; color: var(--brown); font-size: 25px; }
.org-panel p,
.surface-panel p { margin: 0; color: var(--muted); }
.clean-list { list-style: none; margin: 24px 0 0; padding: 0; }
.clean-list li { position: relative; margin: 12px 0; padding-left: 25px; color: var(--text); }
.clean-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 10px;
  height: 2px;
  background: var(--brown);
}
.switch-note {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--text);
  font-weight: 700;
}
.switch-note svg { width: 28px; height: 28px; color: var(--brown); flex: 0 0 auto; }

.surface-panel { min-height: 320px; display: flex; flex-direction: column; }
.surface-panel .surface-link { margin-top: auto; padding-top: 30px; color: var(--brown); font-weight: 750; }
.surface-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-bottom: 26px;
  color: var(--brown);
  font-size: 14px;
  font-weight: 800;
}
.surface-label svg { width: 23px; height: 23px; }

.trust-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(42px, 8vw, 100px);
  align-items: start;
}
.trust-copy p { color: var(--muted); max-width: 54ch; }
.trust-points { border-top: 1px solid var(--border); }
.trust-point { padding: 22px 0; border-bottom: 1px solid var(--border); }
.trust-point strong { display: block; color: var(--text); margin-bottom: 5px; }
.trust-point span { color: var(--muted); }
.text-link { color: var(--brown); font-weight: 700; }

.faq { margin-top: 42px; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 24px 48px 24px 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 750;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 19px;
  color: var(--brown);
  font-size: 27px;
  font-weight: 400;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { max-width: 68ch; margin: -4px 0 25px; color: var(--muted); }

.closing {
  position: relative;
  overflow: hidden;
  margin-block: clamp(70px, 10vw, 120px);
  padding: clamp(42px, 8vw, 78px);
  border-radius: 16px;
  background: var(--brand-solid);
  color: var(--on-brand);
}
.closing::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -80px;
  bottom: -150px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: .18;
}
.closing h2 { color: var(--on-brand); max-width: 15ch; }
.closing p { max-width: 60ch; margin: 20px 0 0; color: var(--on-brand); font-size: 18px; }
.closing .hero-actions { position: relative; z-index: 1; }
.closing .button.primary { background: var(--surface); color: var(--brown); }
.closing .button.secondary { border-color: color-mix(in srgb, var(--on-brand) 55%, transparent); background: transparent; color: var(--on-brand); }

footer { border-top: 1px solid var(--border); padding: 30px 0; color: var(--muted); font-size: 14px; }
.foot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot [role="navigation"] { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.foot a { color: var(--brown); text-decoration: none; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { text-align: center; margin-inline: auto; }
  .hero h1, .hero-lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-proof { width: min(620px, 100%); margin-inline: auto; }
  .trust-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .links, .login-btn { display: none; }
  .hero-proof { min-height: 520px; }
  .phone { width: 190px; }
  .phone.secondary { left: 0; }
  .phone.primary { right: 0; }
  .proof-strip { left: 50%; top: 205px; transform: translateX(-50%); width: min(300px, 72%); }
  .friction-row { grid-template-columns: 1fr; gap: 7px; }
  .workflow li { grid-template-columns: 48px 1fr; }
  .workflow p { grid-column: 2; }
  .org-split, .surface-split { grid-template-columns: 1fr; }
  .org-panel + .org-panel, .surface-panel + .surface-panel { border-left: 0; border-top: 1px solid var(--border); }
}
@media (max-width: 430px) {
  .wrap, .narrow { width: min(100% - 28px, 1120px); }
  .hero { padding-block: 48px 70px; }
  .hero h1 { font-size: clamp(37px, 12.5vw, 52px); }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-proof { min-height: 470px; }
  .phone { width: 160px; border-width: 5px; border-radius: 21px; }
  .proof-strip { top: 180px; width: 84%; padding: 17px; }
  .proof-row { grid-template-columns: 50px 1fr; }
  .workflow li { grid-template-columns: 38px 1fr; gap: 12px; }
  .closing { border-radius: 14px; padding: 36px 22px; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: reveal-copy .7s cubic-bezier(.16,1,.3,1) both; }
  .hero-proof { animation: reveal-proof .85s .08s cubic-bezier(.16,1,.3,1) both; }
  @keyframes reveal-copy { from { opacity: .01; transform: translateY(18px); } }
  @keyframes reveal-proof { from { opacity: .01; transform: translateY(26px) scale(.985); } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  header, .hero-actions, .closing, footer { display: none; }
  body { background: #fff; color: #222; }
  .section { padding: 30px 0; }
}
