/* Atlantor website. Mobile first; brand: navy #0F1E33, gold #D4B36A. No external fonts. */

:root {
  --navy: #0f1e33;
  --navy-2: #182b47;
  --navy-3: #22385a;
  --gold: #d4b36a;
  --gold-soft: #e9d9b0;
  --gold-text: #7f6324;   /* gold dark enough for text on light backgrounds */
  --ivory: #faf8f3;
  --sand: #f2ede2;
  --white: #ffffff;
  --text: #1b2433;
  --muted: #4c5768;
  --on-navy: #f4f1ea;
  --on-navy-muted: #c3cad6;
  --line: #e2dacb;
  --line-navy: #2c4266;
  --ok: #1f6b45;
  --error: #a3322a;
  --radius: 16px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--text);
  font: 17px/1.65 var(--sans);
}

img { max-width: 100%; height: auto; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--gold-text); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--navy); }
h1 { font-size: clamp(34px, 7.5vw, 56px); margin: 0 0 18px; letter-spacing: -0.01em; }
h2 { font-size: clamp(27px, 5vw, 38px); margin: 0 0 14px; }
h3 { font-size: 20px; margin: 0 0 6px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy); color: var(--on-navy); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: var(--on-navy); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font: 600 16px/1.2 var(--sans); text-decoration: none; text-align: center;
  border: 2px solid transparent; cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-small { min-height: 40px; padding: 8px 18px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-soft); color: var(--navy); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--on-navy); }
.btn-outline-light { border-color: var(--gold); color: var(--on-navy); background: transparent; }
.btn-outline-light:hover { background: var(--gold); color: var(--navy); }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(250, 248, 243, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(140%) blur(6px);
}
.header-row { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; flex-shrink: 0; }
.brand img { width: 168px; height: auto; }
.main-nav { display: none; gap: 22px; margin-left: auto; }
.main-nav a { color: var(--text); text-decoration: none; font-size: 15px; }
.main-nav a:hover { color: var(--gold-text); }
.lang-switch { display: flex; align-items: center; gap: 6px; margin-left: auto; font-size: 15px; font-weight: 600; }
.lang-switch a { color: var(--muted); text-decoration: none; padding: 8px 4px; }
.lang-switch a[aria-current="page"] { color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
.lang-switch span { color: var(--line); }
.header-cta { display: none; }

/* Hero */
.hero { background: var(--navy); color: var(--on-navy); padding: 48px 0 56px; overflow: hidden; }
.hero h1 { color: var(--white); }
.hero-grid { display: grid; gap: 44px; }
.eyebrow {
  margin: 0 0 14px; color: var(--gold);
  font-size: 14px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
.lead { font-size: 19px; color: var(--on-navy-muted); margin: 0 0 28px; max-width: 34em; }
.audience { margin: 22px 0 0; font-size: 15px; color: var(--on-navy-muted); }

/* Phone mockup */
.phone { margin: 0 auto; width: min(100%, 330px); }
.phone-frame {
  background: #0a1524; border-radius: 38px; padding: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), inset 0 0 0 2px var(--navy-3);
}
.phone-top {
  display: flex; align-items: center; gap: 10px;
  background: var(--navy-2); color: var(--on-navy);
  border-radius: 28px 28px 0 0; padding: 14px 16px;
}
.phone-top strong { display: block; font-size: 15px; line-height: 1.2; }
.phone-top small { color: var(--gold); font-size: 12px; }
.phone-avatar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold); color: var(--navy); font: 700 16px var(--serif);
}
.chat {
  list-style: none; margin: 0; padding: 14px 12px 18px;
  background: #ece5d8; border-radius: 0 0 28px 28px;
  display: flex; flex-direction: column; gap: 8px; min-height: 460px;
}
.msg {
  max-width: 84%; padding: 8px 11px; border-radius: 12px;
  font-size: 14px; line-height: 1.4; color: #1a1a1a;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
}
.msg-customer { align-self: flex-end; background: #d9f2cf; border-bottom-right-radius: 4px; }
.msg-bot { align-self: flex-start; background: var(--white); border-bottom-left-radius: 4px; }
.chat.play .msg { animation: msg-in 0.45s ease-out both; animation-delay: calc(var(--i) * 1.35s + 0.3s); }
@keyframes msg-in {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .chat.play .msg { animation: none; }
}
.phone figcaption { text-align: center; margin-top: 12px; font-size: 13px; color: var(--on-navy-muted); }

/* Sections */
.section { padding: 64px 0; }
.section-tint { background: var(--sand); }
.section-navy { background: var(--navy); color: var(--on-navy); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy .section-lead { color: var(--on-navy-muted); }
.section-navy a:not(.btn) { color: var(--gold-soft); }
.section-lead { font-size: 18px; color: var(--muted); margin: 0 0 32px; max-width: 40em; }

.label {
  display: block; margin-bottom: 4px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}

/* Problem -> solution */
.pairs { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.pair { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pair p { margin: 0; padding: 18px 22px; }
.pair-problem { font-family: var(--serif); font-size: 20px; color: var(--navy); border-bottom: 1px solid var(--line); }
.pair-problem .label { color: var(--muted); font-family: var(--sans); }
.pair-solution { color: var(--text); }
.pair-solution .label { color: var(--gold-text); }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 30px; top: 8px; bottom: 8px; width: 2px; background: var(--gold); opacity: 0.6; }
.timeline li { position: relative; display: grid; grid-template-columns: 62px 1fr; gap: 16px; padding-bottom: 26px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline time {
  position: relative; z-index: 1; align-self: start;
  background: var(--navy); color: var(--gold);
  font: 700 14px/1 var(--sans); text-align: center;
  padding: 9px 0; border-radius: 999px;
}
.timeline h3 { margin-top: 4px; }
.timeline p { margin: 0; color: var(--muted); }

/* Cards */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3::before { content: ""; display: block; width: 28px; height: 3px; background: var(--gold); margin-bottom: 14px; border-radius: 2px; }
.card p { margin: 0; color: var(--muted); }

/* What we don't do */
.promises { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.promises li { border: 1px solid var(--line-navy); border-radius: var(--radius); padding: 22px 22px 22px 60px; position: relative; background: var(--navy-2); }
.promises li::before {
  content: ""; position: absolute; left: 22px; top: 26px; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--gold);
  background: linear-gradient(45deg, transparent 45%, var(--gold) 45%, var(--gold) 55%, transparent 55%);
}
.promises p { margin: 0; color: var(--on-navy-muted); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 22px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 52px 1fr; gap: 16px; }
.steps li::before {
  content: counter(step); grid-row: span 2;
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid var(--gold); color: var(--navy); font: 600 22px var(--serif);
}
.steps h3 { margin-top: 10px; }
.steps p { margin: 0; color: var(--muted); }

/* Pricing */
.pricing { display: grid; gap: 18px; align-items: start; }
.plan { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; }
.plan:first-child { border: 2px solid var(--gold); box-shadow: 0 14px 40px rgba(15, 30, 51, 0.08); }
.price { margin: 6px 0 8px; color: var(--navy); }
.amount { font: 600 44px/1 var(--serif); }
.period { color: var(--muted); }
.plan-team { margin: 0; font-weight: 600; color: var(--navy); }
.plan .plan-team-note { margin: 4px 0 24px; }
.price-table { width: 100%; table-layout: fixed; border-collapse: collapse; margin: 0 0 24px; font-size: 14px; overflow-wrap: break-word; hyphens: auto; }
.price-table thead td { width: 30%; }
.price-table caption { text-align: left; font: 600 18px/1.3 var(--serif); color: var(--navy); padding-bottom: 8px; }
.price-table th, .price-table td { padding: 9px 4px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.price-table thead th { font-size: 13px; color: var(--gold-text); }
.price-table tbody th { font-weight: 500; color: var(--muted); }
.price-table td { font-weight: 600; color: var(--navy); }
.price-table small { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }
.price-table .no { color: var(--error); font-size: 18px; line-height: 1; }
.extras { margin: 0 0 24px; display: grid; gap: 14px; }
.extras div { border-top: 1px solid var(--line); padding-top: 12px; }
.extras dt { font-weight: 600; color: var(--navy); }
.extras dd { margin: 2px 0 0; color: var(--muted); }
.checks { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before {
  content: ""; position: absolute; left: 4px; top: 7px; width: 12px; height: 7px;
  border-left: 2.5px solid var(--gold-text); border-bottom: 2.5px solid var(--gold-text); transform: rotate(-45deg);
}
.small { font-size: 14px; color: var(--muted); margin: 14px 0 0; }
.plan-alt { background: transparent; }
.plan-alt p { color: var(--muted); }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; position: relative;
  font: 600 18px/1.35 var(--serif); color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font: 400 26px/1 var(--sans); color: var(--gold-text);
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 20px 20px; color: var(--muted); }

/* Closing call to action + form */
.cta-grid { display: grid; gap: 36px; }
.cta-or { margin: 0 0 12px; color: var(--on-navy-muted); }
.demo-form { background: var(--ivory); color: var(--text); border-radius: var(--radius); padding: 26px 22px; }
.demo-form h3 { color: var(--navy); font-size: 24px; margin-bottom: 18px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--navy); }
.req { font-weight: 400; color: var(--muted); font-size: 14px; }
.field input, .field select, .field textarea {
  width: 100%; font: 16px/1.4 var(--sans); color: var(--text);
  padding: 12px 14px; border: 1.5px solid #c9c0ad; border-radius: 10px; background: var(--white);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); outline: 3px solid var(--gold-soft); outline-offset: 0; }
.hint { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 14px 0 0; font-weight: 600; min-height: 1.4em; }
.form-status.is-ok, .form-ok { color: var(--ok); }
.form-status.is-error, .form-error { color: var(--error); }
.form-note { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.form-note a { color: var(--navy); }
.section-navy .demo-form a:not(.btn) { color: var(--navy); }

/* Legal pages */
.doc { padding: 48px 20px 24px; }
.doc h1 { font-size: clamp(32px, 6vw, 44px); }
.doc h2 { font-size: 23px; margin: 38px 0 10px; }
.doc .updated { color: var(--muted); margin: 0 0 28px; font-size: 15px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 7px 0; }
.box { background: var(--sand); border-left: 4px solid var(--gold); border-radius: 10px; padding: 16px 20px; margin: 14px 0; }
.box p { margin: 0; }
.form-result { padding-top: 72px; padding-bottom: 72px; }
.form-result p { font-size: 18px; }

/* Footer */
.site-footer { background: var(--sand); border-top: 1px solid var(--line); padding: 48px 0 24px; margin-top: 0; font-size: 15px; }
.footer-grid { display: grid; gap: 28px; }
.footer-logo { width: 148px; margin-bottom: 8px; }
.site-footer h2 { font: 700 13px/1.4 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.site-footer p { margin: 0 0 10px; color: var(--muted); }
.site-footer .btn-outline-light { color: var(--navy); }
.site-footer .btn-outline-light:hover { color: var(--navy); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 18px; }
.footer-bottom p { margin: 0; color: var(--muted); }

/* Larger screens */
@media (min-width: 720px) {
  .wrap { padding: 0 32px; }
  .doc { padding: 64px 32px 32px; }
  .section { padding: 88px 0; }
  .pairs { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .promises { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: 3fr 2fr; }
  .plan { padding: 28px; }
  .price-table { font-size: 15px; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .demo-form { padding: 32px; }
  .brand img { width: 176px; }
}

@media (min-width: 980px) {
  .main-nav { display: flex; }
  .lang-switch { margin-left: 8px; }
  .header-cta { display: inline-flex; }
  .hero { padding: 80px 0 88px; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 56px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .promises { grid-template-columns: repeat(3, 1fr); }
  .cta-grid { grid-template-columns: 1fr 1fr; align-items: start; gap: 56px; }
}
