/* VibeMail website. One stylesheet, no build step. Colours from the app's Ultraviolet theme. */

@font-face {
  font-family: "Poppins";
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/poppins-bold.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/poppins-medium.woff2") format("woff2");
}

:root {
  --violet: #7b2ff7;
  --pink: #f2338c;
  --gradient: linear-gradient(135deg, #7b2ff7 0%, #f2338c 100%);
  --bg: #ffffff;
  --bg-soft: #f8f6fc;
  --bg-card: #f2eff8;
  --text: #120e1c;
  --text-2: #5e5970;
  --line: #e8e4ef;
  --accent: #6a22e0; /* brand violet, a touch darker for text on white (7:1) */
  --accent-soft: #ece3ff;
  --on-accent: #ffffff;
  --frame: #15111f;
  --shadow: 0 24px 60px -24px rgba(58, 20, 120, 0.35);
  --radius: 20px;
  --max: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Poppins", var(--font);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0b16;
    --bg-soft: #15111f;
    --bg-card: #1b1628;
    --text: #f1eef8;
    --text-2: #aba4bd;
    --line: #2a233b;
    --accent: #b99aff;
    --accent-soft: #2c1a57;
    --on-accent: #1d0b47;
    --frame: #2a233b;
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.8);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4.2vw, 2.5rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--on-accent);
  padding: 0.6rem 1rem; z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 64px;
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 32px; width: auto; }
.logo-dark { display: none !important; }
@media (prefers-color-scheme: dark) {
  .logo-light { display: none !important; }
  .logo-dark { display: block !important; }
}
.nav { display: flex; gap: 0.25rem; flex-wrap: wrap; justify-content: flex-end; }
.nav a {
  color: var(--text); text-decoration: none; font-weight: 500;
  padding: 0.4rem 0.7rem; border-radius: 999px; font-size: 0.95rem;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--bg-card); }
@media (max-width: 560px) {
  .nav .hide-sm { display: none; }
  .nav { flex-wrap: nowrap; gap: 0; }
  .nav a { padding: 0.4rem 0.5rem; font-size: 0.9rem; }
  .brand img { height: 28px; }
}

/* Buttons and store badges */
.stores { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 0.75rem; }
.store {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--text); color: var(--bg);
  text-decoration: none; border-radius: 14px;
  padding: 0.55rem 1.1rem 0.55rem 0.9rem; min-height: 52px;
  line-height: 1.15;
}
.store:hover { opacity: 0.9; }
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: 0.72rem; opacity: 0.8; }
.store strong { font-family: var(--display); font-weight: 500; font-size: 1.05rem; }
.fine { color: var(--text-2); font-size: 0.92rem; }

.button {
  display: inline-block; text-decoration: none;
  background: var(--gradient); color: #fff; font-weight: 600;
  padding: 0.75rem 1.4rem; border-radius: 999px;
}
.button:hover { filter: brightness(1.05); }

/* Hero */
.hero { padding: 3rem 0 2rem; overflow: hidden; }
.hero .wrap {
  display: grid; gap: 2.5rem; align-items: center;
  grid-template-columns: 1fr;
}
.hero h1 .grad, .grad {
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.lead { font-size: 1.2rem; color: var(--text-2); max-width: 34rem; }
.hero-phones { display: flex; justify-content: center; position: relative; }
.hero-phones::before {
  content: ""; position: absolute; inset: 10% -10% 0;
  background: var(--gradient); opacity: 0.18; filter: blur(60px); border-radius: 50%;
}
@media (min-width: 880px) {
  .hero { padding: 5rem 0 3rem; }
  .hero .wrap { grid-template-columns: 1.1fr 0.9fr; }
}

/* Phone frame: a rounded bezel drawn in CSS around a plain screenshot */
.phone {
  position: relative;
  width: min(300px, 78vw);
  padding: 9px;
  border-radius: 44px;
  background: var(--frame);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  margin: 0;
}
.phone img, .phone picture { border-radius: 36px; overflow: hidden; width: 100%; background: var(--bg-soft); }
.phone.big { width: min(330px, 80vw); }
.phone.small { width: min(250px, 70vw); }
/* Two phones side by side: smaller, on one row even on a phone. */
.shots:has(> .phone + .phone) > .phone { width: min(250px, calc(50% - 0.65rem)); }
@media (max-width: 560px) {
  .shots:has(> .phone + .phone) > .phone { padding: 6px; border-radius: 28px; }
  .shots:has(> .phone + .phone) > .phone img { border-radius: 23px; }
}

/* Feature sections */
.section { padding: 4rem 0; }
.section.alt { background: var(--bg-soft); }
.section-head { max-width: 40rem; margin-bottom: 2.5rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker {
  display: inline-block; font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.5rem;
}
.feature {
  display: grid; gap: 2.5rem; align-items: center;
  grid-template-columns: 1fr;
}
.feature .shots { display: flex; justify-content: center; align-items: flex-start; gap: 1.25rem; flex-wrap: wrap; }
.feature .text p { color: var(--text-2); }
@media (min-width: 880px) {
  .section { padding: 6rem 0; }
  .feature { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .feature.flip .text { order: 2; }
  .feature .shots { flex-wrap: nowrap; }
  .feature .shots .phone:nth-child(2) { margin-top: 3rem; }
}

.ticks { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.ticks li { position: relative; padding-left: 1.9rem; margin: 0.55rem 0; color: var(--text); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.3em;
  width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--gradient);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10'/%3E%3C/svg%3E");
}
.ticks li::after {
  content: ""; position: absolute; left: 0.38rem; top: calc(0.3em + 0.27rem);
  width: 0.38rem; height: 0.62rem;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}

.pro-tag {
  display: inline-block; vertical-align: middle;
  font-family: var(--font); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
  color: #fff; background: var(--gradient);
  padding: 0.15rem 0.55rem; border-radius: 999px; margin-left: 0.4rem;
  position: relative; top: -0.15em;
}

.providers { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.providers li {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 999px; padding: 0.35rem 0.85rem; font-size: 0.95rem; font-weight: 500;
}

/* Small feature cards */
.cards { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem 1.4rem 1.1rem;
}
.section.alt .card { background: var(--bg); }
.card p { color: var(--text-2); margin: 0; }
.card .icon {
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 0.9rem;
  display: grid; place-items: center; background: var(--accent-soft); color: var(--accent);
}
.card .icon svg { width: 24px; height: 24px; }

/* Privacy band */
.band {
  background: var(--gradient); color: #fff;
  border-radius: 28px; padding: 2.5rem 1.5rem;
  display: grid; gap: 2rem; align-items: center;
}
.band p, .band li { color: rgba(255, 255, 255, 0.92); }
.band a { color: #fff; }
.band .ticks li { color: #fff; }
.band .ticks li::before { background: rgba(255, 255, 255, 0.25); }
@media (min-width: 880px) {
  .band { grid-template-columns: 1.2fr 0.8fr; padding: 3.5rem; }
}

/* Pricing */
.plans { display: grid; gap: 1.25rem; grid-template-columns: 1fr; max-width: 900px; margin: 0 auto; }
@media (min-width: 760px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan {
  border: 1px solid var(--line); border-radius: 24px; padding: 2rem 1.6rem;
  background: var(--bg);
}
.plan.pro { border: 2px solid transparent; background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--gradient) border-box; }
.plan h3 { font-size: 1.5rem; margin-bottom: 0.25rem; }
.price { font-family: var(--display); font-size: 2.4rem; font-weight: 700; letter-spacing: -0.02em; margin: 0.75rem 0 0; line-height: 1.1; }
.price small { font-family: var(--font); font-size: 1rem; font-weight: 500; color: var(--text-2); letter-spacing: 0; }
.price-alt { color: var(--text-2); margin: 0.35rem 0 1.25rem; }
.save { display: inline-block; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 0.85rem; padding: 0.1rem 0.55rem; border-radius: 999px; }
.plan .ticks { margin-top: 0.5rem; }

/* Comparison table */
.compare-wrap { overflow-x: auto; margin-top: 3rem; border: 1px solid var(--line); border-radius: 20px; }
table.compare { width: 100%; border-collapse: collapse; }
.compare caption { text-align: left; padding: 1rem 1.25rem 0; font-family: var(--display); font-weight: 700; font-size: 1.2rem; }
.compare th, .compare td { padding: 0.8rem 1.25rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare tr:last-child td, .compare tr:last-child th { border-bottom: 0; }
.compare thead th { font-size: 0.9rem; color: var(--text-2); font-weight: 600; }
.compare .c { text-align: center; width: 7.5rem; }
.compare tbody th { font-weight: 500; }
.yes { color: var(--accent); font-weight: 700; }
@media (max-width: 560px) {
  .compare th, .compare td { padding: 0.7rem 0.6rem; font-size: 0.93rem; }
  .compare caption { padding: 1rem 0.6rem 0; }
  .compare .c { width: 4.8rem; }
}
.no { color: var(--text-2); }

/* Closing call to action */
.cta { text-align: center; }
.cta .stores { justify-content: center; }

/* Text pages: privacy, terms, support */
.page { padding: 3rem 0 4rem; }
.prose { max-width: 46rem; margin: 0 auto; }
.prose h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.prose h2 { font-size: 1.45rem; margin-top: 2.4rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin: 0.35rem 0; }
.prose .updated { color: var(--text-2); }
.prose .summary {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 18px; padding: 1.25rem 1.4rem; margin: 1.5rem 0 2rem;
}
.prose .summary ul { margin: 0.5rem 0 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.97rem; }
.prose th, .prose td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--text-2); font-weight: 600; }
.prose code { font-size: 0.92em; background: var(--bg-card); padding: 0.1em 0.35em; border-radius: 6px; }
.prose blockquote { margin: 1rem 0; padding: 0.75rem 1.1rem; border-left: 4px solid var(--violet); background: var(--bg-soft); border-radius: 0 12px 12px 0; }
.toc { columns: 2 14rem; padding-left: 1.2rem; }
.prose .toc li { margin: 0 0 0.35rem; break-inside: avoid; }

/* FAQ */
.faq details {
  border: 1px solid var(--line); border-radius: 16px;
  padding: 0 1.2rem; margin: 0.75rem 0; background: var(--bg);
}
.faq summary {
  cursor: pointer; font-weight: 600; padding: 1rem 0; list-style: none;
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent); font-weight: 500;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details > *:not(summary) { margin-top: 0; }
.faq details[open] { padding-bottom: 0.4rem; }
.contact-box {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 20px; padding: 1.5rem; margin: 1.5rem 0 2.5rem;
}

/* 404 */
.notfound { text-align: center; padding: 5rem 0 6rem; }
.notfound img { margin: 0 auto 1.5rem; width: 96px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0 2.5rem; color: var(--text-2); font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.site-footer a { color: var(--text-2); }
.site-footer a:hover { color: var(--text); }

/* Pro page: each feature as a screenshot with a line under it */
.gallery { display: flex; flex-wrap: wrap; justify-content: center; gap: 2.5rem 1rem; margin: 0; padding: 0; list-style: none; }
.gallery > li { flex: 0 1 calc(50% - 0.5rem); text-align: center; }
@media (min-width: 760px) { .gallery { gap: 3rem 1.5rem; } .gallery > li { flex-basis: calc(33.333% - 1rem); } }
@media (min-width: 1040px) { .gallery > li { flex-basis: calc(25% - 1.125rem); } }
.gallery .phone { width: 100%; max-width: 250px; margin: 0 auto 1.1rem; padding: 6px; border-radius: 30px; }
.gallery .phone img { border-radius: 25px; }
.gallery h2 { font-size: 1.15rem; letter-spacing: -0.01em; margin: 0 0 0.3rem; }
.gallery p { color: var(--text-2); font-size: 0.95rem; margin: 0; }
@media (max-width: 560px) { .gallery h2 { font-size: 1.02rem; } .gallery p { font-size: 0.9rem; } }
