/* Sendrex website. One light theme by choice: white pages, soft grey panels, one deep green and one gold.
   Layout idea: centred headlines over product screens, then quiet tiles in a two-column grid. */
:root {
  color-scheme: light;
  --page: #ffffff;
  --soft: #f5f6f3;
  --ink: #14211c;
  --ink-soft: #5c6a63;
  --line: #e4e7df;
  --green: #17443a;
  --green-deep: #0f3229;
  --gold: #ffb020;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { text-wrap: balance; letter-spacing: -0.022em; line-height: 1.08; }
h1 { font-size: clamp(2.5rem, 6.4vw, 4.5rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); font-weight: 700; }
h3 { font-size: 1.45rem; font-weight: 650; line-height: 1.18; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, 0.82); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid rgba(20, 33, 28, 0.06); }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 60px; }
.brand img { width: 128px; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 0.9rem; }
.nav-links a { text-decoration: none; color: var(--ink-soft); }
.nav-links a:hover { color: var(--ink); }
.nav-links .btn { color: #fff; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 12px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; margin: 5px 0; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; border-radius: 999px; background: var(--green); color: #fff; font-weight: 600; font-size: 1rem; text-decoration: none; border: 0; cursor: pointer; transition: background 0.2s; }
.btn:hover { background: var(--green-deep); }
.btn-small { min-height: 36px; padding: 0 16px; font-size: 0.875rem; }
.btn-quiet { background: var(--soft); color: var(--green); }
.btn-quiet:hover { background: #e9ece5; }
.btn-gold { background: var(--gold); color: #3a2400; }
.btn-gold:hover { background: #ffbe45; }
.link { color: var(--green); font-weight: 600; text-decoration: none; padding: 12px 6px; }
.link:hover { text-decoration: underline; }

/* ---------- hero ---------- */
.hero { text-align: center; padding: 72px 0 0; overflow: hidden; }
.hero h1 { max-width: 15ch; margin-inline: auto; }
.lede { max-width: 40ch; margin: 22px auto 0; font-size: clamp(1.15rem, 2.1vw, 1.4rem); line-height: 1.4; color: var(--ink-soft); }
.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 20px; margin-top: 30px; }
.fine { margin-top: 14px; font-size: 0.875rem; color: var(--ink-soft); }
.phones { display: flex; align-items: flex-end; justify-content: center; gap: clamp(12px, 3vw, 36px); margin-top: 56px; }
.phone { flex: 0 1 300px; border: 9px solid #101613; border-bottom: 0; border-radius: 44px 44px 0 0; overflow: hidden; background: #101613; box-shadow: 0 30px 80px rgba(20, 33, 28, 0.18); }
.phone img { width: 100%; border-radius: 34px 34px 0 0; }
.phone-main { aspect-ratio: 540 / 900; }
.phone-side { flex-basis: 250px; aspect-ratio: 540 / 760; opacity: 0.96; }
.phone img { object-fit: cover; object-position: top; height: 100%; }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-soft { background: var(--soft); }
.section h2, .sub { text-align: center; }
.section h2 { max-width: 20ch; margin-inline: auto; }
.sub { max-width: 46ch; margin: 18px auto 0; font-size: 1.2rem; color: var(--ink-soft); }

/* ---------- feature tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
.tile { background: var(--soft); border-radius: var(--radius); padding: 36px 36px 0; overflow: hidden; display: flex; flex-direction: column; gap: 28px; min-height: 440px; }
.tile p { margin-top: 10px; color: var(--ink-soft); max-width: 38ch; }
.tile-wide { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; gap: 40px; padding: 48px 56px 0; min-height: 420px; }
.tile-wide .tile-text { flex: 1 1 0; padding-bottom: 48px; }
.tile-wide h3 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
.tile-wide p { font-size: 1.1rem; }
.tile-flip { flex-direction: row-reverse; }
.shot { align-self: center; width: min(280px, 82%); margin-top: auto; border: 7px solid #101613; border-bottom: 0; border-radius: 34px 34px 0 0; overflow: hidden; background: #101613; box-shadow: 0 18px 50px rgba(20, 33, 28, 0.14); aspect-ratio: 540 / 640; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 27px 27px 0 0; }
.tile-wide .shot { flex: 0 0 300px; align-self: flex-end; aspect-ratio: 540 / 700; }
/* The results screen is cropped to its summary, so its frame is shorter. */
.tile-wide .shot.shot-short { aspect-ratio: 540 / 452; align-self: center; border-bottom: 7px solid #101613; border-radius: 34px; margin-bottom: 48px; }
.shot-short img { border-radius: 27px; }
.tile-green { background: var(--green); color: #fff; padding-bottom: 36px; justify-content: space-between; }
.tile-green p { color: #b9d5cb; }
.pace { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; align-items: end; }
.pace li { background: rgba(255, 255, 255, 0.1); border-radius: 16px; padding: 14px 10px; text-align: center; }
.pace li:nth-child(1) { padding-top: 14px; }
.pace li:nth-child(2) { padding-top: 34px; }
.pace li:nth-child(3) { padding-top: 58px; }
.pace li:nth-child(4) { padding-top: 86px; background: var(--gold); color: #3a2400; }
.pace b { display: block; font-size: 1.5rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pace span { display: block; font-size: 0.75rem; opacity: 0.85; line-height: 1.25; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
.steps li { background: var(--page); border-radius: var(--radius); padding: 32px; }
.step-n { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px; background: var(--green); color: #fff; font-weight: 700; font-size: 1.1rem; margin-bottom: 22px; }
.steps p { margin-top: 10px; color: var(--ink-soft); }

/* ---------- promise ---------- */
.promise { background: var(--green); color: #fff; border-radius: var(--radius); padding: clamp(36px, 6vw, 72px); display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: center; }
.promise h2 { text-align: left; margin: 0; max-width: none; }
.promise p { margin-top: 18px; color: #b9d5cb; font-size: 1.15rem; max-width: 48ch; }
.promise-list { display: grid; gap: 12px; }
.promise-list li { background: rgba(255, 255, 255, 0.1); border-radius: 18px; padding: 16px 20px 16px 52px; font-weight: 600; position: relative; }
.promise-list li::before { content: ""; position: absolute; left: 20px; top: 50%; width: 18px; height: 10px; border-left: 3px solid var(--gold); border-bottom: 3px solid var(--gold); transform: translateY(-70%) rotate(-45deg); border-radius: 1px; }

/* ---------- pricing ---------- */
.seg { display: flex; width: fit-content; margin: 34px auto 0; padding: 4px; background: #e9ece5; border-radius: 999px; }
.seg-btn { border: 0; background: none; font: inherit; font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); min-height: 40px; padding: 0 18px; border-radius: 999px; cursor: pointer; }
.seg-btn.is-on { background: var(--page); color: var(--ink); box-shadow: 0 1px 3px rgba(20, 33, 28, 0.12); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 36px; align-items: stretch; }
.plan { background: var(--page); border-radius: var(--radius); padding: 34px 30px 30px; display: flex; flex-direction: column; border: 2px solid transparent; position: relative; }
.plan-pick { border-color: var(--green); }
.pick { position: absolute; top: -14px; left: 28px; background: var(--gold); color: #3a2400; font-size: 0.78rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.price { margin-top: 14px; color: var(--ink-soft); }
.price b { font-size: 2.9rem; letter-spacing: -0.03em; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.plan-for { margin-top: 10px; color: var(--ink-soft); font-size: 0.95rem; }
.plan ul { margin: 24px 0 28px; display: grid; gap: 11px; font-size: 0.97rem; }
.plan li { padding-left: 28px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 3px; top: 0.42em; width: 13px; height: 7px; border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg); }
.plan .btn { margin-top: auto; }

/* ---------- questions ---------- */
.faq { margin-top: 44px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; font-size: 1.15rem; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--ink-soft); border-bottom: 2px solid var(--ink-soft); transform: translateY(-70%) rotate(45deg); transition: transform 0.2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq p { padding: 0 44px 24px 0; color: var(--ink-soft); max-width: 62ch; }

/* ---------- closing and footer ---------- */
.closing { background: var(--soft); border-radius: var(--radius); padding: clamp(48px, 8vw, 96px) 24px; text-align: center; display: grid; justify-items: center; gap: 14px; }
.closing img { border-radius: 22px; box-shadow: 0 12px 30px rgba(20, 33, 28, 0.2); margin-bottom: 10px; }
.closing p { color: var(--ink-soft); font-size: 1.15rem; }
.closing .btn { margin-top: 14px; }
.footer { border-top: 1px solid var(--line); padding: 36px 0 44px; font-size: 0.875rem; color: var(--ink-soft); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer nav a { text-decoration: none; padding: 6px 0; }
.footer nav a:hover { color: var(--ink); }
.legal { margin-top: 22px; font-size: 0.8rem; max-width: 80ch; }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; background: #fff; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 16px; border: 0; min-height: 48px; }
  .tiles, .steps, .plans, .promise { grid-template-columns: 1fr; }
  .tile, .tile-wide { flex-direction: column; align-items: stretch; padding: 30px 26px 0; min-height: 0; gap: 26px; }
  .tile-wide .tile-text { padding-bottom: 0; }
  .tile-wide .shot, .shot { flex: none; align-self: center; width: min(260px, 80%); aspect-ratio: 540 / 600; }
  .tile-wide .shot.shot-short { aspect-ratio: 540 / 452; margin-bottom: 30px; }
  .tile-green { padding-bottom: 30px; }
  .phone-side { display: none; }
  .phone-main { flex-basis: 290px; }
  .hero { padding-top: 48px; }
  .plan-pick { order: -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
