/* ── Tokens ── */
:root {
  --bg:        #eef2ff;
  --surface:   #ffffff;
  --surface2:  #f5f7ff;
  --ink:       #181c2e;
  --ink2:      #4a5068;
  --muted:     #9196b0;
  --line:      #e2e6f5;
  --accent:    #4361ee;
  --accent-h:  #2f4ac8;
  --accent-dim:#eef0fd;
  --danger:    #e5433a;
  --green:     #2ecc71;
  --r:         16px;
  --r-sm:      10px;
  --shadow:    0 4px 32px rgba(67,97,238,.10);
  --shadow-sm: 0 2px 12px rgba(67,97,238,.07);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.65;
}

button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
button:disabled { opacity: .4; cursor: default; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
a { color: var(--accent); text-decoration: none; }
img { display: block; }

/* ── Nav ── */
.nav {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.2px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
  margin-right: auto;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink2);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}

.nav-links a:hover, .nav-links a.nav-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.nav-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: 8px;
  padding: 6px 16px;
  background: var(--accent-dim);
  transition: background .15s, color .15s;
}

.nav-cta:hover { background: var(--accent); color: #fff; }

/* ── Hero ── */
.hero {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 0;
  text-align: center;
}

.hero-pills {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 5px 14px;
  box-shadow: var(--shadow-sm);
}

.hero-title {
  font-size: clamp(36px, 6vw, 58px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.8px;
  color: var(--ink);
  margin-bottom: 18px;
}

.cursive {
  font-family: "Dancing Script", cursive;
  font-style: normal;
  color: var(--accent);
  font-size: 1.1em;
}

.hero-sub {
  font-size: 15px;
  color: var(--ink2);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

/* ── Address bar ── */
.addr-bar {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 99px;
  padding: 6px 6px 6px 20px;
  box-shadow: var(--shadow);
  max-width: 600px;
  margin: 0 auto 16px;
  gap: 12px;
}

.addr-bar-inner {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.addr-icon { color: var(--muted); flex-shrink: 0; }

.addr {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.addr .local { color: var(--accent); }
.addr .at    { color: var(--muted); font-weight: 400; }
.addr.expired { opacity: .45; text-decoration: line-through; }

.domain-select {
  font: inherit;
  font-size: 13px;
  border: none;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 99px;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s, transform .1s;
}

.copy-btn:hover:not(:disabled) { background: var(--accent-h); transform: scale(1.02); }

/* ── Hero action buttons ── */
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.ha-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 7px 16px;
  transition: border-color .15s, color .15s, background .15s;
}

.ha-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.ha-btn.ha-danger:hover { border-color: var(--danger); color: var(--danger); background: #fff5f5; }

.expiry-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  margin-bottom: 8px;
  color: var(--muted);
}

.extend-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.extend-link:hover { opacity: .7; }

.bar { height: 4px; background: var(--line); border-radius: 99px; max-width: 600px; margin: 0 auto 40px; overflow: hidden; }
#bar-fill { height: 4px; background: var(--accent); border-radius: 99px; width: 100%; transition: width 1s linear; }

/* ── Inbox section ── */
.inbox-section {
  max-width: 760px;
  margin: 0 auto 60px;
  padding: 0 24px;
}

.inbox-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.inbox-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
}

.inbox-card-dots {
  display: flex;
  gap: 5px;
}

.inbox-card-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}

.inbox-card-dots span:nth-child(1) { background: #ff6058; }
.inbox-card-dots span:nth-child(2) { background: #ffbd2e; }
.inbox-card-dots span:nth-child(3) { background: #28ca41; }

.inbox-card-actions {
  display: flex;
  gap: 12px;
  color: var(--muted);
}

.inbox-title {
  padding: 14px 20px 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.inbox-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 100px;
  padding: 10px 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.inbox-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.inbox-empty p { font-weight: 600; color: var(--ink2); }
.inbox-empty span { font-size: 13px; }

.inbox-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 8px;
}

.inbox-footer-btns { display: flex; gap: 8px; }

.ifb {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink2);
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 12px;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}

.ifb:hover { border-color: var(--accent); color: var(--accent); }
.ifb.ifb-danger:hover { border-color: var(--danger); color: var(--danger); }

/* ── Message list ── */
.list { list-style: none; }

.row {
  width: 100%;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: center;
  text-align: left;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  background: none;
  border-radius: 0;
  cursor: pointer;
  transition: background .12s;
}

.row:hover    { background: var(--surface2); }
.row.active   { background: var(--accent-dim); }

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.row-main  { min-width: 0; }
.row-top   { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.from      { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.unread .from { font-weight: 700; }
.unread .from::after {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-left: 6px;
  vertical-align: middle;
}
.time    { font-size: 11px; color: var(--muted); flex-shrink: 0; }
.subject { font-size: 13px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.preview { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Viewer ── */
.mail { padding: 0; }
.view-col { display: none; }
.mail.viewing .view-col { display: block; padding: 20px; }
.mail.viewing .list-col { display: none; }

.viewer-bar { display: flex; justify-content: space-between; margin-bottom: 16px; }
.link { background: none; border: none; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--accent); padding: 0; }
.link.danger { color: var(--danger); }
.v-subject { font-size: 19px; font-weight: 700; margin-bottom: 10px; letter-spacing: -.2px; }
.v-meta { font-size: 13px; color: var(--ink2); display: flex; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; padding: 10px 14px; background: var(--surface2); border-radius: 8px; border: 1px solid var(--line); }
.code { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--accent-dim); border: 1px solid var(--accent); border-radius: var(--r); padding: 14px 18px; margin-bottom: 14px; }
.code strong { font-size: 28px; font-weight: 800; letter-spacing: 5px; color: var(--accent); }
.img-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; padding: 9px 14px; background: var(--surface2); border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
#frame { width: 100%; height: min(60vh, 540px); min-height: 300px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.muted { color: var(--muted); }
.small { font-size: 12px; }

/* ── Clients ── */
.clients { padding: 20px 24px 48px; }

.clients-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.clients-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .7px;
  margin-bottom: 24px;
}

.clients-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px 48px;
}

.cl-logo {
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: -.2px;
  opacity: .7;
}

/* ── About ── */
.about {
  background: var(--surface2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 72px 24px;
}

.about-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--accent);
  margin-bottom: 12px;
}

.about-text h2 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -.5px;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 16px;
}

.about-text p { font-size: 15px; color: var(--ink2); margin-bottom: 20px; }

.about-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }

.about-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink2);
}

.about-list svg { color: var(--green); flex-shrink: 0; }

.learn-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

.learn-more:hover { opacity: .75; }

/* ── About preview card ── */
.ap-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow: hidden;
  font-size: 13px;
}

.ap-card-top { padding: 10px 16px; border-bottom: 1px solid var(--line); }
.ap-inbox-title { padding: 12px 16px 0; font-weight: 700; color: var(--ink); }
.ap-cols { display: grid; grid-template-columns: 1fr 1fr 60px; padding: 8px 16px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); border-bottom: 1px solid var(--line); }
.ap-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 32px 16px; text-align: center; color: var(--muted); font-size: 12px; }
.ap-empty p { font-weight: 600; color: var(--ink2); font-size: 13px; }
.ap-footer { display: flex; gap: 6px; padding: 10px 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }

/* ── CTA question ── */
.cta-question {
  padding: 64px 24px;
  text-align: center;
}

.cta-question h2 {
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 800;
  letter-spacing: -.4px;
  color: var(--ink);
  margin-bottom: 10px;
}

.cta-question p { font-size: 15px; color: var(--ink2); margin-bottom: 24px; }

.cta-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 99px;
  text-decoration: none;
  transition: background .15s, transform .1s;
  box-shadow: 0 4px 14px rgba(67,97,238,.35);
}

.cta-btn:hover { background: var(--accent-h); transform: translateY(-1px); }

/* ── FAQ ── */
.faq {
  background: var(--surface2);
  border-top: 1px solid var(--line);
  padding: 64px 24px;
}

.faq-inner { max-width: 760px; margin: 0 auto; }

.faq-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--accent);
  margin-bottom: 8px;
}

.faq-sub { font-size: 14px; color: var(--ink2); margin-bottom: 32px; }

.faq-list { display: flex; flex-direction: column; gap: 8px; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform .2s;
}

.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-item[open] summary { color: var(--accent); }

.faq-item p {
  padding: 0 20px 18px;
  font-size: 14px;
  color: var(--ink2);
  line-height: 1.7;
}

/* ── App CTA ── */
.app-cta {
  background: var(--ink);
  padding: 72px 24px;
}

.app-cta-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.app-cta-text h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.5px;
  line-height: 1.2;
  margin-bottom: 16px;
}

.app-cta-text p { font-size: 15px; color: #9da3b8; margin-bottom: 28px; }

.store-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(255,255,255,.15);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 10px;
  text-decoration: none;
  transition: background .15s;
}

.store-btn:hover { background: rgba(255,255,255,.14); }

/* ── Phone mock ── */
.app-cta-img { display: flex; justify-content: center; }

.phone-mock {
  width: 200px;
  height: 380px;
  background: #1e2235;
  border-radius: 32px;
  border: 6px solid #2a2f48;
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
  overflow: hidden;
  position: relative;
}

.phone-notch {
  width: 80px;
  height: 22px;
  background: #1e2235;
  border-radius: 0 0 12px 12px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.phone-screen { height: 100%; display: flex; flex-direction: column; }
.phone-content { padding: 8px 16px; display: flex; flex-direction: column; gap: 10px; }
.phone-line { height: 10px; background: rgba(255,255,255,.12); border-radius: 99px; }
.w90 { width: 90%; }
.w70 { width: 70%; }
.w60 { width: 60%; }
.w50 { width: 50%; }
.w40 { width: 40%; }

.phone-card-mini {
  background: rgba(255,255,255,.06);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ── Footer ── */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 32px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 2fr;
  gap: 48px;
}

.footer-logo { margin-bottom: 14px; }
.footer-brand p { font-size: 13px; color: var(--ink2); line-height: 1.7; margin-bottom: 20px; }

.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  width: 34px; height: 34px;
  border-radius: 8px;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  transition: color .15s, border-color .15s;
}
.footer-socials a:hover { color: var(--accent); border-color: var(--accent); }

.footer-col h4 { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col ul a { font-size: 13px; color: var(--ink2); text-decoration: none; transition: color .15s; }
.footer-col ul a:hover { color: var(--accent); }

.footer-newsletter h4 { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.footer-newsletter > p { font-size: 13px; color: var(--ink2); margin-bottom: 16px; }

.newsletter-form {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
  background: var(--surface2);
}

.newsletter-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
}

.newsletter-input-wrap input {
  border: none;
  background: transparent;
  font: inherit;
  font-size: 13px;
  color: var(--ink);
  width: 100%;
  outline: none;
}

.newsletter-input-wrap input::placeholder { color: var(--muted); }

.newsletter-form button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 11px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background .15s;
}

.newsletter-form button:hover { background: var(--accent-h); }

.newsletter-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.newsletter-note svg { color: var(--green); flex-shrink: 0; }

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 32px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.footer-bottom a { color: var(--muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--accent); }

/* ── Responsive ── */
@media (max-width: 860px) {
  .about-inner, .app-cta-inner { grid-template-columns: 1fr; gap: 36px; }
  .about-preview { display: none; }
  .app-cta-img { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-newsletter { grid-column: 1 / -1; }
  .nav-links { display: none; }
}

@media (max-width: 540px) {
  .hero { padding-top: 40px; }
  .hero-title { font-size: 32px; }
  .addr-bar { border-radius: var(--r); }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
