/* ===== 1PEC — redesign 2026 ===== */
:root {
  --brand: #7a1e2c;
  --brand-dark: #5c1420;
  --brand-soft: #f7edef;
  --accent: #c8873a;
  --ink: #211a1b;
  --ink-soft: #5f5658;
  --line: #e9e1e2;
  --bg: #fdfbfa;
  --card: #ffffff;
  --ok: #1e7a4a;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(60, 20, 26, .05), 0 8px 28px rgba(60, 20, 26, .07);
  --shadow-lg: 0 4px 8px rgba(60, 20, 26, .06), 0 20px 48px rgba(60, 20, 26, .12);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .875em;
  background: var(--brand-soft);
  color: var(--brand-dark);
  padding: .1em .4em;
  border-radius: 6px;
}

.container { width: min(1120px, 92%); margin-inline: auto; }
.container-narrow { width: min(820px, 92%); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 600; font-size: .95rem;
  padding: .7rem 1.35rem; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 4px 14px rgba(122, 30, 44, .28); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); }
.btn-outline { background: #fff; color: var(--brand); border-color: var(--line); }
.btn-lg { padding: .9rem 1.7rem; font-size: 1rem; }
.btn-sm { padding: .5rem 1.1rem; font-size: .875rem; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 251, 250, .85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: .65rem; }
.brand:hover { text-decoration: none; }
.brand-mark { color: var(--brand); display: grid; place-items: center; }
.brand-text { font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; color: var(--ink); line-height: 1.05; }
.brand-text small { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.main-nav { display: flex; align-items: center; gap: 1.75rem; }
.main-nav > a:not(.btn) { color: var(--ink-soft); font-weight: 500; font-size: .95rem; }
.main-nav > a:not(.btn):hover { color: var(--brand); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .2s; }
.mobile-nav { display: flex; flex-direction: column; gap: .25rem; padding: .75rem 4% 1.25rem; border-bottom: 1px solid var(--line); background: var(--bg); }
.mobile-nav[hidden] { display: none; }
.mobile-nav a:not(.btn) { padding: .65rem .25rem; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--line); }
.mobile-nav .btn { margin-top: .75rem; }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(60rem 30rem at 110% -20%, rgba(122, 30, 44, .08), transparent 60%),
    radial-gradient(40rem 24rem at -15% 110%, rgba(200, 135, 58, .10), transparent 60%),
    var(--bg);
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand); margin-bottom: .9rem;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.08; letter-spacing: -.03em; font-weight: 800;
  margin-bottom: 1.15rem;
}
.lead { font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: var(--ink-soft); max-width: 34rem; margin-bottom: 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.9rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .55rem 1.5rem; list-style: none; }
.hero-badges li { display: flex; align-items: center; gap: .45rem; font-size: .88rem; font-weight: 500; color: var(--ink-soft); }
.hero-badges svg { color: var(--brand); flex: none; }

.hero-visual { position: relative; }
.receipt-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 1.4rem 1.5rem; max-width: 24rem; margin-inline: auto;
  transform: rotate(1.5deg);
}
.receipt-head { display: flex; align-items: center; gap: .55rem; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); padding-bottom: .9rem; margin-bottom: .9rem; border-bottom: 1px dashed var(--line); }
.receipt-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(30, 122, 74, .15); }
.receipt-row { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; padding: .35rem 0; }
.receipt-row span { color: var(--ink-soft); }
.receipt-row strong { font-weight: 600; }
.receipt-status {
  display: flex; align-items: center; gap: .5rem; margin-top: 1rem;
  background: #eef7f1; color: var(--ok); font-weight: 600; font-size: .88rem;
  padding: .65rem .9rem; border-radius: var(--radius-sm);
}
.hero-seal {
  position: absolute; top: -1.4rem; right: 8%;
  width: 74px; height: 74px; border-radius: 50%;
  background: var(--brand); display: grid; place-items: center;
  box-shadow: var(--shadow-lg); transform: rotate(-6deg);
}

/* ===== Quick access ===== */
.quick { margin-top: -1.5rem; position: relative; z-index: 2; padding-bottom: 1rem; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.quick-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.4rem; box-shadow: var(--shadow); color: var(--ink);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  display: flex; flex-direction: column; gap: .45rem;
}
.quick-card:hover { text-decoration: none; transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #dccfd1; }
.quick-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; margin-bottom: .5rem;
}
.quick-card h3 { font-size: 1.06rem; font-weight: 700; letter-spacing: -.01em; }
.quick-card p { font-size: .9rem; color: var(--ink-soft); flex: 1; }
.quick-link { font-size: .88rem; font-weight: 600; color: var(--brand); margin-top: .4rem; }
.quick-card:hover .quick-link { text-decoration: underline; }

/* ===== Sections ===== */
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; scroll-margin-top: 70px; }
.support-form { scroll-margin-top: 90px; }
.section-head { max-width: 44rem; margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -.025em; font-weight: 800; margin-bottom: .7rem; }
.section-sub { color: var(--ink-soft); font-size: 1.02rem; }

/* About */
.about { background: #fff; border-block: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.about-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.5rem; background: var(--bg); }
.about-icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--brand); color: #fff;
  display: grid; place-items: center; margin-bottom: 1rem;
}
.about-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .4rem; }
.about-card p { font-size: .92rem; color: var(--ink-soft); }

/* Config */
.config-webmail {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  background: linear-gradient(120deg, var(--brand), var(--brand-dark));
  color: #fff; border-radius: var(--radius); padding: 1.8rem 2rem; margin-bottom: 2.6rem;
  box-shadow: var(--shadow-lg);
}
.config-webmail h3 { font-size: 1.2rem; margin-bottom: .3rem; }
.config-webmail p { font-size: .95rem; opacity: .92; max-width: 40rem; }
.config-webmail .btn-primary { background: #fff; color: var(--brand); box-shadow: none; flex: none; }
.config-webmail .btn-primary:hover { background: #f6ecec; }
.config-subtitle { font-size: 1.15rem; font-weight: 700; margin-bottom: 1.2rem; }
.config-subtitle span { font-weight: 500; color: var(--ink-soft); font-size: .9rem; }
.config-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-bottom: 1.6rem; }
.config-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.config-card-head h4 { font-size: 1.05rem; display: flex; align-items: center; gap: .55rem; margin-bottom: .25rem; }
.config-card-head p { font-size: .87rem; color: var(--ink-soft); margin-bottom: 1.1rem; }
.tag { font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .2rem .55rem; border-radius: 999px; background: var(--brand-soft); color: var(--brand); }
.tag-rec { background: #eef7f1; color: var(--ok); }
.config-params div { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .55rem 0; border-top: 1px solid var(--line); }
.config-params dt { font-size: .85rem; color: var(--ink-soft); flex: none; }
.config-params dd { display: flex; align-items: center; gap: .45rem; }
.copy-btn {
  display: inline-grid; place-items: center; width: 28px; height: 28px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink-soft);
  cursor: pointer; transition: .15s;
}
.copy-btn:hover { color: var(--brand); border-color: var(--brand); }
.copy-btn.copied { color: var(--ok); border-color: var(--ok); }
.config-note {
  display: flex; gap: .8rem; align-items: flex-start;
  background: var(--brand-soft); border: 1px solid #eddfe2; border-radius: var(--radius);
  padding: 1.15rem 1.3rem; font-size: .93rem; color: var(--ink);
}
.config-note svg { flex: none; color: var(--brand); margin-top: .15rem; }

/* FAQ */
.faq { background: #fff; border-block: 1px solid var(--line); }
.faq-search {
  display: flex; align-items: center; gap: .7rem;
  border: 1.5px solid var(--line); border-radius: 999px; padding: .8rem 1.2rem;
  background: var(--bg); margin-bottom: 2rem; color: var(--ink-soft);
  transition: border-color .15s;
}
.faq-search:focus-within { border-color: var(--brand); }
.faq-search input { border: 0; outline: 0; background: none; font: inherit; color: var(--ink); width: 100%; }
.faq-empty { color: var(--ink-soft); padding: 1rem 0 2rem; }
.faq-group { margin-bottom: 2.2rem; }
.faq-group-title {
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand); margin-bottom: .8rem;
}
.faq-item {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg); margin-bottom: .6rem; overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.faq-item[open] { border-color: #dccfd1; box-shadow: var(--shadow); background: #fff; }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.05rem 1.25rem; font-weight: 600; font-size: .99rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chevron {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--line); position: relative; transition: .2s;
}
.faq-chevron::before, .faq-chevron::after {
  content: ""; position: absolute; top: 50%; left: 50%; background: var(--ink-soft);
  width: 10px; height: 1.6px; transform: translate(-50%, -50%); transition: .2s;
}
.faq-chevron::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-chevron { background: var(--brand); border-color: var(--brand); }
.faq-item[open] .faq-chevron::before, .faq-item[open] .faq-chevron::after { background: #fff; }
.faq-item[open] .faq-chevron::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-answer { padding: 0 1.25rem 1.2rem; color: var(--ink-soft); font-size: .95rem; }
.faq-answer p + p, .faq-answer p + ul, .faq-answer p + ol, .faq-answer ul + p, .faq-answer ol + p { margin-top: .7rem; }
.faq-answer ul, .faq-answer ol { padding-left: 1.3rem; display: grid; gap: .4rem; }
.faq-table { width: 100%; border-collapse: collapse; margin: .7rem 0; font-size: .9rem; }
.faq-table td { border: 1px solid var(--line); padding: .5rem .75rem; }
.faq-table td:first-child { font-weight: 600; color: var(--ink); width: 38%; background: var(--bg); }

/* Pricing */
.pricing { background: var(--bg); }
.notice-box {
  display: flex; gap: .8rem; align-items: flex-start;
  background: #fdf6ec; border: 1px solid #ecdcc3; border-radius: var(--radius);
  padding: 1.05rem 1.25rem; font-size: .93rem; margin-bottom: 2rem;
}
.notice-box svg { flex: none; color: var(--accent); margin-top: .15rem; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-bottom: 1.4rem; }
.price-card {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.7rem 1.5rem; box-shadow: var(--shadow);
}
.price-card-hl { border-color: var(--brand); box-shadow: var(--shadow-lg); }
.price-flag {
  position: absolute; top: -0.7rem; left: 1.3rem;
  background: var(--brand); color: #fff; font-size: .68rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: .22rem .65rem; border-radius: 999px;
}
.price-card h3 { font-size: 1.12rem; margin-bottom: .3rem; }
.price { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; color: var(--brand); margin-bottom: 1.1rem; }
.price span { font-size: .82rem; font-weight: 500; color: var(--ink-soft); letter-spacing: 0; }
.price-card ul { list-style: none; display: grid; gap: .5rem; font-size: .9rem; color: var(--ink-soft); }
.price-card ul li { padding-left: 1.35rem; position: relative; }
.price-card ul li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: .85rem; height: .45rem;
  border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok);
  transform: rotate(-45deg);
}
.pricing-details { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.1rem; }
.pricing-detail {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem 1.35rem; font-size: .9rem; color: var(--ink-soft);
}
.pricing-detail h4 { color: var(--ink); font-size: .95rem; margin-bottom: .3rem; }

/* Support */
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.2rem; align-items: start; }
.support-cards { display: grid; gap: .9rem; }
.support-card {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.15rem 1.25rem; box-shadow: var(--shadow); color: var(--ink);
  transition: transform .18s, box-shadow .18s;
}
a.support-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.support-icon {
  flex: none; width: 44px; height: 44px; border-radius: 12px;
  background: var(--brand-soft); color: var(--brand); display: grid; place-items: center;
}
.support-card h3 { font-size: .95rem; font-weight: 700; }
.support-value { font-weight: 600; color: var(--brand); font-size: .98rem; }
.support-note { font-size: .85rem; color: var(--ink-soft); }

.support-form {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--shadow);
}
.support-form h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.form-intro { font-size: .88rem; color: var(--ink-soft); margin-bottom: 1.3rem; }
.form-row { margin-bottom: 1rem; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.support-form label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .3rem; }
.support-form input, .support-form select, .support-form textarea {
  width: 100%; font: inherit; font-size: .93rem; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: .65rem .85rem; background: var(--bg); outline: none; transition: border-color .15s;
}
.support-form input:focus, .support-form select:focus, .support-form textarea:focus { border-color: var(--brand); background: #fff; }
.support-form textarea { resize: vertical; }
.form-error { color: #b3261e; font-size: .87rem; margin-bottom: .8rem; }
.form-success {
  color: var(--ok); background: #eef7f1; border: 1px solid #cfe8d9;
  font-size: .9rem; font-weight: 500; border-radius: var(--radius-sm);
  padding: .7rem .9rem; margin-bottom: .8rem;
}
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-captcha { max-width: 16rem; }
.support-form button[disabled] { opacity: .6; cursor: wait; transform: none; }

/* Footer */
.site-footer { background: #241417; color: #d9c9cc; padding: 3rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-bottom: 2.2rem; }
.footer-brand .brand-text { color: #fff; }
.footer-brand .brand-text small { color: #b89da2; }
.footer-brand p { font-size: .9rem; margin-top: .8rem; max-width: 24rem; }
.footer-col h4 { color: #fff; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .8rem; }
.footer-col a { display: block; color: #d9c9cc; font-size: .92rem; padding: .22rem 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 1.2rem 5.5rem;
  font-size: .82rem; color: #a88e93;
}

/* Mobile sticky CTA */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: none; gap: .5rem; padding: .7rem 4% calc(.7rem + env(safe-area-inset-bottom));
  background: rgba(253, 251, 250, .92); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.mobile-cta .btn { flex: 1; padding-inline: .5rem; font-size: .88rem; }

/* ===== Responsive ===== */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .config-grid, .pricing-grid, .pricing-details { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .mobile-cta { display: flex; }
  .footer-bottom { padding-bottom: 1.2rem; }
  body { padding-bottom: 64px; }
  .form-row-2 { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .quick-grid, .footer-grid { grid-template-columns: 1fr; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
