/* Mailora website. One stylesheet for every page. */

:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --surface-2: #f0f0ec;
  --text: #16181d;
  --muted: #5d6270;
  --line: #e3e3de;
  --orange: #f47a13;
  --orange-soft: #fff1e4;
  --blue: #1a6fc9;
  --blue-soft: #e8f1fc;
  --green: #16834a;
  --accent: #16181d;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(20, 22, 28, 0.05), 0 12px 32px -18px rgba(20, 22, 28, 0.25);
  --max: 1080px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1115;
    --surface: #171a20;
    --surface-2: #1f232b;
    --text: #eceef2;
    --muted: #a0a6b3;
    --line: #2a2f38;
    --orange-soft: #2c1d10;
    --blue-soft: #10223a;
    --green: #4ade80;
    --accent: #eceef2;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px -18px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1115;
  --surface: #171a20;
  --surface-2: #1f232b;
  --text: #eceef2;
  --muted: #a0a6b3;
  --line: #2a2f38;
  --orange-soft: #2c1d10;
  --blue-soft: #10223a;
  --green: #4ade80;
  --accent: #eceef2;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ------------------------------------------------------------------ header */
.site-head { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 750; text-decoration: none; letter-spacing: -0.01em; }
.logo img { width: 28px; height: 28px; border-radius: 7px; }
.nav { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 550; font-size: 15px; padding: 6px 10px; border-radius: 9px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }

/* ------------------------------------------------------------------ type */
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(34px, 6vw, 56px); font-weight: 800; }
h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 780; }
h3 { font-size: 19px; font-weight: 700; }
.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 640px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
code { font: 0.9em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }

/* ------------------------------------------------------------------ layout */
section { padding: 72px 0; }
section + section { border-top: 1px solid var(--line); }
.hero { padding: 72px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero .lead { margin: 18px 0 28px; }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head p { margin: 12px 0 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
/* Grid items may shrink below their content (long unbreakable file names in the illustration). */
.hero-grid > *, .grid-2 > *, .grid-3 > *, .steps > *, .trust > * { min-width: 0; }
h1 { overflow-wrap: anywhere; }
@media (max-width: 860px) {
  .hero-grid, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .nav a { padding: 6px 7px; font-size: 14px; }
}
@media (max-width: 520px) {
  .site-head .wrap { height: auto; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; gap: 6px; }
  .nav { margin-left: 0; }
}

/* ------------------------------------------------------------------ pieces */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card p { margin: 8px 0 0; color: var(--muted); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 680; text-decoration: none; border-radius: 12px; padding: 12px 20px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; }
.btn-dark { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.btn-orange { background: var(--orange); color: #fff; border-color: var(--orange); }
.btn-blue { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn[aria-disabled="true"] { opacity: 0.55; cursor: default; pointer-events: none; }
.soon { font-size: 13px; color: var(--muted); }

.product-card { display: flex; flex-direction: column; gap: 14px; }
.product-card .top { display: flex; align-items: center; gap: 14px; }
.product-card .top img { width: 56px; height: 56px; border-radius: 14px; }
.product-card ul { margin: 4px 0 0; padding-left: 20px; color: var(--muted); }
.product-card .btn-row { margin-top: auto; padding-top: 6px; }

.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.trust .item { display: flex; gap: 14px; align-items: flex-start; }
.trust svg { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.trust p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .trust { grid-template-columns: 1fr; } }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps .card { position: relative; padding-top: 58px; }
.steps .card::before { counter-increment: step; content: counter(step); position: absolute; top: 20px; left: 24px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 750; font-size: 14px; background: var(--surface-2); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.examples { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* the progress screen, drawn in HTML (illustrative data) */
.mock { background: #0f121a; border-radius: 24px; padding: 28px; box-shadow: 0 30px 70px -30px rgba(10, 14, 22, 0.6); }
.mock-card { background: #1b1f2a; border: 1px solid #2b3140; border-radius: 18px; padding: 22px; color: #e5e7eb; font-size: 14px; }
.mock-top { display: flex; align-items: center; gap: 12px; }
.mock-top img { width: 38px; height: 38px; border-radius: 10px; }
.mock-title { font-weight: 700; font-size: 16px; color: #fff; }
.mock-sub { color: #9ca3af; font-size: 13px; }
.mock-num { font-size: 42px; font-weight: 780; color: #fff; line-height: 1; margin: 18px 0 2px; }
.mock-num span { font-size: 14px; font-weight: 500; color: #9ca3af; margin-left: 8px; }
.mock-bar { height: 7px; border-radius: 4px; background: #2b3140; margin: 14px 0 8px; overflow: hidden; }
.mock-bar div { height: 100%; width: 62%; background: linear-gradient(90deg, #fb923c, #f97316); }
.mock.blue .mock-bar div { background: linear-gradient(90deg, #4aa3f0, #1a6fc9); }
.mock-where { display: flex; justify-content: space-between; color: #9ca3af; font-size: 12.5px; }
.mock ul { list-style: none; margin: 12px 0 0; padding: 0; font-size: 12.5px; color: #cbd5e1; }
.mock li { padding: 5px 0; border-top: 1px solid #262b38; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock li::before { content: "✓  "; color: #34d399; }
.mock-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.mock-actions span { color: #9ca3af; text-decoration: underline; font-size: 12.5px; }
.mock-actions b { background: #ef4444; color: #fff; border-radius: 10px; padding: 8px 18px; font-size: 13px; }
.mock-note { text-align: center; color: #6b7280; font-size: 12px; margin-top: 12px; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 820px; }
.plan h3 { font-size: 22px; }
.price { font-size: 30px; font-weight: 800; margin: 10px 0 2px; }
.plan ul { list-style: none; padding: 0; margin: 16px 0 20px; }
.plan li { padding: 7px 0 7px 28px; position: relative; border-top: 1px solid var(--line); }
.plan li::before { content: ""; position: absolute; left: 4px; top: 14px; width: 12px; height: 7px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.plan.pro { border: 2px solid var(--accent); }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }

.compare { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: 15px; }
.compare th, .compare td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare th { background: var(--surface-2); font-weight: 700; }
.table-scroll { overflow-x: auto; }

/* faq */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; }
.faq details + details { margin-top: 10px; }
.faq summary { cursor: pointer; font-weight: 650; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

/* prose (privacy policy) */
.prose { max-width: 760px; }
.prose h2 { font-size: 24px; margin: 40px 0 10px; }
.prose h3 { margin: 24px 0 6px; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--text); }

/* placeholders to fill before launch */
.todo { background: #fff4c2; color: #5b4700; border-radius: 6px; padding: 0 5px; font-weight: 600; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .todo { background: #4a3d00; color: #ffe58a; } }

/* ------------------------------------------------------------------ footer */
.site-foot { padding: 40px 0 56px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.site-foot .wrap { display: grid; gap: 14px; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--text); }
