:root {
  --ink: #0b1f1d;
  --ink-soft: #3d524f;
  --muted: #6b7f7c;
  --line: #dfe7e5;
  --bg: #f7faf9;
  --card: #ffffff;
  --brand: #0e3b36;
  --brand-2: #12665d;
  --accent: #f4a340;
  --accent-ink: #5a3306;
  --mint: #5eead4;
  --up: #16a34a;
  --down: #dc2626;
  --pending: #a3a3a3;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 31, 29, .06), 0 8px 24px rgba(11, 31, 29, .06);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 16px; }
a { color: var(--brand-2); }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }

.site-header { background: rgba(247, 250, 249, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--ink); text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--ink); }
.nav-toggle { display: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 10px; font-weight: 700; font-size: .95rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-2); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-danger { background: #fff; color: var(--down); border-color: #f3c4c4; }
.btn-sm { padding: 7px 12px; font-size: .85rem; }
.nav .btn { color: #fff; }

.hero { padding: 72px 0 56px; background: radial-gradient(1200px 400px at 80% -10%, rgba(94, 234, 212, .25), transparent), radial-gradient(800px 300px at 0% 0%, rgba(244, 163, 64, .14), transparent); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-2); background: rgba(94, 234, 212, .2); padding: 4px 10px; border-radius: 999px; margin-bottom: 16px; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 560px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 12px; }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.mock-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); gap: 12px; }
.mock-row:last-child { border-bottom: 0; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.dot.up { background: var(--up); box-shadow: 0 0 0 4px rgba(22, 163, 74, .15); }
.dot.down { background: var(--down); box-shadow: 0 0 0 4px rgba(220, 38, 38, .15); }
.dot.pending, .dot.paused { background: var(--pending); }
.bars { display: flex; gap: 2px; height: 22px; align-items: flex-end; }
.bars span { width: 4px; height: 100%; border-radius: 2px; background: var(--up); opacity: .8; }
.bars span.bad { background: var(--down); }


.section { padding: 64px 0; }
.section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 36px; }
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.feature { padding: 24px; }
.feature .icon { width: 42px; height: 42px; border-radius: 10px; background: rgba(94, 234, 212, .25); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: 12px; color: var(--brand); font-weight: 800; }

.price { display: flex; flex-direction: column; }
.price .amount { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; }
.price ul { padding-left: 18px; margin: 12px 0 20px; color: var(--ink-soft); flex: 1; }
.price.featured { border: 2px solid var(--brand); }

.cta { background: var(--brand); color: #fff; border-radius: 20px; padding: 44px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin: 0; }

.site-footer { padding: 48px 0 32px; border-top: 1px solid var(--line); background: #fff; font-size: .92rem; color: var(--ink-soft); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px; }
.site-footer h4 { margin: 0 0 10px; font-size: .9rem; color: var(--ink); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.legal-line { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 18px; font-size: .85rem; color: var(--muted); }

.doc { padding: 48px 0 64px; }
.doc h2 { font-size: 1.35rem; margin-top: 2em; }
.doc li { margin-bottom: .4em; }
.doc .box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 16px 0; }

.form-card { max-width: 560px; margin: 48px auto 64px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field input[type=text], .field input[type=email], .field input[type=password], .field input[type=url], .field input[type=tel], .field input[type=number], .field select, .field textarea {
  width: 100%; padding: 11px 12px; border: 1px solid #cdd9d6; border-radius: 10px; font: inherit; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--mint); border-color: var(--brand-2); }
.field .help { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.errorlist { list-style: none; padding: 0; margin: 6px 0 0; color: var(--down); font-size: .85rem; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.check input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.check label { font-weight: 500; font-size: .9rem; }
.consent { background: #f2f8f7; border: 1px solid #cfe3df; border-radius: 12px; padding: 14px; margin: 6px 0 16px; }
.consent .disclosure { font-size: .82rem; color: var(--ink-soft); margin: 0; }
.consent .title { font-weight: 700; font-size: .9rem; margin-bottom: 8px; }
.hp { position: absolute; left: -9999px; }

.messages { list-style: none; padding: 0; margin: 16px 0; }
.messages li { background: #ecfdf5; border: 1px solid #bbf7d0; color: #14532d; padding: 10px 14px; border-radius: 10px; }
.notice { background: #fff7ed; border: 1px solid #fed7aa; color: #7c2d12; padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; font-size: .9rem; }

.app { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.sidebar { background: var(--brand); color: #d1e7e3; padding: 22px 16px; }
.sidebar .brand { color: #fff; margin-bottom: 28px; }
.sidebar nav a { display: block; color: #d1e7e3; text-decoration: none; padding: 9px 12px; border-radius: 8px; font-weight: 600; font-size: .93rem; margin-bottom: 2px; }
.sidebar nav a.active, .sidebar nav a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.sidebar .who { margin-top: 28px; font-size: .8rem; color: #9cc2bc; word-break: break-all; }
.main { padding: 28px 32px 48px; min-width: 0; }
.main-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.main-head h1 { font-size: 1.6rem; margin: 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
.stat .n { font-size: 1.9rem; font-weight: 800; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table-wrap { overflow-x: auto; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.badge.up { background: #dcfce7; color: #166534; }
.badge.down { background: #fee2e2; color: #991b1b; }
.badge.pending, .badge.paused { background: #f1f5f9; color: #475569; }
.empty { text-align: center; padding: 40px 20px; }

.status-hero { padding: 48px 0 24px; text-align: center; }
.status-banner { border-radius: 14px; padding: 18px; font-weight: 700; margin: 0 auto 24px; max-width: 760px; }
.status-banner.ok { background: #dcfce7; color: #166534; }
.status-banner.bad { background: #fee2e2; color: #991b1b; }

@media (max-width: 900px) {
  .hero .wrap, .grid-3, .grid-2, .footer-grid { grid-template-columns: 1fr; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 16px 20px; border-bottom: 1px solid var(--line); gap: 12px; }
  .nav.open { display: flex; }
  .nav-toggle { display: inline-flex; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font: inherit; cursor: pointer; }
  .app { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .sidebar { padding: 14px 16px; }
  .sidebar nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .sidebar .who { display: none; }
  .sidebar .brand { margin-bottom: 10px; }
  .main { padding: 20px 16px 40px; }
  .stats { grid-template-columns: 1fr 1fr 1fr; }
  .row-2 { grid-template-columns: 1fr; }
  .cta { padding: 28px; }
  .wrap { padding: 0 16px; }
}

.frow { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; padding: 36px 0; border-top: 1px solid var(--line); }
.section-head + .frow { border-top: 0; padding-top: 8px; }
.frow-text h3 { font-size: 1.3rem; margin-bottom: .6em; }
.frow-text p { max-width: 460px; }
.ui-card { background: #fbfcfc; border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; font-size: .88rem; }
.ui-title { font-weight: 700; font-size: .85rem; margin-bottom: 10px; }
.log { width: 100%; border-collapse: collapse; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .8rem; }
.log td { padding: 7px 8px 7px 0; border-top: 1px solid var(--line); white-space: nowrap; }
.log tr:first-child td { border-top: 0; }
.log .ok { color: var(--up); font-weight: 700; }
.log .bad { color: var(--down); font-weight: 700; }
.log .right { text-align: right; padding-right: 0; }
.log tr.warn td { color: #9a3412; background: #fff7ed; }
.tl { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--line); }
.tl li { position: relative; display: flex; gap: 12px; padding: 7px 0; }
.tl li::before { content: ""; position: absolute; left: -20px; top: 13px; width: 10px; height: 10px; border-radius: 50%; background: var(--pending); }
.tl li.hot::before { background: var(--down); }
.tl li.cool::before { background: var(--up); }
.tl .t { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .8rem; color: var(--muted); padding-top: 1px; }
.also { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 28px 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.also dt { font-weight: 700; margin-bottom: 4px; }
.also dd { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) {
  .frow { grid-template-columns: 1fr; gap: 18px; padding: 28px 0; }
  .also { grid-template-columns: 1fr; gap: 16px; }
  .log td { white-space: normal; }
}

.iphone { --w: 272px; position: relative; width: var(--w); aspect-ratio: 9 / 19.2; margin: 0 auto; border-radius: calc(var(--w) * .17); padding: calc(var(--w) * .04); background: linear-gradient(150deg, #3a3f45 0%, #16191c 35%, #0b0d0f 70%, #2a2e33 100%); box-shadow: inset 0 0 0 1.5px #4b5157, inset 0 0 0 4px #121416, 0 1px 0 rgba(255, 255, 255, .08), 0 30px 60px -12px rgba(11, 31, 29, .45), 0 18px 36px -18px rgba(0, 0, 0, .5); font-family: -apple-system, "SF Pro Text", "Segoe UI", system-ui, sans-serif; }
.iphone.sm { --w: 236px; }
.iphone::before, .iphone::after { content: ""; position: absolute; background: linear-gradient(90deg, #1d2024, #3b4046); border-radius: 2px; }
.iphone::before { left: -3px; top: 22%; width: 3px; height: 9%; box-shadow: 0 calc(var(--w) * .2) 0 #2b2f34, 0 calc(var(--w) * -.12) 0 -.5px #2b2f34; }
.iphone::after { right: -3px; top: 30%; width: 3px; height: 14%; }
.iphone-screen { position: relative; height: 100%; border-radius: calc(var(--w) * .13); background: #fff; overflow: hidden; display: flex; flex-direction: column; color: #000; }
.ip-status { position: relative; display: flex; align-items: center; justify-content: space-between; padding: calc(var(--w) * .045) calc(var(--w) * .08) 0; height: calc(var(--w) * .14); font-size: calc(var(--w) * .052); font-weight: 600; }
.ip-time { letter-spacing: -.01em; }
.ip-island { position: absolute; left: 50%; top: calc(var(--w) * .035); transform: translateX(-50%); width: 28%; height: calc(var(--w) * .1); background: #000; border-radius: 999px; }
.ip-icons { display: flex; align-items: center; gap: 3px; }
.ip-icons svg { width: calc(var(--w) * .055); height: auto; }
.ip-icons svg { fill: #000; }
.ip-batt { position: relative; width: calc(var(--w) * .08); height: calc(var(--w) * .042); border: 1.3px solid rgba(0, 0, 0, .4); border-radius: 3.5px; padding: 1.3px; }
.ip-batt::after { content: ""; position: absolute; right: -3.5px; top: 3px; width: 1.6px; height: 3.5px; background: rgba(0, 0, 0, .4); border-radius: 0 1px 1px 0; }
.ip-batt i { display: block; height: 100%; width: 78%; background: #000; border-radius: 1.5px; }
.ip-head { display: grid; grid-template-columns: 30px 1fr 30px; align-items: start; padding: 4px 10px 8px; border-bottom: .5px solid #d8d8dc; background: rgba(249, 249, 249, .94); }
.ip-back { color: #0a84ff; padding-top: 12px; }
.ip-contact { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: calc(var(--w) * .04); color: #000; }
.ip-contact img { width: calc(var(--w) * .16); height: calc(var(--w) * .16); border-radius: 50%; }
.ip-contact b { color: #8e8e93; font-weight: 400; }
.ip-thread { flex: 1; padding: 10px 10px 6px; display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
.ip-stamp { text-align: center; font-size: calc(var(--w) * .036); color: #8e8e93; margin: 4px 0 2px; line-height: 1.35; }
.ip-stamp b { font-weight: 600; }
.ip-msg { position: relative; align-self: flex-start; max-width: 84%; background: #e9e9eb; color: #000; border-radius: 17px; padding: 7px 11px; font-size: calc(var(--w) * .047); line-height: 1.32; }
.ip-msg::before { content: ""; position: absolute; left: -6px; bottom: 0; width: 16px; height: 16px; background: #e9e9eb; border-bottom-right-radius: 14px; }
.ip-msg::after { content: ""; position: absolute; left: -10px; bottom: 0; width: 10px; height: 16px; background: #fff; border-bottom-right-radius: 9px; }
.ip-compose { display: flex; align-items: center; gap: 8px; padding: 6px 10px 22px; }
.ip-plus { width: 26px; height: 26px; border-radius: 50%; background: #e9e9eb; color: #8e8e93; display: grid; place-items: center; font-size: 18px; line-height: 1; flex: none; }
.ip-input { flex: 1; border: 1px solid #d1d1d6; border-radius: 999px; padding: 4px 12px; font-size: calc(var(--w) * .045); color: #c7c7cc; }
.ip-home { position: absolute; left: 50%; bottom: 7px; transform: translateX(-50%); width: 36%; height: 4.5px; border-radius: 999px; background: #000; }

.hero .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.hero-visual { display: flex; align-items: flex-start; }
.hero-panel { flex: 1; min-width: 0; padding-right: 70px; }
.hero-panel .mock-row > span:first-child { white-space: nowrap; }
.hero-phone { position: relative; flex: none; margin: 56px 0 0 -52px; filter: drop-shadow(0 30px 40px rgba(11, 31, 29, .18)); }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { flex-direction: column; align-items: center; }
  .hero-panel { width: 100%; padding-right: 22px; }
  .hero-phone { margin: -10px 0 0; filter: none; }
}
}
