/* ============================================================
   AMATETA Hosting - Public site design system
   Brand palette extracted from the AMATETA logo:
     blue #0090D0 · lime #B8CF26 · orange #F7941D · deep navy text
   Namecheap-inspired layout: utility bar, white nav, blue hero.
   Mobile-first, breakpoints at 480 / 768 / 1024px.
   ============================================================ */

:root {
    /* Brand */
    --blue: #0090D0;
    --blue-dark: #0071AD;
    --blue-deep: #075A8A;
    --blue-hero-1: #0B7FC4;
    --blue-hero-2: #29A8E0;
    --lime: #B8CF26;
    --lime-dark: #93A81C;
    --orange: #F7941D;
    --orange-dark: #E07F0A;
    --navy: #072A40;

    /* Neutrals */
    --text: #1E3444;
    --muted: #5C7386;
    --bg: #ffffff;
    --bg-soft: #F4F8FB;
    --bg-softer: #FAFCFE;
    --border: #DFE9F0;
    --border-strong: #C4D5E0;

    /* Status */
    --success: #16a34a;
    --success-bg: #f0fdf4;
    --error: #dc2626;
    --error-bg: #fef2f2;
    --warning: #b45309;
    --warning-bg: #fffbeb;
    --info: #1d4ed8;
    --info-bg: #eff6ff;

    --radius: 10px;
    --radius-lg: 16px;
    --shadow: 0 2px 10px rgba(7, 42, 64, .06);
    --shadow-lg: 0 12px 32px rgba(7, 42, 64, .12);
    --container: 1200px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---------- Reset & base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--text); background: var(--bg); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: inline-block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; font-weight: 800; letter-spacing: -.01em; }
button { font-family: inherit; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 10px 18px; z-index: 999; }
.skip-link:focus { left: 0; }
.hide-mobile { display: none; }
@media (min-width: 768px) { .hide-mobile { display: inline; } }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block; padding: 12px 26px; border-radius: 8px; border: none;
    font-weight: 700; font-size: 15px; cursor: pointer; text-align: center;
    transition: background .15s, color .15s, box-shadow .15s, transform .1s;
    line-height: 1.4;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: #fff !important; }
.btn-primary:hover { background: var(--orange-dark); }
.btn-blue { background: var(--blue); color: #fff !important; }
.btn-blue:hover { background: var(--blue-dark); }
.btn-ghost { background: transparent; color: var(--blue) !important; border: 2px solid var(--blue); padding: 10px 24px; }
.btn-ghost:hover { background: var(--blue); color: #fff !important; }
.btn-white { background: #fff; color: var(--blue-deep) !important; }
.btn-white:hover { background: #eaf6fd; }
.btn-lg { padding: 15px 34px; font-size: 16.5px; }
.btn-sm { padding: 8px 16px; font-size: 13.5px; }
.btn-block { display: block; width: 100%; }
.btn[disabled], .btn.loading { opacity: .65; cursor: wait; pointer-events: none; }

/* ---------- Utility bar ---------- */
.utilbar { background: var(--navy); color: #cfe3ef; font-size: 13.5px; }
.utilbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 40px; gap: 12px; }
.utilbar a { color: #cfe3ef; }
.utilbar a:hover { color: #fff; }
.utilbar-left { display: flex; align-items: center; gap: 14px; }
.utilbar-sep { width: 1px; height: 14px; background: rgba(255,255,255,.25); display: none; }
@media (min-width: 768px) { .utilbar-sep { display: block; } }
.utilbar-right { display: flex; align-items: center; gap: 14px; }
.utilbar-cart { position: relative; display: flex; align-items: center; padding: 4px; }
.cart-badge {
    position: absolute; top: -4px; right: -7px; background: var(--orange); color: #fff;
    font-size: 10.5px; font-weight: 800; min-width: 17px; height: 17px; line-height: 17px;
    text-align: center; border-radius: 9px; padding: 0 4px; display: none;
}
.cart-badge.show { display: block; }
.currency-toggle { display: flex; border: 1px solid rgba(255,255,255,.3); border-radius: 6px; overflow: hidden; }
.currency-toggle a { padding: 3px 10px; font-size: 12.5px; font-weight: 700; }
.currency-toggle a.active { background: var(--blue); color: #fff; }
.util-link { font-weight: 600; }
.util-signup { background: var(--orange); color: #fff !important; padding: 5px 14px; border-radius: 6px; }
.util-signup:hover { background: var(--orange-dark); }
.util-account-btn {
    background: none; border: none; color: #cfe3ef; font-size: 13.5px; font-weight: 600;
    display: flex; align-items: center; gap: 6px; cursor: pointer; padding: 6px 2px;
}
.util-account-btn:hover { color: #fff; }

/* ---------- Main nav ---------- */
.mainnav { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.mainnav-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 62px; height: 62px; object-fit: contain; }
.brand-text { font-size: 14.5px; font-weight: 600; color: var(--navy); letter-spacing: .3px; text-transform: lowercase; }
.brand-text em { font-style: normal; color: var(--blue); font-weight: 600; }
.brand-footer img { width: 58px; height: 58px; }
.hamburger { display: flex; flex-direction: column; justify-content: center; gap: 5px; background: none; border: none; cursor: pointer; padding: 10px; }
.hamburger span { width: 24px; height: 2.5px; background: var(--navy); border-radius: 2px; transition: transform .2s, opacity .2s; }
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav-menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg); padding: 8px 20px 20px; max-height: calc(100vh - 110px); overflow-y: auto;
}
.nav-menu.open { display: block; }
.nav-link {
    display: block; padding: 13px 4px; font-weight: 600; font-size: 15.5px; color: var(--navy);
    border-bottom: 1px solid var(--border);
}
.nav-link:hover { color: var(--blue); }
.nav-active > .nav-link, .nav-link.nav-active { color: var(--blue); }
.caret { font-size: 10px; opacity: .55; margin-left: 2px; }
.nav-drop-menu { display: none; padding: 4px 0 8px 14px; }
.nav-drop.open .nav-drop-menu { display: block; }
.nav-drop-menu a { display: block; padding: 9px 10px; border-radius: 8px; }
.nav-drop-menu a strong { display: block; color: var(--navy); font-size: 14.5px; }
.nav-drop-menu a small { color: var(--muted); font-size: 12.5px; }
.nav-drop-menu a:hover { background: var(--bg-soft); }
.nav-drop-menu a:hover strong { color: var(--blue); }
.drop-danger { color: var(--error) !important; font-weight: 600; }
.badge-new { position: relative; }
.badge-new::after {
    content: 'NEW'; position: static; margin-left: 7px; background: var(--lime);
    color: var(--navy); font-size: 9.5px; font-weight: 800; padding: 2px 6px; border-radius: 4px; vertical-align: 2px;
}
.nav-mobile-account { padding-top: 16px; display: grid; gap: 10px; }

@media (min-width: 1024px) {
    .hamburger { display: none; }
    .nav-menu {
        display: flex; position: static; background: none; border: none; box-shadow: none;
        padding: 0; align-items: center; gap: 2px; overflow: visible; max-height: none;
    }
    .nav-link { border-bottom: none; padding: 24px 13px; font-size: 15px; position: relative; }
    .nav-active > .nav-link::after, .nav-link.nav-active::after {
        content: ''; position: absolute; left: 13px; right: 13px; bottom: 16px; height: 3px;
        background: var(--orange); border-radius: 2px;
    }
    .nav-drop { position: relative; }
    .nav-drop-menu {
        position: absolute; top: calc(100% - 8px); left: 0; min-width: 290px;
        background: #fff; border: 1px solid var(--border); border-radius: 12px;
        box-shadow: var(--shadow-lg); padding: 10px;
    }
    .nav-drop-menu.align-right { left: auto; right: 0; }
    .nav-drop:hover .nav-drop-menu, .nav-drop.open .nav-drop-menu { display: block; }
    .nav-mobile-account { display: none; }
}

/* Account dropdown inside utilbar (both mobile & desktop) */
.util-account { position: relative; }
.util-account .nav-drop-menu {
    position: absolute; top: calc(100% + 6px); right: 0; left: auto; min-width: 210px;
    background: #fff; border: 1px solid var(--border); border-radius: 12px;
    box-shadow: var(--shadow-lg); padding: 8px; z-index: 200;
}
.util-account.open .nav-drop-menu { display: block; }
.util-account .nav-drop-menu a { color: var(--navy); font-weight: 600; font-size: 14px; padding: 9px 12px; }

/* ---------- Flash messages & toasts ---------- */
.flash-container { max-width: var(--container); margin: 14px auto 0; padding: 0 20px; }
.flash { padding: 12px 40px 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 8px; position: relative; }
.flash-success { background: var(--success-bg); border: 1px solid #bbf7d0; color: var(--success); }
.flash-error   { background: var(--error-bg); border: 1px solid #fecaca; color: var(--error); }
.flash-warning { background: var(--warning-bg); border: 1px solid #fde68a; color: var(--warning); }
.flash-info    { background: var(--info-bg); border: 1px solid #bfdbfe; color: var(--info); }
.flash-close { position: absolute; right: 10px; top: 9px; background: none; border: none; font-size: 18px; cursor: pointer; color: inherit; }
.toast-host { position: fixed; bottom: 20px; right: 20px; z-index: 500; display: grid; gap: 10px; max-width: 340px; }
.toast {
    background: var(--navy); color: #fff; padding: 13px 18px; border-radius: 10px;
    box-shadow: var(--shadow-lg); font-size: 14px; animation: toastIn .25s ease;
}
.toast.toast-success { background: var(--success); }
.toast.toast-error { background: var(--error); }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(135deg, var(--blue-hero-1) 0%, var(--blue-hero-2) 55%, #4FC0EC 100%);
    color: #fff; padding: 56px 0 72px; position: relative; overflow: hidden;
}
.hero::before, .hero::after {
    content: ''; position: absolute; border-radius: 50%; opacity: .12; background: #fff;
}
.hero::before { width: 420px; height: 420px; top: -180px; right: -120px; }
.hero::after { width: 300px; height: 300px; bottom: -160px; left: -100px; }
.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 860px; margin: 0 auto; }
.hero h1 { color: #fff; font-size: clamp(30px, 5.5vw, 52px); font-weight: 900; margin-bottom: 14px; }
.hero p.lead { font-size: clamp(15px, 2.2vw, 19px); opacity: .95; margin-bottom: 34px; }

/* Domain search */
.dsearch-tabs { display: inline-flex; background: rgba(255,255,255,.22); border-radius: 10px; padding: 4px; margin-bottom: 16px; }
.dsearch-tabs button {
    background: transparent; border: none; color: #fff; font-weight: 700; font-size: 14.5px;
    padding: 9px 26px; border-radius: 8px; cursor: pointer;
}
.dsearch-tabs button.active { background: #fff; color: var(--navy); }
.dsearch { display: flex; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-lg); }
.dsearch input {
    flex: 1; border: none; outline: none; padding: 18px 20px; font-size: 16.5px; font-family: inherit;
    color: var(--text); min-width: 0;
}
.dsearch button {
    background: var(--orange); color: #fff; border: none; font-weight: 800; font-size: 16px;
    padding: 0 34px; cursor: pointer; transition: background .15s;
}
.dsearch button:hover { background: var(--orange-dark); }
.tld-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.tld-chips span {
    background: rgba(7,42,64,.35); backdrop-filter: blur(2px); padding: 7px 15px; border-radius: 8px;
    font-size: 13.5px; font-weight: 700;
}
.tld-chips b { color: #FFD9A8; }

/* Domain search results */
.dresults { max-width: 860px; margin: 26px auto 0; text-align: left; display: none; }
.dresults.show { display: block; }
.dresult {
    background: #fff; border-radius: 10px; padding: 15px 18px; margin-bottom: 10px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    box-shadow: var(--shadow); color: var(--text);
}
.dresult .dname { font-weight: 700; font-size: 16px; color: var(--navy); word-break: break-all; }
.dresult .dstatus { font-size: 13px; font-weight: 700; }
.dresult .dstatus.avail { color: var(--success); }
.dresult .dstatus.taken { color: var(--error); }
.dresult .dstatus.unknown { color: var(--warning); }
.dresult .dprice { font-weight: 800; color: var(--navy); white-space: nowrap; }
.dresult .dactions { display: flex; align-items: center; gap: 14px; }
.dsearch-loading { text-align: center; padding: 18px; color: #fff; font-weight: 600; display: none; }
.dsearch-loading.show { display: block; }
.spinner {
    display: inline-block; width: 18px; height: 18px; border: 3px solid rgba(255,255,255,.35);
    border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -4px; margin-right: 8px;
}
.spinner.dark { border-color: rgba(7,42,64,.2); border-top-color: var(--navy); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(24px, 3.6vw, 36px); margin-bottom: 10px; }
.section-head p { color: var(--muted); font-size: 16.5px; }
.eyebrow {
    display: inline-block; background: #E5F4FC; color: var(--blue-dark); font-size: 12.5px;
    font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 5px 13px;
    border-radius: 999px; margin-bottom: 14px;
}

/* ---------- Plan cards ---------- */
.plans-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .plans-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .plans-grid { grid-template-columns: repeat(3, 1fr); } .plans-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }
.plan-card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 30px 26px; display: flex; flex-direction: column; position: relative;
    transition: box-shadow .2s, transform .2s, border-color .2s;
}
.plan-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--blue); }
.plan-card.featured { border: 2px solid var(--orange); box-shadow: var(--shadow-lg); }
.plan-flag {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: var(--orange); color: #fff; font-size: 11.5px; font-weight: 800;
    letter-spacing: .06em; text-transform: uppercase; padding: 5px 16px; border-radius: 999px; white-space: nowrap;
}
.plan-card h3 { font-size: 20px; margin-bottom: 4px; }
.plan-desc { color: var(--muted); font-size: 13.8px; margin-bottom: 18px; min-height: 42px; }
.plan-price { margin-bottom: 4px; }
.plan-price .amount { font-size: 38px; font-weight: 900; color: var(--navy); letter-spacing: -1px; }
.plan-price .term { color: var(--muted); font-size: 14px; font-weight: 600; }
.plan-was { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.plan-was s { opacity: .8; }
.plan-save { color: var(--success); font-weight: 700; }
.plan-features { list-style: none; margin: 18px 0 22px; flex: 1; }
.plan-features li {
    padding: 7px 0 7px 28px; font-size: 14.3px; position: relative; border-bottom: 1px dashed var(--border);
}
.plan-features li:last-child { border-bottom: none; }
.plan-features li::before {
    content: ''; position: absolute; left: 2px; top: 12px; width: 16px; height: 16px;
    background: var(--success-bg); border-radius: 50%;
}
.plan-features li::after {
    content: '✓'; position: absolute; left: 5.5px; top: 7px; color: var(--success); font-size: 11px; font-weight: 900;
}

/* Billing cycle switcher */
.cycle-switch { display: flex; justify-content: center; gap: 0; margin-bottom: 38px; flex-wrap: wrap; }
.cycle-switch button {
    background: #fff; border: 1px solid var(--border); color: var(--muted); font-weight: 700;
    font-size: 14px; padding: 10px 22px; cursor: pointer; transition: all .15s;
}
.cycle-switch button:first-child { border-radius: 8px 0 0 8px; }
.cycle-switch button:last-child { border-radius: 0 8px 8px 0; }
.cycle-switch button.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.cycle-note { margin-left: 6px; background: var(--lime); color: var(--navy); font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 4px; }

/* ---------- Feature grid ---------- */
.features-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(4, 1fr); } .features-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.feature-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 24px; }
.feature-card .ficon {
    width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
    font-size: 25px; margin-bottom: 16px; background: #E5F4FC;
}
.feature-card:nth-child(3n+2) .ficon { background: #FDF0DE; }
.feature-card:nth-child(3n) .ficon { background: #F3F8DC; }
.feature-card h3 { font-size: 17px; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 14.3px; }

/* ---------- Comparison table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; }
.cmp-table { width: 100%; border-collapse: collapse; min-width: 620px; font-size: 14.5px; }
.cmp-table th, .cmp-table td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--border); }
.cmp-table thead th { background: var(--navy); color: #fff; font-size: 14px; white-space: nowrap; }
.cmp-table thead th:not(:first-child) { text-align: center; }
.cmp-table td:not(:first-child) { text-align: center; }
.cmp-table tbody tr:hover { background: var(--bg-softer); }
.cmp-table .yes { color: var(--success); font-weight: 800; }
.cmp-table .no { color: var(--border-strong); font-weight: 800; }

/* ---------- FAQ accordion ---------- */
.faq { max-width: 800px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.faq-q {
    width: 100%; background: none; border: none; text-align: left; padding: 18px 52px 18px 22px;
    font-size: 15.5px; font-weight: 700; color: var(--navy); cursor: pointer; position: relative;
}
.faq-q::after {
    content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
    font-size: 22px; color: var(--blue); font-weight: 400; transition: transform .2s;
}
.faq-item.open .faq-q::after { content: '−'; }
.faq-a { display: none; padding: 0 22px 18px; color: var(--muted); font-size: 14.7px; }
.faq-item.open .faq-a { display: block; }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .testi-grid { grid-template-columns: repeat(3, 1fr); } }
.testi { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; }
.testi .stars { color: var(--orange); letter-spacing: 2px; margin-bottom: 12px; font-size: 15px; }
.testi p { font-size: 14.6px; color: var(--text); margin-bottom: 16px; }
.testi .who { display: flex; align-items: center; gap: 12px; }
.testi .who .avatar {
    width: 42px; height: 42px; border-radius: 50%; background: var(--blue);
    color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800;
}
.testi .who strong { display: block; font-size: 14px; color: var(--navy); }
.testi .who small { color: var(--muted); font-size: 12.5px; }

/* ---------- CTA band ---------- */
.cta-band {
    background: linear-gradient(120deg, var(--navy) 0%, #0B4266 60%, var(--blue-deep) 100%);
    color: #fff; border-radius: var(--radius-lg); padding: 46px 34px; text-align: center;
}
.cta-band h2 { color: #fff; font-size: clamp(22px, 3.4vw, 32px); margin-bottom: 10px; }
.cta-band p { opacity: .9; margin-bottom: 26px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
    background: linear-gradient(135deg, var(--blue-hero-1), var(--blue-hero-2));
    color: #fff; padding: 46px 0 52px; text-align: center;
}
.page-hero h1 { color: #fff; font-size: clamp(26px, 4.4vw, 42px); margin-bottom: 10px; }
.page-hero p { max-width: 680px; margin: 0 auto; opacity: .95; font-size: 16.5px; }

/* ---------- TLD pricing table ---------- */
.tld-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.tld-table th, .tld-table td { padding: 14px 18px; border-bottom: 1px solid var(--border); text-align: left; }
.tld-table thead th { background: var(--bg-soft); color: var(--navy); font-size: 13.5px; text-transform: uppercase; letter-spacing: .04em; }
.tld-table .tld-name { font-weight: 800; color: var(--blue-dark); font-size: 16px; }
.tld-table tr:hover td { background: var(--bg-softer); }
.tag-local { background: var(--lime); color: var(--navy); font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: 4px; margin-left: 8px; vertical-align: 2px; }
.tag-hot { background: var(--orange); color: #fff; font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: 4px; margin-left: 8px; vertical-align: 2px; }

/* ---------- Forms (contact etc.) ---------- */
.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow); }
.form-group { margin-bottom: 18px; }
.form-grid { display: grid; gap: 0 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }
label { display: block; font-size: 13.5px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.input, textarea.input, select.input {
    width: 100%; padding: 12px 14px; font-size: 15px; font-family: inherit; color: var(--text);
    border: 1px solid var(--border-strong); border-radius: 8px; outline: none; background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
.input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,144,208,.14); }
.input-invalid { border-color: var(--error) !important; }
.field-error { display: block; color: var(--error); font-size: 12.5px; margin-top: 5px; }
.field-hint { display: block; color: var(--muted); font-size: 12.5px; margin-top: 5px; }

/* ---------- Blog ---------- */
.blog-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
    overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s;
}
.post-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.post-thumb { height: 170px; background: linear-gradient(120deg, var(--blue-hero-1), var(--blue-hero-2)); display: flex; align-items: center; justify-content: center; font-size: 44px; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.post-cat { color: var(--orange); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.post-body h3 { font-size: 17.5px; margin-bottom: 8px; }
.post-body h3 a { color: var(--navy); }
.post-body h3 a:hover { color: var(--blue); }
.post-body p { color: var(--muted); font-size: 14px; flex: 1; }
.post-meta { color: var(--muted); font-size: 12.5px; margin-top: 14px; }

/* Blog article */
.article { max-width: 780px; margin: 0 auto; }
.article h1 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 12px; }
.article .article-meta { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.article-content { font-size: 16.5px; line-height: 1.75; }
.article-content h2 { font-size: 24px; margin: 34px 0 12px; }
.article-content h3 { font-size: 19px; margin: 26px 0 10px; }
.article-content p { margin-bottom: 16px; }
.article-content ul, .article-content ol { margin: 0 0 16px 24px; }
.article-content img { border-radius: 12px; margin: 10px 0; }
.article-content blockquote { border-left: 4px solid var(--blue); padding: 6px 18px; color: var(--muted); margin: 18px 0; background: var(--bg-soft); border-radius: 0 8px 8px 0; }
.article-content code { background: var(--bg-soft); padding: 2px 7px; border-radius: 5px; font-size: 14px; }

/* ---------- Legal pages ---------- */
.legal { max-width: 820px; margin: 0 auto; }
.legal h2 { font-size: 21px; margin: 32px 0 10px; }
.legal p, .legal li { color: var(--text); font-size: 15px; margin-bottom: 10px; }
.legal ul, .legal ol { margin-left: 24px; margin-bottom: 14px; }
.legal .updated { color: var(--muted); font-size: 13.5px; margin-bottom: 26px; }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.page-link {
    padding: 8px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px;
    font-weight: 600; color: var(--navy); background: #fff;
}
.page-link:hover { border-color: var(--blue); color: var(--blue); }
.page-link.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.page-link.disabled { opacity: .45; pointer-events: none; }
.page-ellipsis { padding: 8px 4px; color: var(--muted); }

/* ---------- Stats band ---------- */
.stats-band { display: grid; gap: 26px; grid-template-columns: repeat(2, 1fr); text-align: center; }
@media (min-width: 768px) { .stats-band { grid-template-columns: repeat(4, 1fr); } }
.stat h3 { font-size: clamp(26px, 4vw, 40px); color: var(--blue); }
.stat p { color: var(--muted); font-size: 14px; font-weight: 600; }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 22px; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 24px; position: relative; }
.step::before {
    counter-increment: step; content: counter(step);
    width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: #fff;
    display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px; margin-bottom: 14px;
}
.step h3 { font-size: 16.5px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14.2px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #B9CFDD; padding: 56px 0 24px; margin-top: 64px; }
.footer-grid { display: grid; gap: 34px; grid-template-columns: 1fr; margin-bottom: 40px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; } }
.footer h4 { color: #fff; font-size: 14.5px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.footer a { display: block; color: #B9CFDD; font-size: 14.3px; padding: 4px 0; }
.footer a:hover { color: #fff; }
.brand-footer .brand-text { color: #fff; }
.brand-footer .brand-text em { color: var(--blue-hero-2); }
.footer-tag { font-size: 14px; margin: 14px 0; max-width: 300px; }
.footer-address { font-style: normal; font-size: 13.5px; line-height: 1.8; }
.footer-address a { display: inline; padding: 0; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; display: flex;
    justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 13px;
}
.footer-pay { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-pay span {
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
    padding: 4px 10px; border-radius: 6px; font-size: 11.5px; font-weight: 700; color: #DDEBF4;
}

/* ---------- Misc helpers ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 36px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 36px; }
.muted { color: var(--muted); }
.empty-state { text-align: center; padding: 46px 20px; color: var(--muted); }
.empty-state .eicon { font-size: 44px; margin-bottom: 12px; }

/* ==========================================================================
   AUTH PAGES (login / register / reset) — shared public chrome
   ========================================================================== */
.auth-shell {
    background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%);
    padding: 48px 0 64px;
}
.auth-grid {
    display: grid; grid-template-columns: minmax(0, 480px) 1fr;
    gap: 56px; align-items: center;
}
.auth-main { width: 100%; }
.auth-main.auth-wide { max-width: 560px; }
.auth-card {
    background: #fff; border: 1px solid var(--border);
    border-radius: 16px; box-shadow: 0 10px 40px rgba(10, 37, 64, .07);
    padding: 40px 36px;
}
.auth-card h1 { font-size: 26px; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.auth-foot {
    text-align: center; margin-top: 24px; padding-top: 22px;
    border-top: 1px solid var(--border); font-size: 14px; color: var(--muted);
}
.form-alert {
    background: var(--error-bg, #fef2f2); border: 1px solid #fecaca; color: var(--error);
    font-size: 13.5px; padding: 11px 14px; border-radius: 8px; margin-bottom: 18px;
}
.row-between { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; font-size: 13.5px; }
.remember { display: flex; align-items: center; gap: 7px; color: var(--muted); cursor: pointer; font-weight: 500; }
.remember input { accent-color: var(--orange); width: 15px; height: 15px; }
.terms-row { display: flex; gap: 9px; align-items: flex-start; margin-bottom: 20px; }
.terms-row input { accent-color: var(--orange); width: 15px; height: 15px; margin-top: 3px; flex-shrink: 0; }
.strength { height: 4px; border-radius: 2px; background: var(--border); margin-top: 7px; overflow: hidden; }
.strength-bar { height: 100%; width: 0; border-radius: 2px; transition: width .2s, background .2s; }
.auth-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.input-invalid { border-color: var(--error) !important; }
.code-input {
    text-align: center; font-size: 26px !important; letter-spacing: 10px;
    font-variant-numeric: tabular-nums; font-weight: 700;
}

.auth-side { text-align: center; min-width: 0; }
.auth-side img { width: 100%; max-width: 430px; height: auto; margin-bottom: 26px; }
.auth-side h2 { font-size: 23px; color: var(--navy); margin-bottom: 16px; }
.auth-points { list-style: none; display: inline-block; text-align: left; }
.auth-points li {
    position: relative; padding: 6px 0 6px 32px; color: var(--muted); font-size: 14.5px;
}
.auth-points li::before {
    content: "✓"; position: absolute; left: 0; top: 4px;
    width: 22px; height: 22px; border-radius: 50%; background: var(--success-bg, #f0fdf4);
    color: var(--success); font-weight: 800; font-size: 13px;
    display: inline-flex; align-items: center; justify-content: center;
}

@media (max-width: 940px) {
    .auth-grid { grid-template-columns: 1fr; gap: 34px; justify-items: center; }
    .auth-side { max-width: 460px; }
    .auth-side img { max-width: 300px; margin-bottom: 18px; }
    .auth-shell { padding: 26px 0 44px; }
}
@media (max-width: 560px) {
    .auth-card { padding: 28px 20px; border-radius: 14px; }
    .auth-form-grid { grid-template-columns: 1fr; gap: 0; }
    .auth-card h1 { font-size: 22px; }
}

/* ==========================================================================
   HOMEPAGE — split hero with illustration + illustrated feature rows
   ========================================================================== */
.hero-inner.hero-split {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
    gap: 40px; align-items: center; text-align: left; max-width: none;
}
.hero-split .tld-chips, .hero-split .dsearch-tabs { justify-content: flex-start; }
.hero-art { position: relative; z-index: 1; }
.hero-art img { width: 100%; height: auto; display: block; animation: heroFloat 7s ease-in-out infinite; }
@keyframes heroFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.showcase + .showcase { margin-top: 72px; }
.showcase-art { text-align: center; }
.showcase-art img { width: 100%; max-width: 460px; height: auto; }
.showcase-copy .eyebrow { margin-bottom: 8px; display: inline-block; }
.showcase-copy h2 { font-size: clamp(24px, 3.2vw, 34px); color: var(--navy); margin-bottom: 14px; }
.showcase-copy p { color: var(--muted); font-size: 15.5px; line-height: 1.7; margin-bottom: 18px; }
.showcase-list { list-style: none; margin-bottom: 26px; }
.showcase-list li { position: relative; padding: 5px 0 5px 30px; font-size: 14.5px; color: var(--text); font-weight: 500; }
.showcase-list li::before {
    content: "✓"; position: absolute; left: 0; top: 4px;
    width: 21px; height: 21px; border-radius: 50%;
    background: var(--success-bg, #f0fdf4); color: var(--success);
    font-weight: 800; font-size: 12.5px;
    display: inline-flex; align-items: center; justify-content: center;
}

@media (max-width: 900px) {
    .hero-inner.hero-split { grid-template-columns: 1fr; text-align: center; gap: 26px; }
    .hero-split .tld-chips, .hero-split .dsearch-tabs { justify-content: center; }
    .hero-art { order: -1; }
    .hero-art img { max-width: 300px; margin: 0 auto; }
    .showcase { grid-template-columns: 1fr; gap: 26px; }
    .showcase + .showcase { margin-top: 52px; }
    .showcase-art { order: -1; }
    .showcase-art img { max-width: 320px; }
    .showcase.flip .showcase-art { order: -1; }
}
@media (min-width: 901px) {
    .showcase.flip .showcase-art { order: 2; }
}

/* Auth status states (verify email, expired links, 2FA) */
.auth-state { text-align: center; }
.auth-state h1 { margin-bottom: 8px; }
.auth-state .sub { max-width: 360px; margin-left: auto; margin-right: auto; }
.state-icon { font-size: 42px; line-height: 1; margin-bottom: 14px; }

/* Very small phones: keep the utility bar on one tidy line */
@media (max-width: 430px) {
    .utilbar-left { display: none; }
    .utilbar-inner { justify-content: flex-end; }
    .utilbar-right { gap: 10px; }
}

/* ============================================================
   FRAMES, DEVICE MOCKUPS & DECORATIVE POLISH
   Reusable visual "frames" for illustrations across the site.
   ============================================================ */

/* Soft framed panel behind an illustration */
.art-frame {
    position: relative;
    padding: 24px;
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg, var(--bg-softer), #E9F3FB);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.art-frame::before,
.art-frame::after {
    content: ""; position: absolute; width: 12px; height: 12px; border-radius: 50%;
}
.art-frame::before { top: 16px; right: 16px; background: var(--orange); opacity: .7; }
.art-frame::after  { bottom: 16px; left: 16px; background: var(--lime); opacity: .75; }
.art-frame img, .art-frame svg { width: 100%; height: auto; display: block; }
.art-frame.on-dark {
    background: rgba(255, 255, 255, .10);
    border-color: rgba(255, 255, 255, .22);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .22);
}

/* Browser window chrome — wraps art to read as a real device/screen */
.browser-frame {
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.browser-frame .bf-bar {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 14px; background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
}
.browser-frame .bf-dots { display: flex; gap: 6px; }
.browser-frame .bf-dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.browser-frame .bf-dots i:nth-child(1) { background: #ff5f57; }
.browser-frame .bf-dots i:nth-child(2) { background: #febc2e; }
.browser-frame .bf-dots i:nth-child(3) { background: #28c840; }
.browser-frame .bf-url {
    flex: 1; height: 24px; border-radius: 12px;
    background: #fff; border: 1px solid var(--border);
    display: flex; align-items: center; gap: 7px; padding: 0 12px;
    font-size: 11.5px; color: var(--muted); font-family: var(--font);
}
.browser-frame .bf-url svg { width: 12px; height: 12px; flex: none; }
.browser-frame .bf-body { padding: 22px; background: linear-gradient(160deg, var(--bg-softer), #E9F3FB); }
.browser-frame .bf-body img, .browser-frame .bf-body svg { width: 100%; height: auto; display: block; }

/* Phone frame */
.device-phone {
    position: relative; width: 200px; max-width: 62%;
    border-radius: 30px; background: var(--navy); padding: 14px 11px 16px;
    box-shadow: var(--shadow-lg); margin: 0 auto;
}
.device-phone::before {
    content: ""; position: absolute; top: 15px; left: 50%; transform: translateX(-50%);
    width: 54px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .28);
}
.device-phone .dp-screen { border-radius: 20px; overflow: hidden; background: #fff; margin-top: 16px; }
.device-phone .dp-screen img, .device-phone .dp-screen svg { width: 100%; height: auto; display: block; }

/* Dotted decorative section background */
.section.has-dots { position: relative; }
.section.has-dots::before {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(var(--border-strong) 1.1px, transparent 1.1px);
    background-size: 24px 24px; opacity: .3; pointer-events: none;
}
.section.has-dots > .container { position: relative; z-index: 1; }

/* Accent top-border + lift on feature cards (frame feel everywhere) */
.feature-card { position: relative; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.feature-card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--lime)); opacity: 0; transition: opacity .18s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-card:hover::before { opacity: 1; }

/* Float the whole hero device frame, not the art inside it */
.hero-art .browser-frame { animation: heroFloat 7s ease-in-out infinite; }
.hero-art .browser-frame img { animation: none; }

/* Compact framed illustration for page heros */
.page-illus { max-width: 420px; margin: 0 auto; }
.page-illus img, .page-illus svg { width: 100%; height: auto; display: block; }

@media (max-width: 760px) {
    .browser-frame .bf-url { display: none; }
    .art-frame { padding: 16px; }
    .browser-frame .bf-body { padding: 16px; }
}

/* ============================================================
   MOBILE SAFETY — stop horizontal overflow / "overscaling"
   (applies site-wide + client area, which both load style.css)
   ============================================================ */
html, body { max-width: 100%; overflow-x: hidden; }
img, svg, canvas, video, iframe { max-width: 100%; height: auto; }
table { max-width: 100%; }
h1, h2, h3 { overflow-wrap: break-word; }
pre, code, .secret-box span, .field-hint, .def-row dd, td, li { overflow-wrap: anywhere; }
/* Flex/grid children shrink to fit instead of pushing the page wider */
.hero-split > *, .showcase > *, .features-grid > *, .plans-grid > *,
.stat-grid > *, .ca-cols > *, .ca-cols-half > *, .next-steps > * { min-width: 0; }
/* Wide tables scroll inside their box, never the whole page */
.tbl-wrap, .table-wrap, .data-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 600px) {
    .container { padding-left: 15px; padding-right: 15px; }
    .browser-frame .bf-body, .art-frame { padding: 13px; }
    .hero-art .browser-frame { max-width: 340px; margin: 0 auto; }
    .ns-step { gap: 10px; }
}
