/* Landing, legal pages and 404. White base, one indigo accent from the logo, soft lavender fields.
   Mobile-first: base rules are for phones (360px+), min-width queries add the wider layouts. */

:root {
  --cream: #faf9fd;
  --lav: #f1effa;
  --lav-2: #e9e5f8;
  --lav-3: #dcd6f3;
  --sand: #f1f0f5;
  --text: #15131d;
  --text-2: #45425a;
  --text-3: #75728a;
  --hair: #ebe9f2;
  --hair-2: #ddd9ea;
  --shadow: 30, 22, 56;
}
body.site { color: var(--text); background: #fff; font-size: 16px; line-height: 1.6; }
.wrap { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.site main, .site section, .site article, .site div { min-width: 0; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, 0.9); backdrop-filter: saturate(1.5) blur(12px); -webkit-backdrop-filter: saturate(1.5) blur(12px); border-bottom: 1px solid transparent; transition: border-color 0.2s; padding-top: env(safe-area-inset-top); }
.nav.scrolled, .nav.open { border-bottom-color: var(--hair); }
.nav-in { position: relative; display: flex; align-items: center; gap: 6px; height: 60px; }
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; margin-right: auto; min-height: 44px; }
.logo img { width: 30px; height: 30px; }
.logo b { font: 800 23px/1 var(--display); letter-spacing: -0.045em; }
.nav-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--text); }
.nav-toggle:hover { background: var(--lav); }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .i-close { display: none; }
.nav.open .nav-toggle .i-open { display: none; }
.nav.open .nav-toggle .i-close { display: block; }
.nav-menu { position: absolute; top: 100%; left: -16px; right: -16px; display: none; flex-direction: column; gap: 4px; padding: 10px 16px 18px; background: #fff; border-bottom: 1px solid var(--hair); box-shadow: 0 24px 40px -24px rgba(var(--shadow), 0.3); }
.nav.open .nav-menu { display: flex; animation: drop 0.22s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
.nav-links { display: flex; flex-direction: column; gap: 2px; }
.nav-links a { display: flex; align-items: center; min-height: 48px; padding: 0 12px; border-radius: 12px; color: var(--text-2); text-decoration: none; font-size: 17px; font-weight: 550; transition: background 0.15s, color 0.15s; }
.nav-links a:hover { background: var(--lav); color: var(--text); }
.nav-menu .cta { margin-top: 6px; width: 100%; }

/* ---------- buttons ---------- */
.cta { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 52px; padding: 0 22px; border-radius: 14px; font-size: 16px; font-weight: 600; text-decoration: none; border: 1px solid transparent; transition: transform 0.2s var(--spring), box-shadow 0.25s var(--ease), background 0.15s; white-space: nowrap; }
.cta:active { transform: scale(0.98); }
.cta-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.14) inset, 0 8px 24px -10px rgba(var(--shadow), 0.7); }
.cta-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.14) inset, 0 14px 30px -12px rgba(var(--shadow), 0.75); }
.cta-soft { background: #fff; color: var(--text); border-color: var(--hair-2); box-shadow: 0 1px 2px rgba(var(--shadow), 0.05); }
.cta-soft:hover { border-color: var(--lav-3); background: var(--cream); }
.cta-sm { min-height: 44px; padding: 0 14px; font-size: 15px; border-radius: 11px; }
.cta svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 32px 0 0; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: -20% -10% auto; height: 760px; background: radial-gradient(600px 360px at 18% 18%, var(--lav) 0%, rgba(241, 239, 250, 0) 70%), radial-gradient(640px 420px at 85% 30%, var(--lav-2) 0%, rgba(233, 229, 248, 0) 70%); z-index: -1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 6px 12px 6px 8px; border-radius: 99px; background: #fff; border: 1px solid var(--hair); font-size: 14px; font-weight: 550; color: var(--text-2); box-shadow: 0 1px 2px rgba(var(--shadow), 0.04); }
.eyebrow .pip { width: 8px; height: 8px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px #fff3cc; flex-shrink: 0; }
.hero h1 { margin-top: 18px; font: 750 clamp(40px, 7vw + 15px, 84px)/0.98 var(--display); letter-spacing: -0.05em; text-wrap: balance; overflow-wrap: break-word; }
.hero h1 em { font-style: normal; color: var(--accent-mid); position: relative; white-space: nowrap; }
.hero h1 em::after { content: ''; position: absolute; left: 2%; right: 2%; bottom: 0.02em; height: 0.12em; border-radius: 99px; background: var(--lav-3); z-index: -1; transform-origin: left; animation: underline 0.9s 0.4s var(--ease) both; }
@keyframes underline { from { transform: scaleX(0); } }
.lead { margin-top: 18px; font-size: 18px; line-height: 1.5; color: var(--text-2); max-width: 30em; text-wrap: pretty; }
.ctas { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; }
.ctas .cta { width: 100%; }
.proof { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 22px; font-size: 14.5px; color: var(--text-3); padding: 0; list-style: none; }
.proof li { display: flex; align-items: center; gap: 7px; }
.proof svg { width: 16px; height: 16px; color: var(--accent-mid); flex-shrink: 0; }

/* ---------- discord demo ---------- */
.demo { position: relative; max-width: 620px; }
.demo::before { content: ''; position: absolute; inset: 16px -6px -10px 12px; border-radius: 26px; background: var(--lav-2); opacity: 0.8; transform: rotate(2deg); z-index: -1; }
.dc { border-radius: 20px; background: #fff; border: 1px solid var(--hair-2); box-shadow: 0 30px 70px -30px rgba(var(--shadow), 0.35), 0 2px 6px rgba(var(--shadow), 0.04); overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); min-height: 420px; }
.dc-side { display: none; background: #f6f5fa; border-right: 1px solid var(--hair); padding: 16px 10px; flex-direction: column; gap: 2px; font-size: 14px; color: #77748a; }
.dc-server { font-weight: 700; color: var(--text); padding: 2px 8px 12px; font-size: 14.5px; border-bottom: 1px solid var(--hair); margin-bottom: 10px; }
.dc-ch { padding: 6px 8px; border-radius: 7px; display: flex; gap: 6px; }
.dc-ch.on { background: #ebe9f3; color: var(--text); font-weight: 560; }
.dc-main { display: flex; flex-direction: column; min-width: 0; }
.dc-top { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 14px; border-bottom: 1px solid var(--hair); font-weight: 650; font-size: 15px; }
.dc-top span { color: #a19eb3; font-weight: 500; }
.dc-log { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; padding: 14px; overflow: hidden; }
.dc-msg { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; animation: msg-in 0.4s var(--spring) both; }
@keyframes msg-in { from { opacity: 0; transform: translateY(10px); } }
.dc-av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #fff; }
.dc-av img { width: 34px; height: 34px; }
.dc-name { font-weight: 650; font-size: 14.5px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.dc-name .app { font-size: 10.5px; font-weight: 700; padding: 1px 5px; border-radius: 4px; background: #5865f2; color: #fff; letter-spacing: 0.02em; }
.dc-name time { font-weight: 450; font-size: 12px; color: #a19eb3; }
.dc-text { font-size: 15px; color: #2c2a38; line-height: 1.5; margin-top: 1px; overflow-wrap: anywhere; }
.dc-src { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; margin-top: 7px; padding: 4px 10px 4px 6px; border-radius: 8px; background: var(--cream); border: 1px solid var(--hair); font-size: 12.5px; color: var(--text-2); overflow-wrap: anywhere; animation: msg-in 0.35s var(--spring) both; }
.dc-src i { width: 16px; height: 16px; border-radius: 4px; background: var(--lav); display: grid; place-items: center; font-style: normal; font-size: 10px; flex-shrink: 0; }
.dc-voice { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; margin-top: 4px; padding: 8px 12px; border-radius: 12px; background: #f3f2f8; }
.dc-voice .play { width: 26px; height: 26px; border-radius: 50%; background: #5865f2; display: grid; place-items: center; flex-shrink: 0; }
.dc-voice .play::after { content: ''; border-left: 8px solid #fff; border-top: 5px solid transparent; border-bottom: 5px solid transparent; margin-left: 2px; }
.wave { display: flex; align-items: center; gap: 2px; height: 22px; min-width: 0; overflow: hidden; }
.wave b { width: 3px; flex-shrink: 0; border-radius: 3px; background: #9c94ff; height: 30%; animation: wave 1.1s var(--ease) infinite; }
.wave b:nth-child(2n) { animation-delay: 0.15s; }
.wave b:nth-child(3n) { animation-delay: 0.3s; }
@keyframes wave { 50% { height: 100%; } }
.dc-img { margin-top: 8px; width: 210px; max-width: 100%; height: 130px; border-radius: 12px; background: radial-gradient(circle at 70% 30%, #ffe08a 0 14%, transparent 15%), linear-gradient(180deg, #d9d3f5 0%, #a99be6 55%, #7cc4a4 56%, #5aa886 100%); position: relative; overflow: hidden; animation: msg-in 0.5s var(--spring) both; }
.dc-img::after { content: ''; position: absolute; left: 30px; bottom: 26px; width: 60px; height: 34px; border-radius: 30px 30px 6px 6px; background: #3d6b57; }
.typing { display: flex; align-items: center; gap: 8px; height: 22px; padding: 0 14px 12px; font-size: 13px; color: #85829a; }
.typing .dots { display: inline-flex; gap: 3px; }
.typing .dots b { width: 6px; height: 6px; border-radius: 50%; background: #b5b1c8; animation: dot 1.2s infinite; }
.typing .dots b:nth-child(2) { animation-delay: 0.15s; }
.typing .dots b:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 30% { transform: translateY(-4px); background: var(--accent-mid); } 60% { transform: none; } }
.typing[hidden] { display: flex; visibility: hidden; }
.dc-input { margin: 0 14px 14px; height: 44px; border-radius: 12px; background: #f3f2f8; display: flex; align-items: center; padding: 0 14px; font-size: 14px; color: #a19eb3; overflow: hidden; white-space: nowrap; }
.caret { display: inline-block; width: 2px; height: 1em; background: var(--accent-mid); margin-left: 1px; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- sections ---------- */
.section { padding: 72px 0 0; scroll-margin-top: 60px; }
.sec-head { max-width: 640px; }
.sec-head.center { margin: 0 auto; text-align: center; }
.kicker { display: inline-block; font-size: 14px; font-weight: 650; color: var(--accent-mid); letter-spacing: 0.01em; margin-bottom: 12px; }
.section h2 { font: 720 clamp(32px, 4vw + 16px, 54px)/1.04 var(--display); letter-spacing: -0.04em; text-wrap: balance; }
.sec-head p { margin-top: 14px; font-size: 17.5px; color: var(--text-2); text-wrap: pretty; }

.bento { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 36px; }
.tile { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 20px; background: var(--cream); border: 1px solid var(--hair); overflow: hidden; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.tile:hover { transform: translateY(-3px); box-shadow: 0 24px 48px -28px rgba(var(--shadow), 0.3); }
.tile h3 { font: 680 22px/1.15 var(--display); letter-spacing: -0.025em; }
.tile p { color: var(--text-2); font-size: 15.5px; max-width: 34em; }
.tile .art { margin-top: auto; padding-top: 16px; min-width: 0; }
.t-search { background: linear-gradient(160deg, var(--lav), #fbfaff 70%); }
.t-vibe { background: var(--lav-2); }
.t-voice { background: #f3f1ff; border-color: #e6e2fb; }
.t-images { background: linear-gradient(160deg, var(--lav-2), #faf9ff 75%); }
.t-length { background: var(--lav); }

.bub { display: inline-block; max-width: 100%; padding: 9px 14px; border-radius: 4px 18px 18px 18px; background: #fff; border: 1px solid var(--hair); font-size: 14.5px; box-shadow: 0 1px 2px rgba(var(--shadow), 0.04); overflow-wrap: anywhere; }
.bub.you { border-radius: 18px 4px 18px 18px; background: var(--accent); border-color: var(--accent); color: #fff; }
.convo { display: flex; flex-direction: column; gap: 8px; }
.convo .you { align-self: flex-end; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: #fff; border: 1px solid var(--hair); font-size: 13.5px; font-weight: 550; color: var(--text-2); }
.pill.src { margin-left: 6px; padding: 2px 8px; font-size: 12px; }
.vibe-cycle { position: relative; height: 92px; }
.vibe-cycle .bub { position: absolute; left: 0; top: 44px; opacity: 0; animation: cycle 9s infinite; }
.vibe-cycle .bub:nth-of-type(2) { animation-delay: 3s; }
.vibe-cycle .bub:nth-of-type(3) { animation-delay: 6s; }
.vibe-cycle .tag { position: absolute; left: 0; top: 0; }
.vibe-cycle .tag .pill { opacity: 0.55; }
@keyframes cycle { 0% { opacity: 0; transform: translateY(6px); } 4%, 30% { opacity: 1; transform: none; } 34%, 100% { opacity: 0; transform: translateY(-6px); } }
.mem { display: flex; flex-direction: column; gap: 8px; }
.mem-row { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); padding: 9px 12px; background: #fff; border: 1px solid var(--hair); border-radius: 12px; }
.mem-row svg { width: 16px; height: 16px; color: var(--accent-mid); flex-shrink: 0; }
.voice-card { display: flex; flex-direction: column; gap: 10px; }
.voice-card .dc-voice { background: #fff; border: 1px solid #e6e2fb; align-self: flex-start; }
.voice-card .dur { font-size: 12.5px; color: var(--text-3); }
.file-stack { display: flex; gap: 10px; flex-wrap: wrap; }
.file { width: 64px; height: 80px; border-radius: 10px; background: #fff; border: 1px solid var(--hair); display: flex; flex-direction: column; justify-content: flex-end; padding: 7px; font: 700 12px var(--mono); color: var(--text-2); position: relative; box-shadow: 0 6px 14px -10px rgba(var(--shadow), 0.35); transition: transform 0.3s var(--spring); }
.file::before { content: ''; position: absolute; top: 12px; left: 8px; right: 16px; height: 4px; border-radius: 3px; background: var(--sand); box-shadow: 0 9px 0 var(--sand), 0 18px 0 var(--sand); }
.file b { display: inline-block; padding: 2px 5px; border-radius: 4px; color: #fff; font-size: 10.5px; }
.tile:hover .file:nth-child(odd) { transform: rotate(-4deg) translateY(-3px); }
.tile:hover .file:nth-child(even) { transform: rotate(3deg) translateY(-2px); }
.len { display: flex; flex-direction: column; gap: 12px; }
.len-track { position: relative; height: 8px; margin-right: 10px; border-radius: 99px; background: #fff; border: 1px solid var(--lav-3); }
.len-fill { position: absolute; inset: 0 auto 0 0; width: 60%; border-radius: inherit; background: var(--accent-mid); animation: len 6s var(--ease) infinite alternate; }
.len-fill::after { content: ''; position: absolute; right: -10px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; background: #fff; border: 1px solid var(--lav-3); box-shadow: 0 2px 6px rgba(var(--shadow), 0.2); }
@keyframes len { 0% { width: 12%; } 100% { width: 92%; } }
.len-scale { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--text-3); }

/* ---------- keys / privacy duo ---------- */
.duo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 14px; }
.panel { padding: 22px; border-radius: 20px; border: 1px solid var(--hair); background: #fff; display: flex; flex-direction: column; gap: 12px; }
.panel h3 { font: 680 24px/1.15 var(--display); letter-spacing: -0.03em; }
.panel p { color: var(--text-2); }
.panel .kicker { margin-bottom: 0; }
.plans { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.plan { padding: 14px 16px; border-radius: 14px; background: var(--cream); border: 1px solid var(--hair); }
.plan b { display: block; font-size: 15.5px; margin-bottom: 2px; }
.plan span { font-size: 14px; color: var(--text-2); }
.plan.own { background: var(--lav); border-color: var(--lav-3); }
.providers { font-size: 14px; color: var(--text-3); }
.providers a { color: var(--accent-mid); text-underline-offset: 3px; }
.cmds { display: flex; flex-direction: column; gap: 8px; }
.cmd-line { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 11px 14px; border-radius: 12px; background: var(--cream); border: 1px solid var(--hair); font-size: 14.5px; color: var(--text-2); min-width: 0; }
.cmd-line code { background: #fff; border: 1px solid var(--hair); color: var(--text); max-width: 100%; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 36px; }
.step { position: relative; padding: 22px; border-radius: 20px; background: #fff; border: 1px solid var(--hair); }
.step-n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--lav); font: 750 21px/1 var(--display); color: var(--accent); margin-bottom: 14px; }
.step:nth-child(2) .step-n { background: var(--lav-2); color: var(--accent-mid); }
.step:nth-child(3) .step-n { background: var(--accent); color: #fff; }
.step h3 { font: 680 21px/1.2 var(--display); letter-spacing: -0.02em; margin-bottom: 6px; }
.step p { color: var(--text-2); font-size: 15.5px; }

/* ---------- faq ---------- */
.faq { max-width: 760px; margin: 32px auto 0; display: flex; flex-direction: column; gap: 10px; }
.faq details { border-radius: 16px; background: #fff; border: 1px solid var(--hair); transition: background 0.2s, border-color 0.2s; }
.faq details[open] { background: var(--cream); border-color: var(--lav-3); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; font-weight: 620; font-size: 16.5px; min-height: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex-shrink: 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--sand); font-size: 20px; font-weight: 500; transition: transform 0.3s var(--spring), background 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--lav-3); }
.faq .ans { padding: 0 18px 18px; color: var(--text-2); }

/* ---------- final cta ---------- */
.final { margin-top: 72px; padding: 44px 20px; border-radius: 26px; text-align: center; background: radial-gradient(500px 260px at 20% 0%, var(--lav), transparent 70%), radial-gradient(520px 280px at 85% 100%, var(--lav-3), transparent 70%), var(--lav-2); position: relative; overflow: hidden; }
.final img { width: 72px; height: 72px; margin: 0 auto 16px; animation: wiggle 4s var(--ease) infinite; }
@keyframes wiggle { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-8deg); } 90% { transform: rotate(6deg); } 95% { transform: rotate(-3deg); } }
.final h2 { font: 750 clamp(34px, 4vw + 18px, 60px)/1.02 var(--display); letter-spacing: -0.045em; text-wrap: balance; }
.final p { margin: 12px auto 0; max-width: 30em; font-size: 17.5px; color: var(--text-2); }
.final .ctas { align-items: center; }

.foot { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 32px 0 calc(36px + env(safe-area-inset-bottom)); font-size: 14.5px; color: var(--text-3); }
.foot nav { display: flex; gap: 0 20px; flex-wrap: wrap; }
.foot a { color: var(--text-2); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.foot a:hover { color: var(--text); }

/* reveal on scroll (only what starts below the fold) */
.pre { opacity: 0; transform: translateY(18px); }
.pre.in { opacity: 1; transform: none; transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }

/* ---------- legal + 404 ---------- */
.doc { max-width: 760px; margin: 16px auto 24px; padding: 24px 20px; border-radius: 22px; background: #fff; border: 1px solid var(--hair); box-shadow: 0 30px 60px -40px rgba(var(--shadow), 0.3); overflow-wrap: break-word; }
.doc h1 { font: 740 clamp(32px, 4vw + 16px, 52px)/1.05 var(--display); letter-spacing: -0.045em; }
.doc .updated { margin-top: 10px; color: var(--text-3); font-size: 15px; }
.doc h2 { margin-top: 32px; font: 680 22px/1.2 var(--display); letter-spacing: -0.02em; }
.doc p, .doc li { color: var(--text-2); }
.doc p { margin-top: 10px; }
.doc ul { margin: 10px 0 0; padding-left: 20px; }
.doc li { margin: 8px 0; }
.doc li::marker { color: var(--accent-mid); }
.doc a { color: var(--accent-mid); overflow-wrap: anywhere; }
.doc b { color: var(--text); }
.doc code { overflow-wrap: anywhere; }
.doc table { display: block; max-width: 100%; overflow-x: auto; }
.doc-bg { background: linear-gradient(180deg, var(--cream), #fff 420px); }
.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 40px 0; }
.lost img { width: 88px; height: 88px; margin: 0 auto 20px; animation: wiggle 4s var(--ease) infinite; }
.lost h1 { font: 750 clamp(38px, 5vw + 18px, 64px)/1 var(--display); letter-spacing: -0.045em; }
.lost p { margin-top: 14px; color: var(--text-2); font-size: 17.5px; }
.lost .ctas { align-items: center; }

/* ---------- small phones: keep the bar CTA from crowding the logo ---------- */
@media (max-width: 359px) {
  .nav-in > .cta-sm { padding: 0 10px; font-size: 14px; }
  .logo b { font-size: 21px; }
}

/* ---------- 600px+: buttons side by side, two-up grids ---------- */
@media (min-width: 600px) {
  .wrap { width: min(1160px, calc(100% - 40px)); }
  .nav-menu { left: -20px; right: -20px; padding-inline: 20px; }
  .ctas { flex-direction: row; flex-wrap: wrap; gap: 12px; }
  .ctas .cta { width: auto; }
  .final .ctas, .lost .ctas { justify-content: center; }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cmd-line { flex-direction: row; align-items: baseline; gap: 12px; }
  .cmd-line code { white-space: nowrap; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t-search, .t-files, .t-length { grid-column: span 2; }
  .dc { grid-template-columns: 150px minmax(0, 1fr); min-height: 460px; }
  .dc-side { display: flex; }
  .dc-log { padding: 18px; }
  .dc-top { padding: 0 18px; }
  .dc-input { margin: 0 18px 16px; }
  .typing { padding: 0 18px 12px; }
  .doc { padding: 40px; border-radius: 28px; margin-top: 32px; }
  .foot { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
}

/* ---------- 820px+: full nav, roomier sections ---------- */
@media (min-width: 820px) {
  .nav-in { height: 68px; }
  .nav-toggle { display: none; }
  .nav-menu, .nav.open .nav-menu { position: static; display: flex; flex-direction: row; align-items: center; gap: 6px; padding: 0; background: none; border: 0; box-shadow: none; animation: none; }
  .nav-links { flex-direction: row; margin-right: 10px; }
  .nav-links a { min-height: 44px; padding: 0 14px; font-size: 15px; border-radius: 10px; }
  .nav-menu .cta { margin-top: 0; width: auto; }
  .logo img { width: 32px; height: 32px; }
  .logo b { font-size: 25px; }
  .hero { padding-top: clamp(48px, 7vw, 88px); }
  .lead { font-size: 20px; }
  .section { padding-top: clamp(88px, 10vw, 128px); scroll-margin-top: 68px; }
  .sec-head p { font-size: 18.5px; }
  .bento, .steps { margin-top: 48px; gap: 16px; }
  .duo { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tile { padding: 28px; border-radius: 24px; min-height: 240px; }
  .tile h3 { font-size: 23px; }
  .panel, .step { padding: 30px; border-radius: 24px; }
  .file { width: 76px; height: 92px; padding: 8px; }
  .faq summary { padding: 20px 22px; font-size: 17px; }
  .faq .ans { padding: 0 22px 20px; }
  .final { margin-top: clamp(88px, 10vw, 128px); padding: clamp(56px, 7vw, 84px) 24px; border-radius: 32px; }
  .final img { width: 84px; height: 84px; }
  .demo::before { inset: 24px -18px -18px 24px; border-radius: 28px; }
  .dc { border-radius: 22px; min-height: 470px; }
  .dc-msg { grid-template-columns: 38px minmax(0, 1fr); gap: 12px; }
  .dc-av, .dc-av img { width: 38px; height: 38px; }
}

/* ---------- 1000px+: hero side by side, bento ---------- */
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 64px); }
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .t-search { grid-column: span 4; }
  .t-vibe, .t-memory, .t-voice, .t-images { grid-column: span 2; }
  .t-files, .t-length { grid-column: span 3; }
}
