:root {
  --ink: #141618;
  --paper: #f0f1f3;
  --card: #ffffff;
  --line: #e3e6eb;
  --mute: #6b7280;
  --seal: #b86b3c;
  --ok: #2f7a5a;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20,22,24,.04), 0 16px 40px rgba(20,22,24,.07);
  --pad: clamp(16px, 4vw, 28px);
  --max: 1100px;
}

* { box-sizing: border-box; }
html {
  margin: 0;
  padding: 0;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  padding: 0;
  font-family: "Manrope", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  min-height: 100dvh;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; letter-spacing: -.03em; font-weight: 800; }

.nav {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top, 0px)) var(--pad) 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: clamp(15px, 3.8vw, 17px);
  min-width: 0;
}
.nav-brand span:last-child {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.seal, .logo-mark {
  width: 34px; height: 34px; flex: none;
  border-radius: 9px;
  display: block;
  object-fit: cover;
  background: #1c1f24;
  height: 34px !important;
  max-width: none;
}
.nav-links {
  display: flex; align-items: center; gap: clamp(10px, 2.5vw, 18px);
  font-size: 14px; font-weight: 650; color: var(--mute); flex: none;
}
.nav-links a:hover { color: var(--ink); }
.btn-nav {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--seal); color: #fff !important;
  padding: 9px 14px; min-height: 40px; border-radius: 10px; white-space: nowrap;
}

.hero {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: clamp(20px, 4vw, 36px) var(--pad) clamp(32px, 5vw, 48px);
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: clamp(18px, 3vw, 28px);
  align-items: center;
}
.eyebrow {
  color: var(--seal); font-weight: 750; font-size: 13px;
  letter-spacing: .04em; text-transform: uppercase; margin: 0 0 10px;
}
.hero h1 {
  font-size: clamp(28px, 6.5vw, 48px);
  line-height: 1.08;
  overflow-wrap: anywhere;
}
.lead {
  color: var(--ink);
  font-size: clamp(18px, 3.2vw, 22px);
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 10px 0 12px;
  max-width: 28ch;
}
.lead-sub {
  color: var(--mute);
  font-size: clamp(15px, 2.8vw, 17px);
  margin: 0 0 22px;
  max-width: 46ch;
  line-height: 1.45;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-main, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 750; padding: 14px 20px; border-radius: 12px;
  min-height: 48px; text-align: center;
}
.btn-main { background: var(--seal); color: #fff; }
.btn-ghost {
  border: 1px solid var(--line); background: var(--card); font-weight: 700;
}
.hero-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: clamp(16px, 3vw, 22px); box-shadow: var(--shadow);
}
.hero-card-title { font-weight: 800; margin-bottom: 12px; }
.hero-steps { margin: 0; padding-left: 18px; color: var(--mute); }
.hero-steps li { margin: 8px 0; }

.section {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 12px var(--pad) clamp(36px, 6vw, 48px);
  scroll-margin-top: 16px;
}
.section h2 { font-size: clamp(22px, 4.5vw, 28px); margin-bottom: 8px; }
.section-lead { color: var(--mute); margin: 0 0 18px; font-size: clamp(14px, 2.5vw, 16px); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow); min-width: 0;
}
.f-num {
  font-family: "IBM Plex Mono", monospace; color: var(--seal); font-weight: 600;
  font-size: 13px; margin-bottom: 10px;
}
.feature h3 { font-size: 17px; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--mute); font-size: 14px; }

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  gap: 12px;
}
.plan {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow);
  transition: border-color .15s, transform .15s;
  min-width: 0;
}
@media (hover: hover) {
  .plan:hover { border-color: var(--seal); transform: translateY(-2px); }
}
.plan.best { border-color: color-mix(in srgb, var(--seal) 45%, var(--line)); }
.plan-title { font-weight: 800; overflow-wrap: anywhere; }
.plan-days { color: var(--mute); font-size: 13px; margin-top: 4px; }
.plan-price {
  font-size: clamp(24px, 5vw, 28px); font-weight: 800;
  margin-top: 14px; letter-spacing: -.03em;
}
.tag {
  display: inline-block; margin-left: 8px; font-size: 10px; font-weight: 750;
  color: var(--seal); border: 1px solid color-mix(in srgb, var(--seal) 40%, transparent);
  border-radius: 6px; padding: 2px 7px; vertical-align: middle; text-transform: uppercase;
}
.plan-notes {
  margin-top: 22px;
  padding: 18px 18px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.plan-notes p {
  margin: 0 0 10px;
  color: var(--mute);
  font-size: 14px;
  line-height: 1.45;
}
.plan-notes p:last-child { margin-bottom: 0; }

/* Site footer (DIYORDE-like structure, Imprint palette) */
.site-footer {
  margin-top: 24px;
  background: #17191c;
  color: rgba(255, 255, 255, .78);
}
.site-footer-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: clamp(36px, 6vw, 52px) var(--pad) calc(28px + env(safe-area-inset-bottom, 0px));
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: clamp(24px, 4vw, 40px);
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.footer-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 17px; color: #fff; letter-spacing: .02em;
}
.footer-brand .logo-mark {
  width: 32px; height: 32px; border-radius: 8px;
}
.lang-pill {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .85);
  font-size: 13px; font-weight: 650;
  width: fit-content;
}
.lang-pill svg { flex: none; opacity: .85; }
.footer-col { display: grid; gap: 10px; align-content: start; }
.footer-h {
  color: #fff; font-weight: 750; font-size: 14px;
  margin-bottom: 4px;
}
.footer-col a {
  color: rgba(255, 255, 255, .62);
  font-size: 14px; font-weight: 550;
  transition: color .15s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  padding-top: 22px;
  display: grid; gap: 8px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .45);
  line-height: 1.45;
  max-width: 72ch;
}
.footer-bottom p { margin: 0; }

.legal-page {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 12px var(--pad) 40px;
}
.legal-page h1 {
  font-size: clamp(24px, 5vw, 32px);
  margin-bottom: 6px;
}
.legal-updated {
  color: var(--mute); font-size: 13px; margin: 0 0 22px;
}
.legal-body {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(18px, 4vw, 28px);
  color: var(--ink);
  font-size: 15px;
}
.legal-body h2 {
  font-size: 17px; margin: 22px 0 8px;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li {
  color: var(--mute); line-height: 1.55;
}
.legal-body p { margin: 0 0 10px; }
.legal-body ul { margin: 0 0 12px; padding-left: 18px; }
.legal-body li { margin: 4px 0; }

/* Auth */
.auth-body {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top, 0px)) var(--pad) max(24px, env(safe-area-inset-bottom, 0px));
}
.auth-card {
  width: min(420px, 100%);
  background: var(--card); border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(22px, 5vw, 32px) clamp(18px, 4vw, 26px);
  box-shadow: var(--shadow); text-align: center;
}
.auth-card h1 { font-size: clamp(22px, 5vw, 26px); margin: 14px 0 6px; }
.auth-sub { color: var(--mute); margin: 0 0 20px; font-size: 14px; }
.widget-wrap {
  display: flex; justify-content: center; align-items: center;
  min-height: 48px; margin: 8px 0 16px;
  overflow: hidden;
}
.widget-wrap iframe { max-width: 100% !important; }
.auth-hint { color: var(--mute); font-size: 12.5px; margin: 0 0 16px; }
.auth-error {
  background: rgba(194,59,59,.08); border: 1px solid rgba(194,59,59,.25);
  color: #c23b3b; padding: 10px 12px; border-radius: 10px; font-size: 13px;
  margin-bottom: 14px; text-align: left;
}
.back { color: var(--mute); font-size: 13px; font-weight: 650; display: inline-block; margin-top: 8px; }
.center { justify-content: center; }

.auth-wide { width: min(440px, 100%); }
.auth-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  background: var(--paper); border-radius: 12px; padding: 4px; margin: 0 0 18px;
}
.auth-tab {
  border: none; background: transparent; font-family: inherit; font-weight: 750;
  font-size: 13.5px; padding: 10px; min-height: 42px; border-radius: 10px; cursor: pointer; color: var(--mute);
}
.auth-tab.active { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.auth-pane.hidden { display: none; }
.auth-form { display: grid; gap: 12px; text-align: left; }
.auth-form label {
  display: grid; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--mute);
}
.auth-form input {
  width: 100%; border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 12px; min-height: 46px; font: inherit; font-weight: 600; color: var(--ink); background: #fff;
  box-sizing: border-box;
}
.auth-form input:focus { outline: 2px solid color-mix(in srgb, var(--seal) 35%, transparent); border-color: var(--seal); }
.btn-main.full { width: 100%; border: none; cursor: pointer; font: inherit; }
.auth-or {
  display: flex; align-items: center; gap: 12px; margin: 16px 0 12px; color: var(--mute); font-size: 12px; font-weight: 650;
}
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Tablet */
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; }
  .hero-card { order: -1; max-width: 420px; }
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Phone */
@media (max-width: 640px) {
  .nav-links a:not(.btn-nav) { display: none; }
  .cta-row { flex-direction: column; }
  .btn-main, .btn-ghost { width: 100%; }
  .hero-card { max-width: none; }
  .plans { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
}

/* Narrow phone */
@media (max-width: 380px) {
  .plans { grid-template-columns: 1fr; }
  .btn-nav { padding: 9px 12px; font-size: 13px; }
  .seal, .logo-mark { width: 30px; height: 30px !important; }
}

/* Large desktop */
@media (min-width: 1200px) {
  .hero { padding-top: 48px; }
}
