/* Wexomail styles */

:root {
  --paper: #f6f3ec;
  --paper-2: #efe9dd;
  --ink: #1c1b22;
  --ink-soft: #4a4954;
  --ink-faint: #797784;
  --line: #d9d2c4;
  --accent: #c8503a;
  --accent-dark: #a83f2c;
  --pine: #1f4d43;
  --pine-soft: #2c6356;
  --white: #fffdf8;
  --ok: #2f7d5e;
  --warn: #b4632a;
  --err: #b3392a;
  --radius: 10px;
  --radius-lg: 18px;
  --shadow: 0 1px 2px rgba(28, 27, 34, .06), 0 16px 40px -22px rgba(28, 27, 34, .35);
  --maxw: 1140px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 560;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 .4em;
  color: var(--ink);
}

p { margin: 0 0 1rem; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.muted { color: var(--ink-soft); }
.tiny { font-size: 13px; }
.center { text-align: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .08s ease, background .15s ease, box-shadow .15s ease, color .15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 18px -10px rgba(200,80,58,.9); }
.btn-primary:hover { background: var(--accent-dark); }

.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #34323d; }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--white); border-color: var(--ink-faint); }

.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246,243,236,.82);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 28px; height: 70px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 34px; height: 34px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: var(--ink); color: var(--paper);
  border-radius: 9px;
  font-family: var(--serif); font-size: 20px; font-weight: 600;
  transform: rotate(-4deg);
}
.brand .name { font-family: var(--serif); font-size: 21px; color: var(--ink); letter-spacing: -.01em; }
.brand .name b { color: var(--accent); font-weight: 560; }

.nav { display: flex; align-items: center; gap: 26px; margin-left: 8px; }
.nav a { color: var(--ink-soft); font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--ink); text-decoration: none; }

.head-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.head-actions a.link { color: var(--ink); font-weight: 600; font-size: 15px; }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; width: 42px; height: 38px; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--ink); position: relative; margin: 0 auto;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---------- hero ---------- */
.hero { padding: 76px 0 40px; position: relative; overflow: hidden; }
.hero .grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--pine);
  background: rgba(31,77,67,.08);
  border: 1px solid rgba(31,77,67,.16);
  padding: 6px 12px; border-radius: 999px;
  margin-bottom: 22px;
}
.eyebrow .dot { width: 7px; height: 7px; background: var(--pine); border-radius: 50%; }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); margin-bottom: .35em; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lead { font-size: 1.22rem; color: var(--ink-soft); max-width: 30ch; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--ink-faint); }
.hero-note b { color: var(--ink); font-weight: 600; }

/* product mock */
.mock {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: rotate(.6deg);
}
.mock .bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.mock .bar i { width: 11px; height: 11px; border-radius: 50%; background: #cdbfa6; display: inline-block; }
.mock .bar i:nth-child(2){ background:#d9c9a8; } .mock .bar i:nth-child(3){ background:#e3d6b8; }
.mock .bar .addr { margin-left: 10px; font-size: 12px; color: var(--ink-faint); font-family: var(--sans); }
.mock .body { display: grid; grid-template-columns: 88px 1fr; min-height: 280px; }
.mock .rail { border-right: 1px solid var(--line); padding: 16px 12px; background: var(--paper); }
.mock .rail .b { height: 9px; border-radius: 4px; background: var(--line); margin-bottom: 12px; }
.mock .rail .b.accent { background: var(--accent); width: 70%; }
.mock .list { padding: 8px 0; }
.mock .row { padding: 14px 18px; border-bottom: 1px solid var(--paper-2); display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; }
.mock .row .av { width: 34px; height: 34px; border-radius: 50%; background: var(--pine-soft); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 600; font-family: var(--sans); }
.mock .row .av.b2 { background: var(--accent); } .mock .row .av.b3 { background: #6b6a76; }
.mock .row .t .n { font-size: 13px; font-weight: 600; }
.mock .row .t .s { font-size: 12px; color: var(--ink-faint); }
.mock .row .time { font-size: 11px; color: var(--ink-faint); }
.mock .row.unread { background: rgba(200,80,58,.05); }
.mock .row.unread .n::after { content:""; display:inline-block; width:6px; height:6px; background:var(--accent); border-radius:50%; margin-left:6px; vertical-align:middle; }

/* trusted strip */
.logos { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-2); }
.logos .wrap { display: flex; align-items: center; gap: 40px; padding: 22px 24px; flex-wrap: wrap; }
.logos .label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
.logos .row { display: flex; gap: 36px; flex-wrap: wrap; align-items: center; opacity: .72; }
.logos .row span { font-family: var(--serif); font-size: 19px; color: var(--ink-soft); font-weight: 560; }

/* ---------- sections ---------- */
section.block { padding: 88px 0; }
.section-head { max-width: 58ch; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.section-head p { font-size: 1.1rem; color: var(--ink-soft); }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.feature { background: var(--paper); padding: 34px 30px; }
.feature .ico { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: var(--ink); color: var(--paper); margin-bottom: 18px; }
.feature h3 { font-size: 1.3rem; }
.feature p { color: var(--ink-soft); font-size: 15.5px; margin-bottom: 0; }

/* split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split + .split { margin-top: 96px; }
.split.rev .text { order: 2; }
.split ul.check { list-style: none; padding: 0; margin: 22px 0 0; }
.split ul.check li { position: relative; padding-left: 30px; margin-bottom: 13px; color: var(--ink-soft); }
.split ul.check li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--pine); 
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23f6f3ec' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M4 8.5l2.5 2.5L12 5'/%3E%3C/svg%3E");
}
.panel {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 28px;
}
.panel.dark { background: var(--ink); color: var(--paper); border-color: #2c2b34; }
.panel.dark .stat { border-color: #34323d; }

.statgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.stat { padding: 20px; border-bottom: 1px solid var(--line); }
.stat:nth-child(odd){ border-right: 1px solid var(--line); }
.stat:nth-last-child(-n+2){ border-bottom: none; }
.stat .num { font-family: var(--serif); font-size: 2.1rem; line-height: 1; color: var(--accent); }
.stat .lbl { font-size: 13.5px; color: var(--ink-soft); margin-top: 8px; }
.panel.dark .stat .lbl { color: #b7b4be; }

/* pricing */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.price {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 28px; display: flex; flex-direction: column;
}
.price.featured { border-color: var(--ink); box-shadow: var(--shadow); position: relative; }
.price.featured .tag { position: absolute; top: -12px; left: 28px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .04em; padding: 5px 12px; border-radius: 999px; }
.price h3 { font-size: 1.25rem; margin-bottom: 4px; }
.price .who { color: var(--ink-faint); font-size: 14px; margin-bottom: 18px; }
.price .amt { font-family: var(--serif); font-size: 2.6rem; line-height: 1; }
.price .amt span { font-family: var(--sans); font-size: 15px; color: var(--ink-faint); font-weight: 500; }
.price ul { list-style: none; padding: 0; margin: 22px 0 26px; flex: 1; }
.price ul li { padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 15px; color: var(--ink-soft); }
.price ul li:last-child { border-bottom: none; }

/* quote */
.quote { background: var(--pine); color: #f3efe6; border-radius: var(--radius-lg); padding: 64px; text-align: center; }
.quote blockquote { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.32; margin: 0 auto 26px; max-width: 26ch; }
.quote .by { font-size: 15px; opacity: .85; }

/* cta band */
.cta-band { background: var(--ink); color: var(--paper); border-radius: var(--radius-lg); padding: 56px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: var(--paper); margin: 0; max-width: 20ch; }
.cta-band p { color: #b7b4be; margin: 8px 0 0; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding: 60px 0 36px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.foot-grid h5 { font-family: var(--sans); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 16px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: 10px; }
.foot-grid a { color: var(--ink-soft); font-size: 15px; }
.foot-grid a:hover { color: var(--ink); }
.foot-blurb { color: var(--ink-soft); font-size: 15px; max-width: 34ch; margin-top: 16px; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.foot-bottom .tiny { color: var(--ink-faint); }

/* ---------- auth pages ---------- */
.auth-page { min-height: calc(100vh - 71px); display: grid; grid-template-columns: 1.05fr .95fr; }
.auth-aside {
  background: var(--ink); color: var(--paper);
  padding: 56px; display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.auth-aside::after {
  content: ""; position: absolute; right: -120px; bottom: -120px; width: 340px; height: 340px;
  border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(200,80,58,.5), transparent 70%);
}
.auth-aside .brand .name { color: var(--paper); }
.auth-aside .pitch { max-width: 26ch; }
.auth-aside .pitch h2 { color: var(--paper); font-size: 2.1rem; }
.auth-aside .pitch p { color: #c3c0c9; }
.auth-aside .testi { border-left: 2px solid var(--accent); padding-left: 18px; }
.auth-aside .testi p { font-family: var(--serif); font-size: 1.15rem; color: #ece9e1; font-style: italic; }
.auth-aside .testi .who { font-size: 14px; color: #a9a6b0; font-style: normal; }

.auth-main { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-card { width: 100%; max-width: 410px; }
.auth-card > .head { margin-bottom: 28px; }
.auth-card h1 { font-size: 2rem; margin-bottom: 6px; }
.auth-card .sub { color: var(--ink-soft); }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; color: var(--ink); }
.field .hint { font-size: 12.5px; color: var(--ink-faint); font-weight: 400; }
.input, .tel-input input {
  width: 100%; font-family: var(--sans); font-size: 16px; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 13px 14px; transition: border .15s, box-shadow .15s;
}
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(200,80,58,.14); }
.input::placeholder { color: #a8a5af; }

.input-wrap { position: relative; }
.input-wrap .toggle-pw {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--ink-faint); font-size: 13px; font-weight: 600; padding: 6px 10px;
}

.tel-input { display: flex; gap: 8px; }
.tel-input .cc {
  flex: 0 0 92px; font-size: 16px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 10px; color: var(--ink);
}
.tel-input input { flex: 1; }

.row-between { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.check-inline { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--ink-soft); }
.check-inline input { width: 16px; height: 16px; accent-color: var(--accent); }

.divider { display: flex; align-items: center; gap: 14px; color: var(--ink-faint); font-size: 13px; margin: 22px 0; }
.divider::before, .divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }

.social-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.btn-social { background: var(--white); border: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.btn-social:hover { background: var(--paper-2); }

.alt-line { text-align: center; margin-top: 22px; font-size: 15px; color: var(--ink-soft); }

/* form messages */
.form-msg { display: none; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--radius); font-size: 14px; margin-bottom: 18px; line-height: 1.45; }
.form-msg.show { display: flex; }
.form-msg.err { background: rgba(179,57,42,.08); border: 1px solid rgba(179,57,42,.28); color: #8c2c20; }
.form-msg.ok { background: rgba(47,125,94,.1); border: 1px solid rgba(47,125,94,.3); color: #1f5a42; }
.form-msg.info { background: rgba(31,77,67,.08); border: 1px solid rgba(31,77,67,.22); color: #244a42; }
.form-msg .ic { flex: 0 0 auto; margin-top: 1px; }

.field-error { color: var(--err); font-size: 12.5px; margin-top: 6px; display: none; }
.field.invalid .input { border-color: var(--err); }
.field.invalid .field-error { display: block; }

/* stepper */
.steps { display: flex; align-items: center; gap: 0; margin-bottom: 26px; }
.steps .s { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--ink-faint); font-weight: 600; }
.steps .s .n { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; font-size: 13px; background: var(--white); }
.steps .s.active .n { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.steps .s.done .n { background: var(--pine); border-color: var(--pine); color: #fff; }
.steps .s.active { color: var(--ink); }
.steps .bar { flex: 1; height: 1.5px; background: var(--line); margin: 0 12px; }
.steps .bar.done { background: var(--pine); }

.step-panel { display: none; }
.step-panel.active { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* OTP boxes */
.otp { display: flex; gap: 10px; margin: 6px 0 4px; }
.otp input {
  width: 100%; aspect-ratio: 1/1; text-align: center; font-size: 22px; font-weight: 600;
  font-family: var(--serif); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
}
.otp input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(200,80,58,.14); }
.otp.shake { animation: shake .4s; }
@keyframes shake { 0%,100%{transform:none} 20%,60%{transform:translateX(-6px)} 40%,80%{transform:translateX(6px)} }

.resend { font-size: 14px; color: var(--ink-soft); margin-top: 16px; }
.resend button { background: none; border: none; color: var(--accent-dark); font-weight: 600; cursor: pointer; font-size: 14px; padding: 0; }
.resend button[disabled] { color: var(--ink-faint); cursor: not-allowed; }
.resend .count { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }

.back-step { background: none; border: none; color: var(--ink-soft); font-size: 14px; font-weight: 600; cursor: pointer; padding: 8px 0; margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; }
.back-step:hover { color: var(--ink); }

/* spinner */
.spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .6s linear infinite; }
.btn-ghost .spinner, .btn-social .spinner { border-color: rgba(28,27,34,.25); border-top-color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }

.legal { font-size: 12.5px; color: var(--ink-faint); margin-top: 22px; text-align: center; line-height: 1.5; }
.legal a { color: var(--ink-soft); text-decoration: underline; }

/* simple page (404 / legal) */
.simple { padding: 100px 0; text-align: center; }
.simple h1 { font-size: clamp(3rem, 10vw, 6rem); color: var(--accent); }
.simple p { font-size: 1.15rem; color: var(--ink-soft); max-width: 44ch; margin: 0 auto 26px; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .hero .grid { grid-template-columns: 1fr; gap: 40px; }
  .hero .mock { max-width: 460px; }
  .features { grid-template-columns: 1fr; }
  .split, .split.rev .text { grid-template-columns: 1fr; order: 0; }
  .prices { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .statgrid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav, .head-actions .link { display: none; }
  .nav-toggle { display: block; }
  .site-head .wrap { gap: 14px; }
  .nav.open {
    display: flex; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 18px 24px; gap: 16px;
  }
  .quote, .cta-band, .auth-aside, .quote { padding: 36px 26px; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  section.block { padding: 60px 0; }
}
@media (max-width: 420px) {
  .foot-grid { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}
