/* Image Optimizer — Unified SaaS Design System (Bricolage Grotesque + Instrument Serif + JetBrains Mono) */
:root {
  --ink: #0f2238;
  --ink-2: #364b63;
  --mute: #64788f;
  --navy: #142c47;
  --navy-2: #1c3959;
  --aqua: #67e8f9;
  --aqua-2: #a5f3fc;
  --aqua-d: #0e9eb4;
  --bg: #f3f6fb;
  --card: #ffffff;
  --line: rgba(15, 34, 56, 0.12);
  --ok: #0d9460;
  --warn: #c7721a;
  --radius: 22px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, dl { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--aqua-d); outline-offset: 3px; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 40px); }
.muted { color: var(--mute); }
.small { font-size: 14px; }
.link-inline { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---- Typography accents ---- */
em, .serif-em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--aqua); letter-spacing: 0; }
.kicker, .kicker-sm { display: inline-block; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--aqua-d); margin-bottom: 12px; }
.kicker-sm { margin-bottom: 4px; font-size: 11px; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 15px; border: 1px solid transparent; transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s, transform 0.35s var(--ease); white-space: nowrap; }
.btn i { font-style: normal; transition: transform 0.3s var(--ease); }
.btn:hover i { transform: translateX(4px); }
.btn.lg { height: 54px; padding: 0 28px; font-size: 15.5px; }
.btn.sm { height: 38px; padding: 0 16px; font-size: 13.5px; }
.btn.block { width: 100%; }
.btn.aqua { background: var(--aqua); color: var(--ink); font-weight: 700; }
.btn.aqua:hover { background: var(--aqua-2); transform: translateY(-2px); }
.btn.dark { background: var(--ink); color: #fff; }
.btn.dark:hover { background: var(--navy-2); transform: translateY(-1px); }
.btn.ghost { border-color: var(--line); background: #fff; color: var(--ink); }
.btn.ghost:hover { border-color: var(--ink); background: var(--bg); }
.btn.ghost-light { border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.btn.ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.link { font-weight: 600; font-size: 15px; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---- Shared SaaS Brand Lockup (matching smitdev.online chevron mark) ---- */
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); min-width: 0; }
.brand.light { color: #fff; }
.brand-mark { width: 40px; height: 40px; flex: none; border-radius: 11px; background: var(--aqua); color: var(--ink); display: grid; place-items: center; box-shadow: 0 6px 18px -6px rgba(103, 232, 249, 0.45); }
.brand-mark svg { width: 28px; height: 28px; }
.brand-text { display: flex; flex-direction: column; gap: 1px; line-height: 1.1; }
.brand-name { font-weight: 800; font-size: 16.5px; letter-spacing: -0.02em; white-space: nowrap; }
.brand-sub { font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.68; white-space: nowrap; }

/* ---- Marketing Navigation ---- */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(15, 34, 56, 0.9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: #fff; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.nav-in { height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav-links { display: flex; gap: clamp(16px, 2.4vw, 32px); font-size: 14.5px; font-weight: 500; color: rgba(255, 255, 255, 0.78); }
.nav-links a:hover { color: #fff; }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-login { color: rgba(255, 255, 255, 0.88); font-size: 14.5px; }
.nav-mob { display: none; position: relative; }
.nav-mob summary { list-style: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.22); display: grid; place-content: center; gap: 5px; cursor: pointer; }
.nav-mob summary::-webkit-details-marker { display: none; }
.nav-mob summary span { width: 18px; height: 2px; background: #fff; border-radius: 2px; }
.nav-mob-menu { position: absolute; right: 0; top: 50px; width: 250px; background: var(--navy); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 18px; padding: 14px; display: grid; gap: 8px; box-shadow: 0 28px 60px rgba(0, 0, 0, 0.5); }
.nav-mob-menu a:not(.btn) { padding: 8px 10px; border-radius: 10px; color: rgba(255, 255, 255, 0.85); font-weight: 500; }
.nav-mob-menu a:not(.btn):hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
@media (max-width: 920px) { .nav-links, .nav-login, .nav-cta > .btn { display: none; } .nav-mob { display: block; } }

/* ---- Hero & Interactive Simulator ---- */
.hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; padding: clamp(52px, 8vw, 108px) 0 clamp(60px, 8vw, 112px); isolation: isolate; }
.hero.small { padding: clamp(44px, 6vw, 84px) 0 clamp(52px, 7vw, 92px); }
.hero-bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(1000px 560px at 84% -8%, rgba(28, 76, 122, 0.72) 0%, transparent 62%), linear-gradient(180deg, #0b192b, #0f2238); }
.hero-grid-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(circle at 60% 30%, #000 30%, transparent 80%); }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.4; }
.orb.a { width: 480px; height: 480px; background: #1cb7cf; right: -120px; top: -160px; opacity: 0.28; }
.orb.b { width: 380px; height: 380px; background: #3664eb; left: -140px; bottom: -180px; opacity: 0.22; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero-grid > * { min-width: 0; max-width: 100%; }
.hero-copy { min-width: 0; max-width: 100%; }
.eyebrow { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: 100%; padding: 7px 14px 7px 11px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.04); font-family: var(--mono); font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, 0.88); margin-bottom: 22px; }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 0 4px rgba(103, 232, 249, 0.2); }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800; max-width: 15ch; }
.hero.small h1 { max-width: 17ch; font-size: clamp(2.1rem, 4.4vw, 3.6rem); }
.lede { margin-top: 20px; max-width: 34rem; font-size: clamp(16px, 1.4vw, 18.5px); line-height: 1.65; color: #c6d1df; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 24px; font-size: 14px; color: #b0c2d8; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--aqua) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f2238' stroke-width='3.5'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/10px no-repeat; }
.crumb { display: flex; gap: 10px; font-family: var(--mono); font-size: 12.5px; color: #9cb2cf; margin-bottom: 18px; }
.crumb b { color: #fff; font-weight: 600; }

.sim { min-width: 0; max-width: 100%; background: rgba(22, 48, 75, 0.88); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 26px; overflow: hidden; box-shadow: 0 50px 90px -36px rgba(0, 0, 0, 0.65); }
.sim-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.sim-dots { display: flex; gap: 6px; }
.sim-dots .dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.25); }
.sim-title { font-family: var(--mono); font-size: 12px; color: #b0c2d8; }
.sim-badge { margin-left: auto; font-family: var(--mono); font-size: 11px; padding: 3px 9px; border-radius: 99px; background: rgba(103, 232, 249, 0.15); color: var(--aqua); border: 1px solid rgba(103, 232, 249, 0.35); }
.sim-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 12px 18px 0; }
.sim-tabs button { padding: 8px 6px; border-radius: 10px; font-size: 12.5px; font-weight: 600; color: #b0c2d8; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); transition: 0.2s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sim-tabs button.on { background: var(--aqua); color: var(--ink); border-color: var(--aqua); }
.sim-body { padding: 18px 20px 22px; display: grid; gap: 12px; }
.sim-slider-row { display: grid; gap: 6px; font-size: 13px; color: #c6d1df; }
.sim-slider-row label { display: flex; justify-content: space-between; font-weight: 600; }
.sim-slider-row strong { font-family: var(--mono); color: var(--aqua); }
.sim-slider-row input { width: 100%; accent-color: var(--aqua); }
.demo-file { display: flex; align-items: center; gap: 14px; padding: 13px 14px; border-radius: 16px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); }
.demo-file.after { background: rgba(103, 232, 249, 0.11); border-color: rgba(103, 232, 249, 0.4); }
.thumb { width: 46px; height: 46px; border-radius: 12px; background: rgba(255, 255, 255, 0.1); display: grid; place-items: center; flex: none; }
.thumb svg { width: 22px; height: 22px; fill: none; stroke: var(--aqua); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.meta { flex: 1; min-width: 0; }
.meta b { display: block; font-weight: 600; font-size: 14.5px; }
.meta span { font-family: var(--mono); font-size: 12.5px; color: #b0c2d8; }
.tag { padding: 5px 11px; border-radius: 99px; font-family: var(--mono); font-size: 12px; font-weight: 600; background: rgba(255, 255, 255, 0.12); color: #fff; }
.tag.good { background: var(--aqua); color: var(--ink); }
.demo-arrow { display: flex; align-items: center; gap: 10px; padding: 0 8px; }
.demo-arrow span { flex: 1; height: 1px; background: rgba(255, 255, 255, 0.12); }
.demo-arrow svg { width: 20px; height: 20px; fill: none; stroke: var(--aqua); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sim-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sim-metrics > div { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); }
.sim-metrics small { display: block; font-size: 11.5px; color: #9cb2cf; }
.sim-metrics b { font-family: var(--mono); font-size: 14px; color: #fff; }
.bar { height: 7px; border-radius: 99px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: var(--aqua); transition: width 0.35s var(--ease); }
@media (max-width: 920px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 440px) {
  .sim-tabs button { font-size: 11px; padding: 7px 4px; }
  .hero h1 { font-size: 2.15rem; }
}

/* ---- Strip & Marketing Sections ---- */
.strip { background: var(--navy); color: #fff; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.strip-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-in div { padding: 24px 18px; display: flex; flex-direction: column; gap: 2px; }
.strip-in div + div { border-left: 1px solid rgba(255, 255, 255, 0.1); }
.strip-in b { font-size: 18px; font-weight: 700; }
.strip-in span { font-size: 13.5px; color: #b0c2d8; }
@media (max-width: 760px) { .strip-in { grid-template-columns: 1fr 1fr; } .strip-in div:nth-child(3) { border-left: 0; } .strip-in div:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, 0.1); } }

.sec { padding: clamp(58px, 7.5vw, 100px) 0; }
.sec.soft { background: var(--bg); }
.sec.dark { background: var(--ink); color: #fff; }
.sec-head { max-width: 44rem; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head.left { margin-bottom: 0; }
.sec h2 { font-size: clamp(1.85rem, 3.6vw, 2.95rem); line-height: 1.09; letter-spacing: -0.03em; font-weight: 800; }
.sec-head p { margin-top: 14px; color: var(--ink-2); font-size: 17px; }
.sec.dark .sec-head p { color: #c6d1df; }
.sec-head a { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }

/* Why Buy & Comparison */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.why-card { padding: 26px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: transform 0.35s var(--ease), border-color 0.25s; }
.why-card:hover { transform: translateY(-4px); border-color: var(--ink); }
.why-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: var(--aqua); display: grid; place-items: center; margin-bottom: 16px; }
.why-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.why-card h3 { font-size: 1.15rem; margin-bottom: 8px; letter-spacing: -0.015em; }
.why-card p { font-size: 15px; color: var(--ink-2); }
@media (max-width: 1020px) { .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 580px) { .why-grid { grid-template-columns: minmax(0, 1fr); } }

.compare-wrap { min-width: 0; max-width: 100%; margin-top: 38px; border: 1px solid var(--line); border-radius: 26px; background: var(--bg); padding: clamp(18px, 3vw, 34px); }
.compare-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.compare-head h3 { font-size: clamp(1.35rem, 2.2vw, 1.8rem); letter-spacing: -0.025em; }
.compare-scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 14.5px; }
.compare-table th, .compare-table td { text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.compare-table tr:last-child td { border-bottom: 0; }
.compare-table thead th { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--mute); background: #f8fafc; }
.compare-table .hi { background: #ecfbfd; color: var(--ink); }
.compare-table thead .hi { background: var(--ink); color: var(--aqua); }

/* Landing Why Banner */
.why-banner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(24px, 5vw, 60px); align-items: center; }
.why-banner .lede-dark { margin-top: 14px; font-size: 17px; color: var(--ink-2); }
.why-banner-box { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 3vw, 32px); display: grid; gap: 18px; }
.why-banner-box ul { display: grid; gap: 11px; }
.why-banner-box li { position: relative; padding-left: 28px; font-weight: 500; }
.why-banner-box li::before { content: ""; position: absolute; left: 0; top: 3px; width: 19px; height: 19px; border-radius: 50%; background: var(--aqua) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f2238' stroke-width='3.5'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/11px no-repeat; }
@media (max-width: 900px) { .why-banner { grid-template-columns: 1fr; } }

/* Steps, Features & Use Cases */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { padding: clamp(22px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.steps span { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--aqua-d); }
.steps h3 { font-size: 1.4rem; margin: 12px 0 8px; letter-spacing: -0.02em; }
.steps p { color: var(--ink-2); font-size: 15px; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat-grid article { padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.feat-grid h3 { font-size: 1.18rem; letter-spacing: -0.015em; margin-bottom: 8px; }
.feat-grid p { color: var(--ink-2); font-size: 15px; }
.who-strip { margin-top: 26px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.who-card { padding: 18px 20px; border-radius: 18px; background: var(--ink); color: #fff; }
.who-card b { display: block; color: var(--aqua); font-size: 15px; margin-bottom: 4px; }
.who-card p { font-size: 13.5px; color: #c6d1df; }
@media (max-width: 960px) { .steps, .feat-grid, .who-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .steps, .feat-grid, .who-strip { grid-template-columns: minmax(0, 1fr); } }

/* SEO Tools Hub */
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tool { display: flex; flex-direction: column; gap: 10px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: transform 0.35s var(--ease), border-color 0.25s, box-shadow 0.35s var(--ease); }
.tool:hover { transform: translateY(-4px); border-color: var(--ink); box-shadow: 0 26px 46px -32px rgba(15, 34, 56, 0.35); }
.tool-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tool-k { font-family: var(--mono); font-size: 11.5px; font-weight: 600; color: var(--aqua-d); letter-spacing: 0.08em; text-transform: uppercase; }
.tool-save { font-family: var(--mono); font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: #e3f7ee; color: #0b6b47; }
.tool h3 { font-size: 1.25rem; line-height: 1.2; letter-spacing: -0.02em; }
.tool p { color: var(--ink-2); font-size: 14.5px; }
.tool-go { margin-top: auto; font-weight: 600; font-size: 14.5px; padding-top: 6px; }
@media (max-width: 960px) { .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .tool-grid { grid-template-columns: minmax(0, 1fr); } }

/* Pricing */
.pricing { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: clamp(28px, 6vw, 80px); align-items: center; }
.pricing > *, .faq-grid > *, .foot-in > * { min-width: 0; }
.pricing-proof { margin-top: 24px; display: grid; gap: 10px; color: #c6d1df; font-size: 15px; }
.pricing-proof li { position: relative; padding-left: 26px; }
.pricing-proof li::before { content: "✓"; position: absolute; left: 0; color: var(--aqua); font-weight: 800; }
.plan { background: #fff; color: var(--ink); border-radius: 28px; padding: clamp(24px, 3.2vw, 38px); box-shadow: 0 50px 90px -46px rgba(0, 0, 0, 0.7); }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plan-top b { font-size: 1.15rem; }
.cur-pill { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 4px; background: var(--bg); border-radius: 99px; margin-top: 18px; }
.cur-pill button { height: 38px; border-radius: 99px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); transition: 0.2s; }
.cur-pill button.on { background: var(--ink); color: #fff; }
.chip { display: inline-block; padding: 5px 12px; border-radius: 99px; background: var(--aqua); font-size: 12.5px; font-weight: 700; color: var(--ink); }
.chip.ok { background: #d7f5e8; color: #0b6b47; }
.chip.warn { background: #fde7cf; color: #8a4a0a; }
.plan-price { margin-top: 18px; display: flex; align-items: baseline; gap: 6px; }
.plan-price strong { font-size: clamp(3rem, 5vw, 4.2rem); line-height: 1; letter-spacing: -0.04em; }
.plan-price span { color: var(--mute); font-size: 1rem; }
.plan-price.dark strong { font-size: 3.1rem; }
.plan-alt { color: var(--mute); margin-top: 4px; font-size: 14.5px; }
.plan ul { margin: 20px 0 24px; display: grid; gap: 11px; }
.plan li, .ticks li { position: relative; padding-left: 28px; font-size: 15px; }
.plan li::before, .ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 19px; height: 19px; border-radius: 50%; background: var(--aqua) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f2238' stroke-width='3.5'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/11px no-repeat; }
.plan small { display: block; text-align: center; margin-top: 12px; color: var(--mute); font-size: 13px; }
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; } }

/* FAQ & CTA & Footer */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
.faq-grid .sec-head { position: sticky; top: 96px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; font-size: 1.12rem; font-weight: 600; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary i { position: relative; width: 16px; height: 16px; flex: none; }
.faq-list summary i::before, .faq-list summary i::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 2px; background: var(--ink); transition: transform 0.3s; }
.faq-list summary i::after { transform: rotate(90deg); }
.faq-list details[open] summary i::after { transform: rotate(0); }
.faq-list p { padding: 0 0 20px; color: var(--ink-2); max-width: 44rem; font-size: 15.5px; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } .faq-grid .sec-head { position: static; } }

.cta { background: var(--aqua); color: var(--ink); }
.cta-in { text-align: center; padding: clamp(54px, 7vw, 90px) clamp(18px, 4vw, 40px); }
.cta h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); letter-spacing: -0.035em; line-height: 1.06; font-weight: 800; }
.cta p { margin: 12px 0 26px; font-size: 17.5px; color: var(--navy-2); }

.foot { background: var(--ink); color: #b0c2d8; padding-top: clamp(48px, 6vw, 76px); }
.foot-in { display: grid; grid-template-columns: 1.5fr 1.2fr 0.9fr 1fr; gap: clamp(24px, 4vw, 48px); }
.foot-note { margin-top: 16px; max-width: 24rem; font-size: 14.5px; }
.foot-note a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.foot-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.foot-badges span { font-family: var(--mono); font-size: 11px; padding: 4px 10px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, 0.14); color: #c6d1df; }
.foot h2 { font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #9cb2cf; margin-bottom: 14px; }
.foot li { margin-bottom: 9px; font-size: 14.5px; }
.foot li a:hover { color: #fff; }
.foot-bot { margin-top: 48px; padding: 20px 0 26px; border-top: 1px solid rgba(255, 255, 255, 0.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 13px; color: #9cb2cf; }
@media (max-width: 860px) { .foot-in { grid-template-columns: 1fr 1fr; } .foot-in > :first-child { grid-column: 1 / -1; } }

/* ---- Legal ---- */
.legal { max-width: 760px; padding: clamp(40px, 6vw, 76px) clamp(18px, 4vw, 40px); }
.legal h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.03em; margin-bottom: 8px; }
.legal h2 { font-size: 1.3rem; margin: 28px 0 8px; }
.legal p { color: var(--ink-2); }
.legal a { text-decoration: underline; }

/* ---- Auth Pages (Split SaaS Shell + Classic Centered Fallback) ---- */
.auth { background: var(--bg); }
.auth-shell { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); }
.auth-side { background: var(--ink); color: #fff; padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; background-image: radial-gradient(700px 400px at 90% 10%, rgba(28, 76, 122, 0.7), transparent 65%); }
.auth-side-copy { max-width: 440px; }
.auth-side-copy h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; margin-bottom: 14px; }
.auth-side-copy p { color: #c6d1df; font-size: 16px; }
.auth-proof { margin: 24px 0; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); }
.auth-proof div { flex: 1; }
.auth-proof span { display: block; font-size: 12px; color: #9cb2cf; }
.auth-proof b { font-family: var(--mono); font-size: 15px; color: #fff; }
.auth-proof .good b { color: var(--aqua); }
.auth-proof i { font-style: normal; color: var(--aqua); font-weight: 700; }
.auth-side-copy ul { display: grid; gap: 9px; color: #c6d1df; font-size: 14.5px; }
.auth-side-copy li { position: relative; padding-left: 22px; }
.auth-side-copy li::before { content: "✓"; position: absolute; left: 0; color: var(--aqua); font-weight: 700; }
.auth-back { font-size: 14px; font-weight: 600; color: #b0c2d8; }
.auth-back:hover { color: #fff; }
.auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 32px 18px; }
.auth-mob-brand { display: none; }
.auth-wrap { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; padding: 28px 18px; }
@media (max-width: 920px) { .auth-shell { grid-template-columns: 1fr; } .auth-side { display: none; } .auth-mob-brand { display: block; } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 32px 60px -46px rgba(15, 34, 56, 0.35); }
.auth-card { width: min(100%, 460px); padding: clamp(24px, 4vw, 38px); }
.auth-card h1 { font-size: 1.9rem; letter-spacing: -0.03em; font-weight: 800; }
.auth-card .muted { margin: 6px 0 22px; font-size: 15px; }
form label { display: block; margin-bottom: 15px; font-size: 14px; font-weight: 600; }
form label small { font-weight: 400; color: var(--mute); display: block; margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=number], select { display: block; width: 100%; height: 48px; margin-top: 7px; padding: 0 15px; border: 1px solid var(--line); border-radius: 13px; background: #fff; font-size: 15.5px; outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
input:disabled { background: var(--bg); color: var(--mute); cursor: not-allowed; }
input:focus, select:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(15, 34, 56, 0.08); }
label.check { display: flex; align-items: center; gap: 9px; font-weight: 500; font-size: 14px; }
label.check input { width: 17px; height: 17px; margin: 0; accent-color: var(--ink); }
.err { color: #b92c20; font-size: 13.5px; margin: -6px 0 12px; }
.auth-alt { margin-top: 18px; text-align: center; color: var(--mute); font-size: 14.5px; }
.auth-alt a { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .two { grid-template-columns: 1fr; } }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.row-between label { margin: 0; }
.fine { margin-top: 14px; font-size: 13px; color: var(--mute); text-align: center; }
.fine a { text-decoration: underline; }
.card.center { text-align: center; }
.mail-ic { width: 60px; height: 60px; border-radius: 18px; background: var(--ink); display: grid; place-items: center; margin: 0 auto 16px; }
.mail-ic svg { width: 28px; height: 28px; fill: none; stroke: var(--aqua); stroke-width: 1.7; }
.resend { display: block; margin: -4px 0 14px; text-decoration: underline; font-size: 14px; }

/* ---- Authenticated SaaS Workspace (/app, /app/billing, /app/account) ---- */
.appbody { background: var(--bg); }
.appbar { background: var(--ink); color: #fff; border-bottom: 1px solid rgba(255, 255, 255, 0.08); position: sticky; top: 0; z-index: 30; }
.appbar-in { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 10px; padding-bottom: 10px; }
.appbar-left { display: flex; align-items: center; gap: clamp(14px, 2.8vw, 32px); min-width: 0; }
.app-menu { display: flex; align-items: center; gap: 6px; }
.app-menu a { padding: 8px 14px; border-radius: 99px; font-size: 14px; font-weight: 600; color: #b0c2d8; transition: 0.2s; white-space: nowrap; }
.app-menu a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.app-menu a.on { background: var(--aqua); color: var(--ink); }
.appbar-right { display: flex; align-items: center; gap: 10px; flex: none; }
.pill-status { padding: 6px 12px; border-radius: 99px; font-family: var(--mono); font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill-status.ok { background: rgba(13, 148, 96, 0.2); color: #7ef2be; border: 1px solid rgba(126, 242, 190, 0.28); }
.pill-status.warn { background: rgba(217, 130, 43, 0.2); color: #ffd19c; border: 1px solid rgba(255, 209, 156, 0.3); }
.who-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); color: #fff; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.who-av { width: 28px; height: 28px; border-radius: 50%; background: var(--aqua); color: var(--ink); font-size: 11.5px; font-weight: 800; display: grid; place-items: center; }
.app-logout { font-size: 13.5px; font-weight: 600; color: #b0c2d8; white-space: nowrap; }
.app-logout:hover { color: #fff; }
@media (max-width: 960px) { .pill-status, .who-name { display: none; } }
@media (max-width: 760px) {
  .appbar-in { flex-wrap: wrap; row-gap: 10px; }
  .appbar-left { display: contents; }
  .appbar-left > .brand { order: 1; }
  .appbar-right { order: 2; }
  .appbar-right .who-chip { display: none; }
  .app-menu { order: 3; width: 100%; overflow-x: auto; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
}

.app { padding-top: 24px; padding-bottom: 84px; display: grid; gap: 22px; }
.back { font-weight: 600; font-size: 14px; color: var(--mute); display: inline-block; margin-bottom: 6px; }
.back:hover { color: var(--ink); }
.flash { padding: 14px 18px; border-radius: 16px; font-size: 14.5px; border: 1px solid; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.flash.ok { background: #e3f7ee; border-color: #b5e6d0; color: #0b5a3c; }
.flash.info { background: #e8f8fb; border-color: #b6e8f2; color: #0b5263; }
.flash.warn { background: #fff1e0; border-color: #f5cf9f; color: #7a4308; }

.studio-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat-tile { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; display: grid; gap: 6px; }
.stat-k { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--mute); }
.stat-v { display: flex; align-items: baseline; gap: 4px; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.stat-v span { font-size: 14px; font-weight: 500; color: var(--mute); }
.stat-sub { font-size: 13px; color: var(--ink-2); }
.stat-meter { height: 6px; border-radius: 99px; background: var(--bg); overflow: hidden; margin-top: 2px; }
.stat-meter i { display: block; height: 100%; border-radius: 99px; background: var(--aqua-d); transition: width 0.3s; }
@media (max-width: 960px) { .studio-stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .studio-stats { grid-template-columns: 1fr; } }

.studio-grid { display: grid; grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr); gap: 22px; align-items: start; }
.studio-grid > * { min-width: 0; max-width: 100%; }
@media (max-width: 980px) { .studio-grid { grid-template-columns: 1fr; } }

.tool-card { padding: clamp(20px, 2.8vw, 30px); }
.tool-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px; }
.tool-head h1 { font-size: 1.65rem; letter-spacing: -0.025em; font-weight: 800; }
.tool-head p { font-size: 14px; }

.preset-bar { margin-top: 18px; padding: 12px 14px; border-radius: 16px; background: var(--bg); display: grid; gap: 8px; }
.preset-label { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--mute); font-weight: 600; }
.preset-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.preset { padding: 7px 12px; border-radius: 99px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-2); transition: 0.2s; }
.preset:hover { border-color: var(--ink); color: var(--ink); }
.preset.on { background: var(--ink); color: var(--aqua); border-color: var(--ink); }

.opts { display: grid; grid-template-columns: 1.2fr 1.05fr 0.9fr; gap: 12px; margin: 18px 0; }
.opts select { padding: 0 12px; }
.opts label { margin: 0; }
.opts input[type=range] { width: 100%; margin-top: 16px; accent-color: var(--ink); }
.opts output { float: right; font-family: var(--mono); font-weight: 700; color: var(--aqua-d); }
@media (max-width: 680px) { .opts { grid-template-columns: 1fr; } }

.drop { display: grid; place-items: center; gap: 6px; text-align: center; padding: clamp(28px, 5vw, 48px) 20px; border: 2px dashed rgba(15, 34, 56, 0.25); border-radius: 20px; background: #f8fbfd; cursor: pointer; transition: 0.25s; margin: 0 !important; }
.drop:hover, .drop.over { border-color: var(--aqua-d); background: #ebf9fc; }
.drop.off { opacity: 0.55; cursor: not-allowed; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop-icon { width: 52px; height: 52px; border-radius: 16px; background: var(--ink); color: var(--aqua); display: grid; place-items: center; margin-bottom: 4px; }
.drop-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.drop b { font-size: 1.1rem; font-weight: 700; }
.drop span { color: var(--mute); font-size: 13.5px; }

.progress { height: 6px; border-radius: 99px; background: var(--bg); overflow: hidden; margin-top: 14px; }
.progress span { display: block; height: 100%; width: 45%; background: var(--aqua-d); border-radius: 99px; animation: indet 1.1s ease-in-out infinite alternate; }
@keyframes indet { from { transform: translateX(-20%); } to { transform: translateX(135%); } }
.msg { margin-top: 12px; font-size: 14px; }
.msg .e { color: #b92c20; display: block; }
.msg .w { color: var(--ink-2); display: block; }

.results { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(20px, 2.8vw, 28px); }
.results-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.results-head h2 { font-size: 1.3rem; letter-spacing: -0.02em; font-weight: 800; }
.list { display: grid; gap: 10px; }
.item { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 18px; transition: border-color 0.2s; }
.item:hover { border-color: rgba(15, 34, 56, 0.3); }
.item.busy { opacity: 0.6; }
.item-img { width: 60px; height: 60px; border-radius: 12px; background: var(--bg); overflow: hidden; border: 1px solid var(--line); flex: none; }
.item-img img { width: 100%; height: 100%; object-fit: cover; }
.item > div:nth-child(2) { min-width: 0; }
.item h3 { font-size: 14.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-meta { font-family: var(--mono); color: var(--mute); font-size: 11.5px; margin-top: 2px; }
.sizes { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 5px; font-family: var(--mono); font-size: 12.5px; white-space: nowrap; }
.sizes s { color: var(--mute); }
.sizes b { font-weight: 700; }
.save { padding: 2px 8px; border-radius: 99px; background: #d7f5e8; color: #0b6b47; font-weight: 700; font-size: 11.5px; }
.save.none { background: #eef2f6; color: var(--mute); }
.item-actions { display: flex; align-items: center; gap: 6px; }
.item-actions .btn.sm { height: 34px; padding: 0 12px; font-size: 12.5px; }
.x { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 17px; flex: none; }
.x:hover { border-color: #b92c20; color: #b92c20; }
.empty { padding: 42px 20px; text-align: center; color: var(--mute); background: var(--bg); border: 1px dashed var(--line); border-radius: 18px; }
.empty b { display: block; color: var(--ink); margin-bottom: 4px; }
[hidden] { display: none !important; }
@media (max-width: 620px) { .item { grid-template-columns: 58px 1fr; } .item-img { width: 58px; height: 58px; } .item-actions { grid-column: 1 / -1; justify-content: flex-end; } }

/* Lightbox Preview Modal */
.preview-modal { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 16px; background: rgba(15, 34, 56, 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pv-card { position: relative; width: min(100%, 720px); background: #fff; border-radius: 26px; padding: 20px; display: grid; gap: 14px; box-shadow: 0 50px 100px rgba(0, 0, 0, 0.55); }
.pv-img-wrap { max-height: 62svh; overflow: hidden; border-radius: 16px; background: repeating-conic-gradient(#edf2f7 0% 25%, #fff 0% 50%) 50% / 16px 16px; display: grid; place-items: center; border: 1px solid var(--line); }
.pv-img-wrap img { max-height: 60svh; width: auto; object-fit: contain; }
.pv-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.pv-foot h3 { font-size: 15.5px; word-break: break-all; }

/* Billing & Account Pages */
.billing-wrap { max-width: 1020px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; }
.page-head h1 { font-size: clamp(1.7rem, 3vw, 2.2rem); letter-spacing: -0.03em; font-weight: 800; }
.billing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 820px) { .billing-grid { grid-template-columns: 1fr; } }
.plan-card, .hist-card { padding: clamp(22px, 3vw, 32px); display: grid; gap: 14px; }
.plan-card h2, .hist-card h2 { font-size: 1.25rem; letter-spacing: -0.02em; font-weight: 800; }
.ticks { display: grid; gap: 10px; margin: 4px 0 8px; }
.sub-box { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; padding: 14px; border-radius: 16px; background: var(--bg); }
.sub-box small { display: block; font-size: 11.5px; color: var(--mute); }
.sub-box b { font-size: 14px; }
.empty-soft { padding: 28px 18px; text-align: center; border-radius: 16px; border: 1px dashed var(--line); background: var(--bg); }
.empty-soft b { display: block; margin-bottom: 4px; }
.pay-list { display: grid; gap: 8px; }
.pay-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; }
.pay-row b { display: block; font-size: 15px; }
.pay-row span { font-family: var(--mono); font-size: 12px; color: var(--mute); }

/* Paywall Modal */
.paywall { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(15, 34, 56, 0.64); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pw-card { position: relative; width: min(100%, 460px); max-height: 94svh; overflow-y: auto; background: #fff; border-radius: 28px; padding: clamp(24px, 4vw, 36px); box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.6); }
.pw-card h2 { font-size: 1.65rem; letter-spacing: -0.03em; line-height: 1.1; margin: 12px 0 8px; font-weight: 800; }
.pw-x { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); font-size: 20px; display: grid; place-items: center; background: #fff; }
.pw-x:hover { border-color: var(--ink); }
.cur { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; background: var(--bg); border-radius: 99px; margin: 18px 0 6px; }
.cur button { height: 40px; border-radius: 99px; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.cur button.on { background: var(--ink); color: #fff; }
.pw-price { display: flex; align-items: baseline; gap: 6px; margin: 12px 0 4px; }
.pw-price strong { font-size: 3rem; letter-spacing: -0.04em; line-height: 1; }
.pw-price span { color: var(--mute); }
.pw-card .ticks { margin: 12px 0 18px; }
.pw-msg { min-height: 20px; margin-top: 10px; text-align: center; font-size: 14px; color: var(--ink-2); }
.pw-msg.bad { color: #b92c20; }
