:root {
  --bg: #f8f7fd;
  --surface: #ffffff;
  --ink: #1c1a3a;
  --ink-soft: #64628c;
  --line: #e7e4f6;
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --brand-soft: #eaf1ff;
  --brand-gradient: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  --accent: #10b981;
  --accent-amber: #f5a623;
  --accent-pink: #ff5c8a;
  --accent-cyan: #17b8c9;
  --accent-violet: #8b5cf6;
  --danger: #ef4444;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 45px rgba(37, 99, 235, .09);
  --shadow-sm: 0 4px 14px rgba(37, 99, 235, .07);
  --font: "Outfit", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

:root[data-theme="dark"] {
  --bg: #0e1122;
  --surface: #171b30;
  --ink: #eef0fa;
  --ink-soft: #9ea3c7;
  --line: #2b3050;
  --brand: #5b8dff;
  --brand-dark: #4a76e8;
  --brand-soft: #1f2947;
  --shadow: 0 20px 45px rgba(0, 0, 0, .5);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, .4);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  transition: background .2s, color .2s;
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
a { color: var(--brand); text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: min(1080px, 92vw); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
:root[data-theme="dark"] .site-header { background: rgba(14, 17, 34, 0.85); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: .5rem; color: var(--ink); font-size: 1.2rem; font-weight: 600; }
.brand-mark { height: 2rem; width: auto; display: block; }
.brand-text strong { color: var(--brand); font-weight: 800; }
.nav { display: flex; gap: .3rem; }
.nav a { color: var(--ink-soft); font-weight: 600; padding: .4rem .8rem; border-radius: 999px; transition: color .15s, background .15s; }
.nav a:hover { color: var(--brand); background: var(--brand-soft); }
.nav a.is-current { color: var(--brand); font-weight: 700; background: var(--brand-soft); }

/* Header right group + language switcher (Google Translate powered) */
.header-right { display: flex; align-items: center; gap: 1rem; }

.lang-switch { position: relative; top: 1px; display: flex; align-items: center; gap: 5px; flex: none; }
.lang-switch svg { color: var(--ink-soft); flex: none; }
.lang-switch::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 6px; height: 6px;
  border-right: 1.5px solid var(--ink-soft); border-bottom: 1.5px solid var(--ink-soft);
  transform: translateY(-65%) rotate(45deg); pointer-events: none;
}
.lang-switch select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  border-radius: 8px; padding: 6px 22px 6px 8px; font-size: 12.5px; font-weight: 700;
  font-family: inherit; cursor: pointer; outline: none; box-shadow: var(--shadow-sm);
  transition: border-color .15s;
}
.lang-switch select:hover { border-color: var(--brand); }

/* Theme toggle */
.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-soft);
  cursor: pointer; flex: none; padding: 0; box-shadow: var(--shadow-sm);
  transition: color .15s, border-color .15s, background .15s;
}
.theme-toggle:hover { color: var(--brand); border-color: var(--brand); }
.theme-toggle svg { flex: none; }

/* Hamburger menu (mobile only) */
.hamburger-btn {
  display: none; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  cursor: pointer; flex: none; padding: 0; box-shadow: var(--shadow-sm); font-size: 1.1rem;
  transition: color .15s, border-color .15s, background .15s;
}
.hamburger-btn:hover { color: var(--brand); border-color: var(--brand); }
.hamburger-btn.is-open { color: var(--brand); border-color: var(--brand); background: var(--brand-soft); }

/* Mobile nav dropdown panel (links cloned in via nav-toggle.js) */
.mobile-nav {
  display: flex; flex-direction: column;
  position: sticky; top: 64px; z-index: 19;
  background: var(--surface); border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow); padding: .4rem clamp(1rem, 4vw, 2rem);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a {
  color: var(--ink-soft); font-weight: 600; padding: .9rem .5rem;
  border-bottom: 1px solid var(--line);
  transition: color .15s, background .15s;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--brand); background: var(--brand-soft); }
.mobile-nav a.is-current { color: var(--brand); font-weight: 700; background: var(--brand-soft); }

/* Google Translate widget: keep the engine, hide its own UI */
#google_translate_element { display: none !important; }
.goog-te-banner-frame { display: none !important; }
body { top: 0 !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }

/* Hero */
.hero {
  position: relative;
  text-align: center;
  overflow: hidden;
  padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem);
  background: linear-gradient(180deg, #f7f9ff, var(--bg) 60%);
}
:root[data-theme="dark"] .hero { background: linear-gradient(180deg, #141833, var(--bg) 60%); }
.hero .container { position: relative; z-index: 1; }
.pill {
  display: inline-block;
  width: fit-content;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--brand-dark);
  font-weight: 600;
  padding: .45rem 1rem;
  border-radius: 999px;
  font-size: .85rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.2rem;
}
.hero .pill { display: block; }
.hero h1 {
  font-size: clamp(1.9rem, 5vw, 3.1rem); font-weight: 800; letter-spacing: -.02em;
  background: var(--brand-gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { max-width: 620px; margin: 1rem auto 1.8rem; color: var(--ink-soft); font-size: 1.08rem; }
.hero-alt { margin: 1.2rem 0 0; font-size: .95rem; color: var(--ink-soft); }
.hero-alt a { font-weight: 700; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  border: none; cursor: pointer; font-family: inherit; font-weight: 700;
  padding: .7rem 1.3rem; border-radius: 12px; font-size: 1rem;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, filter .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand-gradient); color: #fff; box-shadow: 0 10px 22px rgba(109, 94, 248, .32); }
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-2px); box-shadow: 0 14px 28px rgba(109, 94, 248, .38); }
.btn-ghost { background: transparent; color: var(--ink-soft); border: 1px solid var(--line); }
.btn-ghost:hover { color: var(--brand); border-color: var(--brand); background: var(--brand-soft); }
.btn-lg { padding: .85rem 1.8rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* Stepper */
.stepper {
  list-style: none; display: flex; gap: 0; margin: .5rem auto 1.8rem;
  padding: 0; max-width: 780px; counter-reset: step;
}
.step {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: .5rem;
  position: relative; font-size: .9rem; font-weight: 600; color: var(--ink-soft); text-align: center;
}
.step::before, .step::after {
  content: ""; position: absolute; top: 17px; height: 3px; background: var(--line); z-index: 0;
}
.step::before { left: 0; width: 50%; }
.step::after { right: 0; width: 50%; }
.step:first-child::before, .step:last-child::after { display: none; }
.step-num {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--line); color: var(--ink-soft);
  font-weight: 800; position: relative; z-index: 1; transition: all .25s;
}
.step-label { line-height: 1.2; }
.step.is-active { color: var(--brand); }
.step.is-active .step-num { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 5px var(--brand-soft); }
.step.is-done { color: var(--brand); }
.step.is-done .step-num { background: var(--brand-gradient); border-color: transparent; color: #fff; }
.step.is-done .step-num::after { content: "✓"; }
.step.is-done .step-num { font-size: 0; }
.step.is-done .step-num::after { font-size: 1.1rem; }
.step.is-done::before, .step.is-active::before { background: var(--brand); }
.step.is-done::after { background: var(--brand); }

/* Tool */
.tool {
  display: grid; gap: 1.4rem;
  margin: 0 auto;
  max-width: 780px;
}
.panel {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.2rem, 3vw, 1.8rem);
  overflow: hidden;
}
.panel::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--brand-gradient);
}
.panel-head { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.1rem; }
.panel-head h2 { margin: 0; font-size: 1.25rem; }
.step-badge {
  width: 30px; height: 30px; flex: none;
  display: grid; place-items: center;
  background: var(--brand-gradient); color: #fff; border-radius: 50%; font-weight: 700; font-size: .95rem;
}

/* Signature-pad tabs */
.mode-tabs { display: flex; gap: 12px; margin-bottom: 1.4rem; flex-wrap: wrap; }
.tab-btn {
  border: 2px solid var(--line); background: var(--surface); cursor: pointer; font-family: inherit;
  padding: .9rem 1.8rem; border-radius: 11px; font-weight: 700; font-size: 1.05rem;
  color: var(--ink-soft); box-shadow: var(--shadow-sm);
  transition: background .2s, color .2s, border-color .2s, transform .06s;
}
.tab-btn:hover { color: var(--brand); border-color: var(--brand); background: var(--brand-soft); }
.tab-btn:active { transform: translateY(1px); }
.tab-btn.is-active { background: var(--brand-gradient); border-color: transparent; color: #fff; box-shadow: 0 8px 18px rgba(109, 94, 248, .32); }

/* Draw pad */
.pad-wrap { position: relative; margin-bottom: 1rem; }
.sign-pad { width: 100%; height: 240px; border: 2px solid var(--line); border-radius: var(--radius); touch-action: none; cursor: crosshair; display: block; }
.pad-baseline { position: absolute; left: 6%; right: 6%; bottom: 34%; border-bottom: 2px dashed #c4cee0; pointer-events: none; }
.pad-hint { position: absolute; left: 8%; bottom: 34%; transform: translateY(100%); color: #9aa7c2; font-size: .9rem; pointer-events: none; transition: opacity .2s; }

.toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; }
.tool-item { display: flex; align-items: center; gap: .5rem; font-size: .9rem; font-weight: 600; color: var(--ink-soft); }
.tool-item input[type="color"] { width: 40px; height: 32px; border: 1px solid var(--line); border-radius: 7px; background: none; cursor: pointer; padding: 2px; }
.tool-item input[type="range"] { accent-color: var(--brand); }
.btn-sm { padding: .45rem .9rem; font-size: .9rem; }

/* Type mode */
.type-preview { border: 2px solid var(--line); border-radius: var(--radius); min-height: 160px; display: grid; place-items: center; margin-bottom: 1rem; overflow: hidden; padding: 1rem; }
.type-sig { font-size: clamp(2rem, 8vw, 4rem); line-height: 1.1; word-break: break-word; text-align: center; }

/* Output row */
.output-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.output-row .check { margin: 0; }
.output-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.cross-note { text-align: center; margin: 1.4rem auto 0; color: var(--ink-soft); }
.cross-note a { font-weight: 600; }

/* Dropzone */
.dropzone[hidden] { display: none; }
.dropzone {
  display: block; cursor: pointer;
  border: 2px dashed #cfc7f5; border-radius: var(--radius);
  background: var(--bg);
  padding: clamp(1.6rem, 5vw, 2.6rem);
  text-align: center;
  transition: border-color .2s, background .2s, transform .2s;
}
:root[data-theme="dark"] .dropzone { border-color: #3a3f66; }
.dropzone:hover, .dropzone:focus, .dropzone.is-drag {
  border-color: var(--brand); background: var(--brand-soft); outline: none; transform: translateY(-2px);
}
.dz-icon { font-size: 2.2rem; }
.dz-title { font-weight: 700; margin: .5rem 0 .2rem; }
.dz-sub { color: var(--ink-soft); margin: 0; font-size: .95rem; }
.dz-link { color: var(--brand); font-weight: 700; }

.upload-preview {
  border: 2px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem; text-align: center;
}
.upload-preview img { max-height: 200px; width: auto; margin: 0 auto 1rem; object-fit: contain; }

/* Fields */
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .35rem; }
.field input, .field select {
  width: 100%; font-family: inherit; font-size: 1rem;
  padding: .6rem .75rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft);
}
.hint { margin: .4rem 0 0; font-size: .85rem; color: var(--ink-soft); min-height: 1.1em; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.check { display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; font-size: .95rem; color: var(--ink-soft); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }

/* Result */
.preview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.preview-card { margin: 0; }
.preview-card figcaption { font-weight: 700; font-size: .9rem; margin-bottom: .5rem; }
.preview-img {
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  min-height: 120px; display: grid; place-items: center; padding: .5rem;
}
.preview-img img { max-height: 180px; width: auto; object-fit: contain; }
.checker {
  background-image:
    linear-gradient(45deg, #eef1f6 25%, transparent 25%),
    linear-gradient(-45deg, #eef1f6 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #eef1f6 75%),
    linear-gradient(-45deg, transparent 75%, #eef1f6 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
}
.meta { list-style: none; padding: 0; margin: .6rem 0 0; font-size: .85rem; color: var(--ink-soft); }
.meta li { display: flex; justify-content: space-between; padding: .15rem 0; border-bottom: 1px dashed var(--line); }
.meta li:last-child { border-bottom: none; }
.meta b { color: var(--ink); font-weight: 600; }
.status {
  text-align: center; font-size: .95rem; padding: .7rem; border-radius: 9px;
  background: var(--brand-soft); color: var(--brand-dark); margin: 0 0 1rem;
}
.status.ok { background: #e7f8f1; color: #0a7a53; }
.status.warn { background: #fff4e5; color: #9a5b00; }
.result-actions { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center; }

/* Sections */
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-title { text-align: center; font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 800; }
.section-sub { text-align: center; color: var(--ink-soft); margin: -0.3rem 0 2rem; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2rem; }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; margin-top: 2rem; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon {
  width: 42px; height: 42px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); border-radius: 12px; font-weight: 800; margin-bottom: .8rem;
  font-size: 1.05rem;
}
/* Rotate a friendly palette across repeating feature cards */
.cards-3 .feature:nth-child(6n+2) .feature-icon, .cards-4 .feature:nth-child(6n+2) .feature-icon { background: #e3f8ef; color: #0a9d68; }
.cards-3 .feature:nth-child(6n+3) .feature-icon, .cards-4 .feature:nth-child(6n+3) .feature-icon { background: #fff2df; color: #c1780a; }
.cards-3 .feature:nth-child(6n+4) .feature-icon, .cards-4 .feature:nth-child(6n+4) .feature-icon { background: #ffe3ec; color: #d6336c; }
.cards-3 .feature:nth-child(6n+5) .feature-icon, .cards-4 .feature:nth-child(6n+5) .feature-icon { background: #e0f7fa; color: #0891a3; }
.cards-3 .feature:nth-child(6n+6) .feature-icon, .cards-4 .feature:nth-child(6n+6) .feature-icon { background: #f2e8ff; color: #7c3aed; }
.feature h3 { font-size: 1.15rem; }
.feature p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* Photo/Signature type toggle (dual-mode pages, e.g. SSC) */
.type-toggle {
  display: flex; gap: .5rem; background: var(--surface-alt, #f4f3ff);
  border: 1px solid var(--line); border-radius: 999px; padding: .3rem;
  margin: 0 0 1.4rem; width: fit-content;
}
.type-toggle button {
  cursor: pointer; border: none; background: transparent; font-family: inherit;
  font-size: .95rem; font-weight: 700; color: var(--ink-soft);
  padding: .55rem 1.3rem; border-radius: 999px; transition: all .18s;
}
.type-toggle button.is-active { background: var(--brand-gradient); color: #fff; box-shadow: 0 6px 16px rgba(109, 94, 248, .3); }
.type-toggle button:not(.is-active):hover { color: var(--brand); }

/* Preset chips */
.preset-chips { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; }
.chip {
  cursor: pointer; border: 1px solid var(--line); background: var(--surface);
  border-radius: 999px; padding: .6rem 1.1rem; font-family: inherit; font-size: .92rem;
  font-weight: 600; color: var(--ink); box-shadow: var(--shadow-sm); transition: all .18s;
}
.chip small { display: block; font-weight: 400; color: var(--ink-soft); font-size: .78rem; }
.chip:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); transform: translateY(-2px); }

/* FAQ */
.faq-list { max-width: 760px; margin: 2rem auto 0; display: grid; gap: .8rem; }
details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1rem 1.2rem; box-shadow: var(--shadow-sm); transition: border-color .15s;
}
details[open] { border-color: var(--brand); }
details summary { cursor: pointer; font-weight: 700; list-style: none; position: relative; padding-right: 1.5rem; }
details summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.2rem; font-weight: 700; line-height: 1;
  color: var(--brand); width: 22px; height: 22px; display: grid; place-items: center;
  background: var(--brand-soft); border-radius: 50%;
}
details[open] summary::after { content: "–"; }
details p { margin: .8rem 0 0; color: var(--ink-soft); }

/* About page */
.about { max-width: 820px; padding-bottom: 1rem; }
.story { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.5rem, 4vw, 2.6rem); margin-top: -1.5rem; }
.story h2 { font-size: 1.5rem; }
.story p { color: var(--ink); font-size: 1.05rem; margin: 0 0 1.1rem; }
.story blockquote {
  margin: 1.6rem 0; padding: 1.1rem 1.4rem; border-left: 4px solid var(--brand);
  background: var(--brand-soft); border-radius: 0 10px 10px 0; color: var(--brand-dark);
  font-size: 1.15rem; font-style: italic; line-height: 1.5;
}
.story-cards { padding: clamp(2.5rem, 6vw, 4rem) 0 1rem; }
.story-cards .cards-3 { margin-top: 1.5rem; }
.story-cards .feature-icon { font-size: 1.4rem; background: var(--brand-soft); }
.contact-cta { margin-top: .8rem !important; }
.contact-note { margin-top: 1.6rem; }
.sitemap-page .field { margin-bottom: 1.4rem; }
.sitemap-page .field a { font-size: 1.05rem; }
.mission {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #211a4a, #34216b 60%, #4a2166);
  color: #dbe3f4; border-radius: var(--radius);
  padding: clamp(1.8rem, 5vw, 3rem); text-align: center; margin: 1rem 0 2.5rem;
}
.mission h2 { color: #fff; font-size: 1.6rem; }
.mission p { max-width: 640px; margin: 0 auto 1.6rem; font-size: 1.08rem; position: relative; z-index: 1; }
.mission-cta { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }
.mission .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.mission .btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.1); }

/* Footer */
.site-footer { background: linear-gradient(135deg, #1c1a3a, #241c52); color: #cdd6ea; padding: 2rem 0; margin-top: 2rem; }
.footer-inner { text-align: center; }
.footer-inner p { margin: .2rem 0; }
.footer-inner strong { color: #fff; }
.muted { font-size: .88rem; color: #9a97c9; }
.footer-links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.4rem;
  margin: 1.2rem 0 .4rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.1);
}
.footer-links a { color: #cdd6ea; font-size: .9rem; font-weight: 600; }
.footer-links a:hover { color: #fff; }
.disclaimer { font-size: .78rem; color: #7f7cab; max-width: 640px; margin: .8rem auto 0 !important; line-height: 1.5; }

/* Responsive */
@media (max-width: 900px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .hamburger-btn { display: flex; }
}
@media (max-width: 720px) {
  .header-inner { height: 56px; }
  .mobile-nav { top: 56px; }
  .header-right { gap: .4rem; }
  .brand-mark { height: 1.6rem; }
  .lang-switch select { font-size: 11px; padding: 6px 20px 6px 6px; }
  .brand-text { font-size: 1rem; }
  .cards-3 { grid-template-columns: 1fr; }
  .cards-4 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .preview-grid { grid-template-columns: 1fr; }
  .stepper { font-size: .72rem; }
  .step-num { width: 30px; height: 30px; font-size: .85rem; }
  .step::before, .step::after { top: 14px; }

  /* Preset chips: swipe sideways instead of wrapping into many tall rows */
  .preset-chips {
    flex-wrap: nowrap; justify-content: flex-start;
    overflow-x: auto; scroll-snap-type: x proximity;
    padding-bottom: .6rem; -webkit-overflow-scrolling: touch;
  }
  .chip { flex: none; scroll-snap-align: start; padding: .55rem .95rem; font-size: .85rem; }
  .chip small { font-size: .72rem; }
  .preset-chips::-webkit-scrollbar { height: 5px; }
  .preset-chips::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
  .preset-chips { scrollbar-width: thin; }
}

@media (max-width: 380px) {
  .brand-text { display: none; }
  .lang-switch select { padding-right: 18px; }
}

/* Signature landing page (index.html) layout: clean premium SaaS — large whitespace */
body[data-mode="signature"] .hero,
body[data-category="upsc"] .hero {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(0.8rem, 1.6vw, 1.28rem);
}
body[data-mode="signature"] .stepper,
body[data-category="upsc"] .stepper { margin-top: .16rem; }
body[data-mode="signature"] .section,
body[data-category="upsc"] .section { padding: clamp(2.2rem, 4.5vw, 3.4rem) 0; }

/* Hero: single centered column */
.sig-hero-grid {
  display: grid; grid-template-columns: 1fr; max-width: 760px; margin-inline: auto;
  margin-bottom: clamp(0.8rem, 1.92vw, 1.12rem); text-align: center;
}
.sig-hero-copy h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin: 1rem 0 .9rem; }
.sig-highlight { color: var(--brand); }
.sig-hero-copy .hero-sub { margin: 0 0 .8rem; max-width: 100%; }
.sig-trust-line { margin: 0 0 1.6rem; color: var(--ink-soft); font-size: .98rem; }
.sig-trust-line strong { color: var(--ink); }

.sig-mini-features {
  display: grid; grid-template-columns: 1fr 1fr; gap: .9rem;
  margin-bottom: 1.8rem;
}
.sig-mini-feature {
  display: flex; align-items: flex-start; gap: .7rem; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .9rem 1rem; box-shadow: var(--shadow-sm);
}
.sig-mini-icon {
  flex: none; width: 34px; height: 34px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); border-radius: 9px; font-size: 1rem;
}
.sig-mini-feature strong { display: block; font-size: .92rem; }
.sig-mini-feature p { margin: .15rem 0 0; font-size: .82rem; color: var(--ink-soft); }

.sig-hero-cta { display: flex; flex-direction: column; align-items: center; gap: .8rem; }
.sig-hero-cta .hero-alt { margin: 0; }
.sig-hero-subhead { margin: 2.07rem 0 0; font-size: clamp(1.5rem, 3vw, 2rem); color: var(--ink); font-weight: 800; }
.sig-hero-subtext { margin: .6rem 0 0; max-width: 560px; margin-inline: auto; color: var(--ink-soft); font-size: 1rem; }

@media (max-width: 480px) {
  .sig-mini-features { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .sig-mini-feature { padding: .7rem .6rem; gap: .5rem; }
  .sig-mini-icon { width: 28px; height: 28px; font-size: .85rem; border-radius: 8px; }
  .sig-mini-feature strong { font-size: .8rem; }
  .sig-mini-feature p { font-size: .72rem; margin-top: .1rem; }
}
