/* SOTHEND LLC — strict business site for a payment company.
   Source Serif 4 (headings) + Public Sans (text) · light ivory/white with navy · rectangular buttons, hairline rules.
   Brand motif: the S mark and its ribbon edges continued as hairlines inside the navy hero panel. */

:root {
  --navy: #102F55;
  --navy-deep: #0B2441;
  --navy-hover: #234E7A;
  --ivory: #FAF8F2;
  --white: #FFFFFF;
  --ink: #172D45;
  --muted: #52657B;
  --line: #D8E0E9;
  --line-strong: #B9C5D3;
  --on-navy: #FFFFFF;
  --on-navy-soft: #C3CEDB;
  --on-navy-line: rgba(216, 224, 233, .18);
  --error: #A3262A;
  --success: #1E5E3E;

  --font-head: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", Arial, Helvetica, sans-serif;

  --fs-body: 1.0625rem;
  --fs-small: .875rem;
  --fs-h1: clamp(40px, 5vw, 72px);
  --fs-h2: clamp(30px, 3.4vw, 48px);
  --fs-h3: clamp(20px, 1.6vw, 23px);

  --pad-x: clamp(20px, 5.5vw, 80px);
  --section-py: clamp(72px, 10vw, 144px);
  --header-h: 80px;
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  max-width: 1440px;
  margin: 0 auto;
  overflow-x: hidden;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.12; letter-spacing: -.012em; margin: 0; color: var(--navy); }
h3 { font-family: var(--font-body); font-weight: 600; letter-spacing: 0; line-height: 1.3; }
p { margin: 0; }
address { font-style: normal; }
button { font: inherit; }

:focus-visible { outline: 3px solid var(--navy-hover); outline-offset: 3px; }
.hero-panel :focus-visible, .site-footer :focus-visible { outline-color: var(--white); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--navy); color: var(--white); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

.wrap { padding: 0 var(--pad-x); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: var(--ivory);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background-color .3s ease;
}
.site-header.scrolled { border-color: var(--line); background: rgba(250, 248, 242, .96); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 32px; padding: 0 var(--pad-x); }
.brand { display: block; flex: none; }
.brand img { height: 28px; width: auto; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 36px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 32px; }
.main-nav ul a {
  position: relative; display: block; padding: 6px 0;
  font-size: .9375rem; font-weight: 500; text-decoration: none; color: var(--muted);
  transition: color .2s ease;
}
.main-nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.main-nav ul a:hover, .main-nav ul a.active { color: var(--navy); }
.main-nav ul a:hover::after, .main-nav ul a.active::after { transform: scaleX(1); }
.nav-tel, .nav-mail { font-size: .9375rem; font-weight: 600; color: var(--navy); text-decoration: none; white-space: nowrap; }
.nav-mail { display: none; }
.nav-tel { padding-left: 36px; border-left: 1px solid var(--line); }
.nav-tel:hover, .nav-mail:hover { text-decoration: underline; text-underline-offset: 4px; }

.menu-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; padding: 0;
  background: none; border: 1px solid var(--line-strong); border-radius: var(--radius); color: var(--navy); cursor: pointer;
}
.menu-bars { position: relative; display: block; width: 20px; height: 10px; margin: 0 auto; }
.menu-bars span { position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-bars span:first-child { top: 0; }
.menu-bars span:last-child { top: 8px; }
.menu-toggle[aria-expanded="true"] .menu-bars span:first-child { top: 4px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars span:last-child { top: 4px; transform: rotate(-45deg); }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  border: 1px solid transparent; border-radius: var(--radius); cursor: pointer;
  font-family: var(--font-body); font-size: 1rem; font-weight: 600; text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--navy-hover); }
.btn-dark:disabled { background: #8A9AAD; cursor: not-allowed; }

.link-line {
  font-weight: 600; color: var(--navy); text-decoration: none; padding: 4px 0;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  transition: background-size .3s var(--ease);
}
.link-line:hover { background-size: 0 1px; background-position: right bottom; }

/* ---------- Labels ---------- */
.label {
  display: flex; align-items: baseline; gap: 14px; margin-bottom: 24px;
  font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.num { font-family: var(--font-head); font-size: 1rem; letter-spacing: 0; color: var(--navy); padding-right: 14px; border-right: 1px solid var(--line-strong); }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 7fr 5fr; gap: clamp(40px, 6vw, 96px); align-items: stretch;
  padding: clamp(56px, 8vw, 120px) var(--pad-x) var(--section-py);
}
.hero-text { align-self: center; max-width: 720px; }
.eyebrow { margin-bottom: 28px; font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.eyebrow span { margin: 0 6px; }
.hero h1 { font-size: var(--fs-h1); line-height: 1.06; letter-spacing: -.02em; }
.hero-lead { max-width: 600px; margin-top: 32px; font-size: clamp(17px, 1.35vw, 19px); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 36px; margin-top: 44px; }

.hero-panel {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  min-height: 520px; padding: clamp(32px, 3.6vw, 52px);
  background: var(--navy); color: var(--on-navy); border-radius: var(--radius);
}
/* the lines share the mark's viewBox and sit exactly over it, so they extend its ribbon edges */
.panel-lines { position: absolute; left: 50%; top: 50%; width: var(--mark-w); height: auto; transform: translate(-50%, -50%); }
.panel-lines line { stroke: var(--on-navy-line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.hero-panel { --mark-w: clamp(120px, 11vw, 160px); }
.panel-mark { position: relative; width: var(--mark-w); height: auto; }

/* ---------- About ---------- */
.about { padding: var(--section-py) 0; background: var(--white); }
.about-head h2 { max-width: 860px; font-size: var(--fs-h2); }
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(32px, 4vw, 64px); margin-top: clamp(48px, 6vw, 88px); }
.about-item { padding-top: 28px; border-top: 2px solid var(--navy); }
.about-item h3 { font-size: var(--fs-h3); margin-bottom: 16px; }
.about-item p { color: var(--muted); }

/* ---------- Company ---------- */
.company { padding: var(--section-py) 0; background: var(--ivory); }
.company-grid { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.section-head h2, .contact-head h2 { font-size: var(--fs-h2); }
.section-head > p:last-child { max-width: 360px; margin-top: 20px; color: var(--muted); }

.register { margin: 0; border-top: 2px solid var(--navy); }
.register-row {
  display: grid; grid-template-columns: minmax(180px, 2fr) 4fr; gap: 6px 32px;
  padding: 24px 0; border-bottom: 1px solid var(--line-strong);
}
.register-row dt { font-size: var(--fs-small); font-weight: 500; color: var(--muted); padding-top: 3px; }
.register-row dd { margin: 0; font-size: 1.125rem; font-weight: 500; color: var(--ink); }

.copy {
  display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 4px 0;
  background: none; border: 0; cursor: pointer;
  font-size: var(--fs-small); font-weight: 600; color: var(--muted);
}
.copy::before {
  content: ""; width: 13px; height: 13px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5.5 1.5h9v9h-9zM1.5 5.5v9h9' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5.5 1.5h9v9h-9zM1.5 5.5v9h9' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.copy:hover { color: var(--navy); }
.copy.done { color: var(--success); }

/* ---------- Contact ---------- */
.contact { padding: var(--section-py) 0; background: var(--white); }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px); margin-top: clamp(40px, 5vw, 72px); }
.contact-card { padding-top: 28px; border-top: 2px solid var(--navy); }
.contact-key { display: block; margin-bottom: 12px; font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact-value {
  display: inline-block; font-family: var(--font-head); font-weight: 600;
  font-size: clamp(24px, 2.3vw, 32px); line-height: 1.2; color: var(--navy); text-decoration: none; white-space: nowrap;
  background: linear-gradient(var(--navy), var(--navy)) left bottom / 0 1px no-repeat;
  transition: background-size .35s var(--ease);
}
.contact-value:hover { background-size: 100% 1px; }
.contact-addr { max-width: 320px; font-size: 1.0625rem; line-height: 1.6; color: var(--ink); }

.form-block {
  display: grid; grid-template-columns: 4fr 7fr; gap: clamp(32px, 6vw, 96px);
  margin-top: clamp(64px, 8vw, 112px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line-strong);
}
.form-intro h3 { font-family: var(--font-head); font-weight: 600; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.2; margin-bottom: 14px; }
.form-intro p { max-width: 320px; color: var(--muted); }
.contact-form { display: grid; gap: 22px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field label { display: block; margin-bottom: 8px; font-size: var(--fs-small); font-weight: 600; color: var(--ink); }
.field input, .field textarea {
  width: 100%; padding: 13px 14px;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--ivory);
  font: inherit; font-size: 1rem; color: var(--ink);
  transition: border-color .2s ease, background-color .2s ease;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus, .field textarea:focus { outline: 2px solid var(--navy); outline-offset: 0; border-color: var(--navy); background: var(--white); }
.field [aria-invalid="true"] { border-color: var(--error); box-shadow: inset 3px 0 0 var(--error); }
.turnstile-wrap { min-height: 30px; }
.form-status { font-size: var(--fs-small); color: var(--muted); }
.form-status a { color: var(--navy); font-weight: 600; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.form-note { flex: 1 1 240px; font-size: var(--fs-small); color: var(--muted); }
.form-note a { color: var(--navy); }
.form-msg { padding: 16px 18px; font-size: .9375rem; border-left: 3px solid; }
.form-msg strong { display: block; margin-bottom: 2px; }
.form-success { border-color: var(--success); background: #EEF5F0; color: var(--success); }
.form-error { border-color: var(--error); background: #FBEFEF; color: var(--error); }
.form-error a { color: inherit; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--on-navy-soft); font-size: var(--fs-small); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px 48px; padding-top: 52px; padding-bottom: 40px; }
.footer-brand { display: flex; align-items: center; gap: 18px; }
.footer-brand img { width: 40px; height: auto; flex: none; }
.footer-brand strong { display: block; font-family: var(--font-head); font-size: 1.125rem; font-weight: 600; color: var(--white); }
.footer-contacts { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 32px; }
.footer-tel, .footer-mail { font-size: 1rem; font-weight: 600; color: var(--white); text-decoration: none; white-space: nowrap; }
.footer-tel:hover, .footer-mail:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid var(--on-navy-line); }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { text-decoration: none; }
.footer-legal a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Secondary pages ---------- */
.page-hero { padding: clamp(56px, 7vw, 104px) var(--pad-x) clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(36px, 4.6vw, 62px); }
.page-hero p:last-child { max-width: 640px; margin-top: 20px; color: var(--muted); }
.legal { padding: clamp(48px, 6vw, 88px) var(--pad-x) var(--section-py); background: var(--white); }
.legal-body { max-width: 760px; }
.legal-body h2 { margin: 44px 0 14px; font-size: clamp(22px, 2vw, 28px); }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body ul { margin: 0 0 14px; color: var(--ink); }
.legal-body ul { padding-left: 22px; }
.legal-body li { margin-bottom: 6px; }
.legal-body a { color: var(--navy); font-weight: 600; text-underline-offset: 3px; }

.notfound {
  min-height: calc(100vh - var(--header-h) - 150px);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: var(--section-py) var(--pad-x);
}
.notfound-mark { width: 96px; margin-bottom: 36px; }
.notfound-mark path { fill: none; stroke: var(--muted); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.notfound-mark .ribbon-solid { fill: var(--navy); stroke: none; }
.notfound .eyebrow { margin-bottom: 16px; }
.notfound h1 { font-size: clamp(36px, 5vw, 68px); max-width: 820px; }
.notfound p { max-width: 520px; margin: 22px 0 36px; color: var(--muted); }

/* ---------- Reveal ---------- */
.motion .reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.motion .reveal.in { opacity: 1; transform: none; }
.motion .reveal-stagger > * { opacity: 0; transform: translateY(40px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.motion .reveal-stagger.in > * { opacity: 1; transform: none; }
.motion .reveal-stagger.in > *:nth-child(2) { transition-delay: .12s; }
.motion .reveal-stagger.in > *:nth-child(3) { transition-delay: .24s; }
.motion .hero .reveal:nth-child(2) { transition-delay: .08s; }
.motion .hero .reveal:nth-child(3) { transition-delay: .16s; }
.motion .hero .reveal:nth-child(4) { transition-delay: .24s; }
.motion .hero-panel.reveal { transition-delay: .2s; }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; }
  .hero-panel { min-height: 280px; }
    .company-grid, .form-block { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-item { display: grid; grid-template-columns: 2fr 3fr; gap: 12px 40px; }
  .contact-cards { grid-template-columns: 1fr 1fr; }
  .contact-card:last-child { grid-column: 1 / -1; }
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .brand img { height: 22px; }
  .menu-toggle { display: block; }
  .main-nav {
    position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 16px var(--pad-x) 40px; background: var(--ivory); border-top: 1px solid var(--line);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
  }
  .main-nav.open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s ease, transform .25s ease; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a { padding: 18px 0; font-family: var(--font-head); font-size: 1.625rem; font-weight: 600; color: var(--navy); border-bottom: 1px solid var(--line); }
  .main-nav ul a::after { display: none; }
  .nav-tel { align-self: flex-start; margin-top: 32px; padding-left: 0; border-left: 0; font-size: 1.0625rem; }
  .nav-mail { display: block; align-self: flex-start; margin-top: 14px; font-size: 1.0625rem; }
  .main-nav-simple { position: static; visibility: visible; opacity: 1; transform: none; padding: 0; background: none; border: 0; flex-direction: row; }
  .main-nav-simple .nav-tel { margin-top: 0; font-size: .9375rem; }

  .hero { padding-top: 40px; gap: 48px; }
  .hero-panel { min-height: 200px; }
  .hero-panel { --mark-w: 88px; }

  .about-item { display: block; }
  .register-row { grid-template-columns: 1fr; gap: 4px; padding: 18px 0; }
  .contact-cards { grid-template-columns: 1fr; gap: 36px; }
  .contact-value { white-space: normal; overflow-wrap: anywhere; }
  .field-row { grid-template-columns: 1fr; }

  .footer-grid { flex-direction: column; align-items: flex-start; }
  .footer-contacts { flex-direction: column; gap: 10px; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
}
