:root{
  --bg:#f7f9fc;
  --surface:rgba(255,255,255,.78);
  --surface-solid:#fff;
  --ink:#0b1f49;
  --ink-2:#25385f;
  --muted:#66748f;
  --line:#e3e9f3;
  --blue:#1d63ff;
  --cyan:#16c9eb;
  --teal:#16d7b4;
  --violet:#7456f7;
  --shadow:0 24px 70px rgba(31,57,107,.12);
  --shadow-sm:0 10px 28px rgba(31,57,107,.08);
  --radius:24px;
  --radius-sm:16px;
  --max:1180px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--ink);
  background:
    radial-gradient(circle at 8% 12%, rgba(25,201,235,.16), transparent 24rem),
    radial-gradient(circle at 91% 8%, rgba(116,86,247,.15), transparent 27rem),
    linear-gradient(180deg,#fbfcff 0%,var(--bg) 48%,#fff 100%);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
button,input{font:inherit}
.container{width:min(calc(100% - 40px),var(--max));margin-inline:auto}
.skip-link{position:absolute;left:-999px;top:auto}.skip-link:focus{left:16px;top:16px;z-index:9999;background:#fff;padding:10px 14px;border-radius:10px;box-shadow:var(--shadow-sm)}
.header{position:sticky;top:0;z-index:100;background:rgba(248,250,253,.72);backdrop-filter:blur(18px);border-bottom:1px solid rgba(227,233,243,.75)}
.nav{height:78px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.brand img{width:188px;height:auto}
.nav-links{display:flex;align-items:center;gap:28px;font-size:14px;font-weight:700;color:var(--ink-2)}
.nav-links a:hover{color:var(--blue)}
.nav-actions{display:flex;align-items:center;gap:10px}
.early-badge{font-size:12px;font-weight:800;padding:7px 10px;border-radius:999px;color:#0d4c67;background:linear-gradient(90deg,rgba(22,201,235,.14),rgba(22,215,180,.14));border:1px solid rgba(22,201,235,.28)}
.menu-btn{display:none;background:#fff;border:1px solid var(--line);width:44px;height:44px;border-radius:14px;color:var(--ink)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:48px;padding:0 20px;border-radius:14px;font-weight:800;font-size:14px;border:1px solid transparent;transition:.22s ease;cursor:pointer}
.btn-primary{color:#fff;background:linear-gradient(120deg,var(--blue),var(--violet) 58%,var(--teal));box-shadow:0 12px 28px rgba(61,85,238,.25)}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 16px 34px rgba(61,85,238,.3)}
.btn-secondary{background:rgba(255,255,255,.72);border-color:var(--line);color:var(--ink)}
.btn-secondary:hover{background:#fff;border-color:#cbd6e7;transform:translateY(-1px)}
.hero{padding:88px 0 68px;overflow:hidden;position:relative}
.hero:before{content:"";position:absolute;inset:0;pointer-events:none;background-image:linear-gradient(rgba(15,38,80,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(15,38,80,.035) 1px,transparent 1px);background-size:42px 42px;mask-image:linear-gradient(to bottom,black,transparent 82%)}
.hero-grid{position:relative;display:grid;grid-template-columns:1.02fr .98fr;align-items:center;gap:68px}
.kicker{display:inline-flex;align-items:center;gap:8px;font-size:12px;letter-spacing:.08em;text-transform:uppercase;font-weight:900;color:#385078;background:#fff;border:1px solid var(--line);padding:8px 11px;border-radius:999px;box-shadow:var(--shadow-sm)}
.kicker-dot{width:8px;height:8px;border-radius:50%;background:linear-gradient(120deg,var(--cyan),var(--violet))}
h1{font-size:clamp(44px,6vw,76px);line-height:1.02;letter-spacing:-.055em;margin:22px 0 24px;max-width:780px}
.gradient-text{background:linear-gradient(105deg,#0b255d 6%,#165dff 44%,#7256f7 70%,#12bea7);-webkit-background-clip:text;background-clip:text;color:transparent}
.hero-copy>p{font-size:18px;line-height:1.75;color:var(--ink-2);max-width:690px;margin:0}
.hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin:30px 0 20px}
.trust-line{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:13px;font-weight:650}
.trust-line svg{width:18px;height:18px;color:var(--teal)}
.demo-wrap{position:relative}
.glow{position:absolute;width:420px;height:420px;border-radius:50%;filter:blur(45px);opacity:.38;z-index:-1;background:conic-gradient(from 60deg,var(--cyan),var(--violet),var(--teal),var(--blue),var(--cyan));top:50%;left:50%;transform:translate(-50%,-50%)}
.browser{background:rgba(255,255,255,.86);border:1px solid rgba(210,220,237,.9);border-radius:28px;box-shadow:0 40px 100px rgba(31,52,100,.18);overflow:hidden;backdrop-filter:blur(20px);transform:rotate(.4deg)}
.browser-top{height:48px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 17px;background:rgba(248,250,253,.88)}
.dots{display:flex;gap:7px}.dots i{display:block;width:9px;height:9px;border-radius:50%;background:#c9d4e5}.dots i:nth-child(2){background:#b9c7dc}.dots i:nth-child(3){background:#a9bad4}
.browser-label{font-size:11px;color:#7b89a1;font-weight:800;letter-spacing:.03em}
.app{display:grid;grid-template-columns:130px 1fr;min-height:436px}
.side{padding:20px 13px;background:linear-gradient(180deg,#0d2454,#0b1c42);color:#dfe8fb}
.mini-brand{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:800;margin-bottom:26px}.mini-brand img{width:27px;height:27px;object-fit:contain}
.side-item{height:10px;border-radius:99px;background:rgba(255,255,255,.14);margin:15px 4px}.side-item.active{background:linear-gradient(90deg,#26d2ee,#7456f7);width:74%}.side-item:nth-child(3){width:82%}.side-item:nth-child(4){width:62%}.side-item:nth-child(5){width:70%}
.app-main{padding:24px;background:#fbfcff}.app-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.app-title strong{font-size:16px}.status-pill{font-size:10px;padding:5px 9px;border-radius:99px;background:#e7fbf6;color:#13876f;font-weight:800}
.form-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:16px;box-shadow:var(--shadow-sm)}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin-bottom:11px}.field{border:1px solid #e1e7f1;background:#fbfcff;border-radius:12px;padding:10px 11px}.field small{display:block;color:#8794a9;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;margin-bottom:4px}.field b{font-size:12px;color:#20355d}
.line-items{margin-top:15px;border:1px solid var(--line);border-radius:13px;overflow:hidden}.li-head,.li-row{display:grid;grid-template-columns:1.6fr .6fr .7fr .7fr;gap:8px;padding:8px 10px;font-size:9px}.li-head{background:#f5f7fb;color:#77859c;font-weight:800;text-transform:uppercase}.li-row{font-size:10px;color:#33476d;border-top:1px solid var(--line)}.li-row b{text-align:right}.li-row span:nth-child(2),.li-row span:nth-child(3){text-align:right}
.total{display:flex;justify-content:flex-end;align-items:center;gap:18px;margin:14px 0 12px;font-size:11px}.total strong{font-size:16px}
.file-actions{display:flex;gap:8px}.file-chip{font-size:9px;font-weight:800;padding:6px 9px;border-radius:8px;background:#eff4ff;color:#2e5ec5}.send-mini{margin-left:auto;background:linear-gradient(110deg,var(--blue),var(--violet));color:#fff}
.hero-chips{display:flex;flex-wrap:wrap;gap:9px;margin-top:18px}.chip{font-size:11px;font-weight:800;color:#31466e;background:#fff;border:1px solid var(--line);border-radius:999px;padding:7px 10px;box-shadow:0 5px 16px rgba(31,57,107,.05)}
.section{padding:92px 0}.section-sm{padding:62px 0}.section-head{max-width:760px;margin-bottom:40px}.eyebrow{color:#536a93;font-size:12px;text-transform:uppercase;letter-spacing:.12em;font-weight:900}.section h2{font-size:clamp(34px,4.5vw,54px);line-height:1.08;letter-spacing:-.04em;margin:12px 0 16px}.section-head p,.lead{font-size:17px;color:var(--muted);line-height:1.75;margin:0}
.problem-card{display:grid;grid-template-columns:.92fr 1.08fr;gap:42px;padding:42px;border:1px solid var(--line);border-radius:30px;background:rgba(255,255,255,.72);box-shadow:var(--shadow-sm)}.problem-visual{min-height:310px;border-radius:23px;display:grid;place-items:center;background:radial-gradient(circle at 20% 10%,rgba(22,201,235,.35),transparent 35%),radial-gradient(circle at 80% 85%,rgba(116,86,247,.34),transparent 35%),linear-gradient(145deg,#0d2554,#101a42);position:relative;overflow:hidden}.messy{width:80%;position:relative;height:230px}.paper{position:absolute;width:180px;height:220px;background:#fff;border-radius:14px;box-shadow:0 14px 35px rgba(0,0,0,.22);padding:20px}.paper:nth-child(1){left:20px;top:12px;transform:rotate(-7deg)}.paper:nth-child(2){right:10px;top:20px;transform:rotate(9deg);opacity:.92}.paper:before,.paper:after{content:"";display:block;height:8px;border-radius:99px;background:#dce5f3;margin-bottom:10px}.paper:after{width:65%}.number-note{position:absolute;z-index:4;left:50%;top:50%;transform:translate(-50%,-50%) rotate(-2deg);background:#fff6b8;color:#675b16;padding:12px 16px;border-radius:5px;font-weight:900;box-shadow:0 8px 25px rgba(0,0,0,.18)}.problem-text p{margin:0 0 18px;color:var(--ink-2);font-size:16px;line-height:1.8}.problem-text p:last-child{margin-bottom:0}
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.step{position:relative;padding:29px;border:1px solid var(--line);border-radius:24px;background:#fff;box-shadow:var(--shadow-sm);overflow:hidden}.step-no{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;color:#fff;font-weight:900;background:linear-gradient(135deg,var(--blue),var(--violet));box-shadow:0 8px 20px rgba(68,77,236,.2)}.step h3{font-size:21px;margin:18px 0 10px;letter-spacing:-.02em}.step p{margin:0;color:var(--muted);font-size:14.5px}.step:after{content:"";position:absolute;width:120px;height:120px;border-radius:50%;right:-55px;bottom:-60px;background:radial-gradient(circle,rgba(22,201,235,.13),transparent 70%)}
.features-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.feature{padding:28px;border:1px solid var(--line);border-radius:24px;background:rgba(255,255,255,.8);box-shadow:var(--shadow-sm);position:relative;overflow:hidden}.feature-icon{width:46px;height:46px;border-radius:14px;display:grid;place-items:center;margin-bottom:18px;background:linear-gradient(145deg,#eef7ff,#f1ecff);color:#4263db}.feature h3{font-size:20px;margin:0 0 9px;letter-spacing:-.02em}.feature p{font-size:14.5px;color:var(--muted);margin:0;line-height:1.75}.feature code{font-size:.9em;padding:.1em .38em;border-radius:6px;background:#eef3fb;color:#244b8a}.feature:before{content:"";position:absolute;inset:auto -35px -55px auto;width:130px;height:130px;border-radius:50%;background:radial-gradient(circle,rgba(22,215,180,.10),transparent 68%)}
.dark{background:radial-gradient(circle at 12% 12%,rgba(22,201,235,.18),transparent 28rem),radial-gradient(circle at 84% 100%,rgba(116,86,247,.22),transparent 25rem),linear-gradient(145deg,#071a3d,#0d2451 62%,#0c2149);color:#fff}.dark .eyebrow{color:#76ddf0}.dark h2{color:#fff}.dark p{color:#c7d5ec}.dark-grid{display:grid;grid-template-columns:.95fr 1.05fr;gap:42px;align-items:start}.security-list{display:grid;gap:12px}.security-item{display:flex;gap:13px;align-items:flex-start;padding:15px 17px;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.055);border-radius:16px}.security-item i{width:26px;height:26px;flex:0 0 26px;border-radius:9px;background:linear-gradient(130deg,var(--cyan),var(--teal));display:grid;place-items:center;color:#082447;font-style:normal;font-weight:900}.security-item span{color:#d9e5f7;font-size:14px}.server-card{border:1px solid rgba(255,255,255,.12);border-radius:26px;padding:26px;background:rgba(255,255,255,.055);box-shadow:0 22px 65px rgba(0,0,0,.18)}.server-window{height:212px;border-radius:18px;padding:18px;background:#06132d;border:1px solid rgba(255,255,255,.08);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;color:#9fe9db;overflow:hidden}.terminal-dot{display:flex;gap:6px;margin-bottom:18px}.terminal-dot i{width:8px;height:8px;border-radius:50%;background:#30486f}.terminal-line{margin:8px 0}.terminal-line.muted{color:#7185a5}.terminal-line b{color:#fff}.server-points{display:flex;flex-wrap:wrap;gap:8px;margin-top:17px}.server-points span{font-size:11px;border:1px solid rgba(255,255,255,.11);border-radius:999px;padding:6px 9px;color:#c9d8ef;background:rgba(255,255,255,.04)}
.audience-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:24px}.audience-list{display:grid;grid-template-columns:1fr 1fr;gap:14px}.audience{background:#fff;border:1px solid var(--line);border-radius:19px;padding:21px;box-shadow:var(--shadow-sm)}.audience b{display:block;margin-bottom:5px}.audience span{color:var(--muted);font-size:13.5px}.fit-note{background:linear-gradient(145deg,#eaf8ff,#f2efff);border:1px solid #dce6f7;border-radius:24px;padding:30px;display:flex;flex-direction:column;justify-content:center}.fit-note strong{font-size:22px;letter-spacing:-.025em}.fit-note p{color:#506383;margin:10px 0 0}
.limitations{background:#fff8ef}.limitations .section-head{margin-bottom:24px}.limit-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:13px}.limit{display:flex;gap:12px;align-items:flex-start;padding:18px;background:rgba(255,255,255,.78);border:1px solid #eee0cd;border-radius:17px;color:#654d35}.limit i{font-style:normal;font-weight:900;color:#a66d2e}.limit b{display:block;margin-bottom:2px}.limit span{font-size:13.5px;color:#7b644b}
.early{position:relative;overflow:hidden}.early-card{display:grid;grid-template-columns:1fr auto;align-items:center;gap:28px;padding:40px 44px;border-radius:30px;background:linear-gradient(120deg,#0d2554,#263db1 53%,#6648e6 78%,#0da996);color:#fff;box-shadow:0 28px 70px rgba(38,59,167,.24)}.early-card h2{margin:0 0 9px;font-size:36px}.early-card p{color:#dce8ff;margin:0}.free-pill{font-size:13px;font-weight:900;padding:9px 12px;border:1px solid rgba(255,255,255,.2);background:rgba(255,255,255,.10);border-radius:999px;display:inline-flex;margin-bottom:12px}
.faq{display:grid;gap:10px}.faq-item{background:#fff;border:1px solid var(--line);border-radius:17px;overflow:hidden}.faq-q{width:100%;display:flex;align-items:center;justify-content:space-between;gap:18px;text-align:left;border:0;background:transparent;padding:20px 21px;color:var(--ink);font-weight:850;cursor:pointer}.faq-q span:last-child{font-size:22px;font-weight:400;transition:transform .2s}.faq-a{display:grid;grid-template-rows:0fr;transition:grid-template-rows .25s ease}.faq-a>div{overflow:hidden}.faq-a p{padding:0 21px 20px;margin:0;color:var(--muted);font-size:14.5px}.faq-item.open .faq-a{grid-template-rows:1fr}.faq-item.open .faq-q span:last-child{transform:rotate(45deg)}
.closing{text-align:center;padding:96px 0 105px}.closing-box{max-width:880px;margin:auto}.closing h2{font-size:clamp(42px,5.5vw,64px);letter-spacing:-.05em;margin:0 0 18px}.closing p{font-size:18px;color:var(--muted);max-width:720px;margin:0 auto}.closing-actions{display:flex;justify-content:center;gap:12px;margin-top:28px;flex-wrap:wrap}
.footer{border-top:1px solid var(--line);padding:30px 0 38px;background:rgba(255,255,255,.62)}.footer-row{display:flex;justify-content:space-between;gap:24px;align-items:center;color:#79879e;font-size:12px}.footer-logo{width:130px}.footer-links{display:flex;gap:18px}
.subhero{padding:68px 0 38px}.subhero h1{font-size:clamp(40px,5vw,64px);max-width:900px}.back-link{font-size:13px;font-weight:800;color:#4e67a0}.features-long{display:grid;gap:16px}.feature-long{display:grid;grid-template-columns:220px 1fr;gap:30px;padding:28px 0;border-bottom:1px solid var(--line)}.feature-long h3{font-size:20px;margin:0}.feature-long p{margin:0;color:var(--muted)}
@media(max-width:980px){.nav-links{display:none}.menu-btn{display:block}.nav-links.open{position:absolute;display:flex;flex-direction:column;align-items:stretch;gap:0;top:70px;left:20px;right:20px;background:#fff;border:1px solid var(--line);border-radius:18px;padding:10px;box-shadow:var(--shadow)}.nav-links.open a{padding:12px}.hero{padding-top:64px}.hero-grid,.problem-card,.dark-grid,.audience-grid{grid-template-columns:1fr}.demo-wrap{max-width:720px;margin:auto}.steps{grid-template-columns:1fr}.features-grid{grid-template-columns:1fr}.app{grid-template-columns:110px 1fr}.audience-list{grid-template-columns:1fr 1fr}.early-card{grid-template-columns:1fr}.feature-long{grid-template-columns:1fr;gap:8px}}
@media(max-width:680px){.container{width:min(calc(100% - 28px),var(--max))}.header .early-badge{display:none}.brand img{width:160px}.hero{padding:48px 0 54px}.hero-grid{gap:38px}h1{font-size:44px}.hero-copy>p{font-size:16px}.browser{border-radius:20px}.app{grid-template-columns:70px 1fr;min-height:370px}.side{padding:14px 8px}.mini-brand span{display:none}.app-main{padding:14px}.form-row{grid-template-columns:1fr}.line-items{display:none}.problem-card{padding:22px}.steps,.audience-list,.limit-grid{grid-template-columns:1fr}.section{padding:68px 0}.section h2{font-size:36px}.dark-grid{gap:28px}.early-card{padding:30px 24px}.footer-row{flex-direction:column;align-items:flex-start}.nav-actions .btn{display:none}.feature-long{padding:22px 0}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important}}


/* Authentication / registration */
textarea{font:inherit}
.auth-body{min-height:100vh}
.auth-main{min-height:calc(100vh - 170px)}
.auth-shell{
  width:min(calc(100% - 40px),1080px);
  margin:0 auto;
  padding:74px 0 86px;
  display:grid;
  grid-template-columns:.88fr 1.12fr;
  gap:58px;
  align-items:center;
}
.auth-shell-login{max-width:980px;grid-template-columns:.9fr 1.1fr}
.auth-intro h1{font-size:clamp(42px,5vw,66px);margin:20px 0 20px}
.auth-intro>p{font-size:17px;color:var(--ink-2);max-width:520px;margin:0;line-height:1.75}
.auth-benefits{display:grid;gap:12px;margin-top:30px}
.auth-benefits>div{display:flex;align-items:center;gap:12px;color:#40557a;font-size:14px;font-weight:700}
.auth-benefits i{width:28px;height:28px;display:grid;place-items:center;border-radius:9px;background:linear-gradient(135deg,rgba(22,201,235,.18),rgba(22,215,180,.2));color:#0a8d79;font-style:normal;font-weight:900}
.login-visual{width:180px;height:180px;margin-top:34px;border-radius:42px;display:grid;place-items:center;background:rgba(255,255,255,.72);border:1px solid var(--line);box-shadow:var(--shadow)}
.login-visual img{width:132px;height:132px;object-fit:contain}
.auth-card{
  background:rgba(255,255,255,.88);
  border:1px solid rgba(215,224,239,.95);
  border-radius:30px;
  padding:34px;
  box-shadow:0 32px 90px rgba(31,57,107,.15);
  backdrop-filter:blur(18px);
  position:relative;
  overflow:hidden;
}
.auth-card:before{content:"";position:absolute;width:210px;height:210px;border-radius:50%;right:-90px;top:-110px;background:radial-gradient(circle,rgba(22,201,235,.16),rgba(116,86,247,.08) 55%,transparent 72%);pointer-events:none}
.login-card{max-width:520px;width:100%;justify-self:end}
.auth-card-head{display:flex;align-items:center;gap:14px;margin-bottom:28px}
.auth-card-head img{width:50px;height:50px;object-fit:contain}
.auth-card-head h2{font-size:28px;letter-spacing:-.035em;margin:0 0 2px}
.auth-card-head p{font-size:13px;color:var(--muted);margin:0}
.auth-form{display:grid;gap:17px}
.auth-grid{display:grid;gap:14px}
.auth-grid.two{grid-template-columns:1fr 1fr}
.auth-field{display:grid;gap:7px}
.auth-field>span{font-size:12px;font-weight:850;color:#31466e;letter-spacing:.01em}
.auth-field small{font-weight:650;color:#8693a7}
.auth-field input,.auth-field textarea{
  width:100%;
  border:1px solid #dce4f0;
  background:#fbfcff;
  color:var(--ink);
  border-radius:13px;
  padding:13px 14px;
  outline:none;
  transition:border-color .18s ease,box-shadow .18s ease,background .18s ease;
  resize:vertical;
}
.auth-field input{height:48px}
.auth-field input::placeholder,.auth-field textarea::placeholder{color:#9aa6b8}
.auth-field input:focus,.auth-field textarea:focus{background:#fff;border-color:#7698ff;box-shadow:0 0 0 4px rgba(29,99,255,.09)}
.auth-submit{width:100%;margin-top:4px}
.form-note{text-align:center;font-size:13px;color:var(--muted);margin:1px 0 0}
.form-note a{font-weight:850;color:#3c5de0}
.form-feedback{font-size:13px;line-height:1.5;padding:12px 14px;border-radius:12px;background:#fff7df;border:1px solid #f1dfaa;color:#6d5718}
.early-actions{display:flex;flex-wrap:wrap;gap:10px}
.nav-login{background:rgba(255,255,255,.62)}
@media(max-width:980px){
  .auth-shell,.auth-shell-login{grid-template-columns:1fr;gap:34px;padding-top:52px}
  .auth-intro{max-width:720px}
  .login-card{max-width:none;justify-self:stretch}
  .login-visual{display:none}
}
@media(max-width:680px){
  .auth-shell{width:min(calc(100% - 28px),1080px);padding:38px 0 60px}
  .auth-card{padding:24px 18px;border-radius:22px}
  .auth-grid.two{grid-template-columns:1fr}
  .auth-intro h1{font-size:42px}
  .auth-nav-actions .btn-secondary{display:none}
  .nav-actions .nav-login{display:none}
}


/* Mobile auth actions — keep Login and Create account visible */
@media (max-width: 680px) {
  .header .nav {
    gap: 8px;
  }

  .header .brand img {
    max-width: 118px;
    height: auto;
  }

  .header .nav-links,
  .header .early-badge,
  .header .menu-btn {
    display: none;
  }

  .header .nav-actions {
    display: flex;
    margin-left: auto;
    gap: 6px;
    align-items: center;
    flex-wrap: nowrap;
  }

  .header .nav-actions .nav-login,
  .header .nav-actions .btn-secondary,
  .header .nav-actions .btn-primary,
  .header .auth-nav-actions .btn-secondary {
    display: inline-flex !important;
    white-space: nowrap;
    min-height: 36px;
    padding: 8px 10px;
    font-size: 11px;
    border-radius: 10px;
  }
}

@media (max-width: 390px) {
  .header .brand img {
    max-width: 96px;
  }

  .header .nav-actions .nav-login,
  .header .nav-actions .btn-secondary,
  .header .nav-actions .btn-primary,
  .header .auth-nav-actions .btn-secondary {
    padding: 7px 8px;
    font-size: 10px;
  }
}


/* Mobile header v2:
   Row 1: logo + Login + Create account
   Row 2: Free during early access + menu
*/
@media (max-width: 680px) {
  .header .nav {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "brand actions"
      "badge menu";
    gap: 8px 10px;
    align-items: center;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .header .brand {
    grid-area: brand;
  }

  .header .brand img {
    max-width: 112px;
    height: auto;
  }

  .header .nav-links {
    display: none;
  }

  .header .nav-actions {
    display: contents;
  }

  .header .nav-actions .nav-login,
  .header .nav-actions > .btn-secondary {
    grid-area: actions;
    justify-self: end;
    margin-right: 108px;
    display: inline-flex !important;
    min-height: 34px;
    padding: 7px 9px;
    font-size: 10px;
    white-space: nowrap;
  }

  .header .nav-actions > .btn-primary {
    grid-area: actions;
    justify-self: end;
    display: inline-flex !important;
    min-height: 34px;
    padding: 7px 9px;
    font-size: 10px;
    white-space: nowrap;
  }

  .header .early-badge {
    grid-area: badge;
    display: inline-flex !important;
    justify-self: start;
    align-items: center;
    width: max-content;
    max-width: 100%;
    min-height: 30px;
    padding: 6px 9px;
    font-size: 9px;
    white-space: nowrap;
  }

  .header .menu-btn {
    grid-area: menu;
    display: inline-flex !important;
    justify-self: end;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 32px;
    padding: 0;
  }

  /* When the hamburger is opened, show the nav below both rows. */
  .header .nav-links.open,
  .header .nav-links.is-open,
  .header .nav-links.active {
    display: flex;
    grid-column: 1 / -1;
    flex-direction: column;
    gap: 6px;
    padding: 10px 0 2px;
  }
}

@media (max-width: 390px) {
  .header .brand img {
    max-width: 92px;
  }

  .header .nav-actions .nav-login,
  .header .nav-actions > .btn-secondary {
    margin-right: 94px;
    padding: 6px 7px;
    font-size: 9px;
  }

  .header .nav-actions > .btn-primary {
    padding: 6px 7px;
    font-size: 9px;
  }

  .header .early-badge {
    font-size: 8.5px;
    padding: 5px 7px;
  }
}


/* Polished mobile header — contained two-row layout */
@media (max-width: 680px) {
  .header {
    overflow: visible;
  }

  .header .nav {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(82px, 1fr) auto auto;
    grid-template-areas:
      "brand login signup"
      "badge badge menu";
    column-gap: 6px;
    row-gap: 8px;
    align-items: center;
    padding: 9px 14px 10px;
  }

  .header .brand {
    grid-area: brand;
    min-width: 0;
    display: flex;
    align-items: center;
  }

  .header .brand img {
    display: block;
    width: min(108px, 100%);
    max-width: 108px;
    height: auto;
  }

  .header .nav-actions {
    display: contents;
  }

  .header .nav-actions .nav-login,
  .header .nav-actions > .btn-secondary {
    grid-area: login;
    margin: 0 !important;
    justify-self: end;
    display: inline-flex !important;
    min-width: 0;
    min-height: 32px;
    padding: 6px 9px;
    font-size: 10px;
    line-height: 1;
    border-radius: 9px;
    white-space: nowrap;
  }

  .header .nav-actions > .btn-primary {
    grid-area: signup;
    margin: 0 !important;
    justify-self: end;
    display: inline-flex !important;
    min-width: 0;
    min-height: 32px;
    padding: 6px 9px;
    font-size: 10px;
    line-height: 1;
    border-radius: 9px;
    white-space: nowrap;
  }

  .header .early-badge {
    grid-area: badge;
    margin: 0 !important;
    justify-self: start;
    display: inline-flex !important;
    align-items: center;
    width: auto;
    max-width: calc(100% - 8px);
    min-height: 28px;
    box-sizing: border-box;
    padding: 5px 9px;
    font-size: 9px;
    line-height: 1.15;
    white-space: nowrap;
  }

  .header .menu-btn {
    grid-area: menu;
    margin: 0 !important;
    justify-self: end;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 34px;
    min-width: 34px;
    height: 30px;
    padding: 0;
    border-radius: 9px;
  }

  .header .nav-links {
    display: none;
    grid-column: 1 / -1;
  }

  .header .nav-links.open,
  .header .nav-links.is-open,
  .header .nav-links.active {
    display: flex;
    grid-column: 1 / -1;
    width: 100%;
    box-sizing: border-box;
    flex-direction: column;
    gap: 3px;
    margin: 0;
    padding: 8px 0 2px;
  }

  .header .nav-links.open a,
  .header .nav-links.is-open a,
  .header .nav-links.active a {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 10px;
    border-radius: 9px;
  }
}

@media (max-width: 390px) {
  .header .nav {
    grid-template-columns: minmax(68px, 1fr) auto auto;
    padding-left: 10px;
    padding-right: 10px;
    column-gap: 5px;
  }

  .header .brand img {
    width: min(88px, 100%);
    max-width: 88px;
  }

  .header .nav-actions .nav-login,
  .header .nav-actions > .btn-secondary,
  .header .nav-actions > .btn-primary {
    min-height: 30px;
    padding: 5px 7px;
    font-size: 9px;
  }

  .header .early-badge {
    min-height: 27px;
    padding: 5px 8px;
    font-size: 8.5px;
  }

  .header .menu-btn {
    width: 32px;
    min-width: 32px;
    height: 28px;
  }
}


/* Mobile header — single flexible row, no manual positioning */
@media (max-width: 680px) {
  .header .nav {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    gap: clamp(3px, 1.2vw, 7px);
    padding: 8px 10px;
  }

  .header .brand {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 58px;
    overflow: hidden;
  }

  .header .brand img {
    display: block;
    width: 100%;
    max-width: 108px;
    min-width: 0;
    height: auto;
    object-fit: contain;
    object-position: left center;
  }

  .header .nav-actions {
    display: flex !important;
    flex: 0 0 auto;
    align-items: center;
    gap: clamp(3px, 1vw, 6px);
    margin: 0 0 0 auto !important;
    min-width: 0;
  }

  .header .early-badge {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 1 auto;
    min-width: 0;
    min-height: 30px;
    margin: 0 !important;
    padding: 5px clamp(5px, 1.4vw, 9px);
    font-size: clamp(7.5px, 2.15vw, 9.5px);
    line-height: 1;
    white-space: nowrap;
    box-sizing: border-box;
  }

  .header .nav-actions .nav-login,
  .header .nav-actions > .btn-secondary,
  .header .nav-actions > .btn-primary {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 0;
    min-height: 30px;
    margin: 0 !important;
    padding: 5px clamp(6px, 1.5vw, 10px);
    font-size: clamp(8px, 2.2vw, 10px);
    line-height: 1;
    white-space: nowrap;
    border-radius: 9px;
  }

  .header .menu-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: clamp(29px, 8vw, 34px);
    min-width: clamp(29px, 8vw, 34px);
    height: 30px;
    margin: 0 !important;
    padding: 0;
    border-radius: 9px;
  }

  .header .nav-links {
    display: none;
  }

  /* Open menu becomes an overlay/dropdown, so it never changes header width. */
  .header {
    position: relative;
  }

  .header .nav-links.open,
  .header .nav-links.is-open,
  .header .nav-links.active {
    position: absolute;
    display: flex;
    flex-direction: column;
    top: calc(100% - 1px);
    left: 10px;
    right: 10px;
    width: auto;
    box-sizing: border-box;
    padding: 8px;
    gap: 3px;
    background: rgba(255,255,255,.98);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(31,57,107,.14);
    z-index: 1000;
  }
}

/* On very narrow phones, let the logo absorb the compression first. */
@media (max-width: 400px) {
  .header .brand {
    flex-basis: 60px;
  }

  .header .brand img {
    max-width: 86px;
  }
}
