/* Product-only styles; shared v5 tokens and the learning app stay intact. */
body[data-project="margo"]{--product-accent:#465664;--product-tint:#E2E5E6;--product-muted:#615B53}
.product-wrap{max-width:1440px;margin-inline:auto;padding-inline:var(--gutter)}
.product-hero{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:clamp(32px,5vw,80px);padding-top:140px;padding-bottom:88px;align-items:start}
.product-name{display:flex;align-items:center;flex-wrap:wrap;gap:12px;font-size:24px;font-weight:600;letter-spacing:-.04em;margin:6px 0 28px}
.product-name span{padding-left:12px;border-left:1px solid var(--line);font-size:13px;font-weight:400;letter-spacing:0;color:var(--product-muted)}
.product-intro h1{font-size:clamp(48px,5.1vw,74px);max-width:11ch;line-height:1.02}
.product-intro .lead{font-size:21px;max-width:30ch;margin:28px 0 12px;line-height:1.5}
.gloss{color:var(--product-muted);font-size:16px;line-height:1.6;max-width:45ch}
.intro-note{font-size:13px;color:var(--product-muted);margin-top:26px;line-height:1.8}
.product-link{display:inline-flex;align-items:center;justify-content:space-between;gap:24px;min-height:48px;font-size:15px;text-decoration:none;border-bottom:1px solid var(--product-accent);color:var(--product-accent);font-weight:500;white-space:nowrap}
.product-link span{font-size:20px}
.demo{min-width:0;border:1px solid var(--line);background:var(--paper)}
.demo-heading,.demo-context,.demo form,.demo-result{padding:20px 24px}
.demo-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);background:var(--product-tint)}
.demo-heading h2{font-size:18px;letter-spacing:-.025em;line-height:1.25}
.demo-heading>span{font-size:12px;white-space:nowrap;color:var(--product-muted)}
.demo-context{padding-bottom:0}.small-label{display:block;color:var(--product-muted);font-size:13px;font-weight:500;margin-bottom:16px}
.demo-context .small-label{font-size:12px;margin-bottom:6px}.demo-context p{font-size:16px;line-height:1.5;margin-bottom:4px;max-width:48ch}
.demo-context small{font-size:13px;color:var(--product-muted);display:block}
.draft-label{display:flex;justify-content:space-between;align-items:center;font-size:14px;gap:12px}
.demo textarea{display:block;resize:vertical;width:100%;min-height:176px;padding:14px;border:1px solid var(--line);border-radius:2px;background:var(--paper);color:var(--ink);font:400 16px/1.6 var(--sans)}
.demo textarea:focus{outline:2px solid var(--product-accent);outline-offset:2px}.demo textarea[aria-invalid="true"]{border-color:var(--fire)}
.form-meta{display:flex;justify-content:space-between;gap:10px;color:var(--product-muted);font-size:12px;margin-top:8px}
.quiet-button{display:inline-flex;align-items:center;justify-content:center;background:none;border:0;color:var(--product-accent);min-height:44px;min-width:44px;padding:8px 4px;font-size:13px;white-space:nowrap;text-decoration:underline;text-underline-offset:4px}
.product-button{display:inline-flex;align-items:center;justify-content:center;gap:20px;min-height:48px;padding:14px 20px;background:var(--product-accent);color:#FFFDF7;border:1px solid var(--product-accent);border-radius:2px;font:500 15px/1.2 var(--sans);text-decoration:none;white-space:nowrap}
.product-button span{font-size:18px}
/* A small lift confirms the primary action is interactive. */
.product-button{transition:transform 150ms,opacity 150ms}
@media(hover:hover){.product-button:hover{transform:translateY(-2px)}.product-link:hover{opacity:.75}}
.product-button:active{transform:translateY(0)}.product-button:disabled{opacity:.6;cursor:wait}
.submit-row{display:flex;gap:16px;align-items:center;margin-top:16px}
.demo-privacy{font-size:12px;line-height:1.6;color:var(--product-muted);margin:14px 0 0;max-width:56ch}
.demo-privacy a{display:inline-flex;align-items:center;min-height:44px;min-width:44px;padding-inline:4px;margin-left:-4px}
.demo-trap{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.field-error{font-size:13px;color:var(--fire);margin:8px 0 0}.field-error:empty{display:none}
.demo-status{border-top:1px solid var(--line);font-size:12px;line-height:1.6;color:var(--product-muted);margin:0;padding:12px 24px}
.demo-result{border-top:1px solid var(--line);scroll-margin-top:100px}.demo-result[hidden]{display:none}
.result-heading{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;justify-content:space-between}
.result-heading h3{font-size:19px;letter-spacing:-.025em;line-height:1.3}.result-heading>span{font-size:11px;color:var(--product-accent);font-weight:500}
.result-notice{font-size:12px;line-height:1.6;margin-top:12px;color:var(--product-muted)}
.revised-email{font-size:15px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;margin-top:16px;padding-left:16px;border-left:2px solid var(--product-accent)}
.demo-result h4{font-size:14px;font-weight:500;margin:24px 0 12px}.demo-result h4 span{display:block;font-size:12px;font-weight:400;color:var(--product-muted);margin-top:3px}
.explanations{margin:0 0 12px;padding-left:22px;font-size:13px;line-height:1.6}.explanations li{padding-left:4px;margin-bottom:12px;overflow-wrap:anywhere}.explanations li::marker{color:var(--product-accent)}
.explanations p{margin:0}.explanations [lang="vi"]{color:var(--product-muted);margin-top:4px}
.product-section{padding-top:80px;padding-bottom:80px;border-top:1px solid var(--line)}
.section-intro{max-width:690px;margin-bottom:36px}.section-intro h2{max-width:19ch;font-size:clamp(34px,4vw,54px);margin-bottom:24px}.section-intro>p:not(.small-label){max-width:55ch;margin-bottom:10px}
.product-screens{display:grid;grid-template-columns:1fr 1fr;gap:24px;min-width:0}
.screen-card{margin:0;min-width:0}.screen-title{display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--product-tint);border:1px solid var(--line);padding:14px 18px;font-size:12px}.screen-title span:last-child{color:var(--product-muted)}
.screen-viewport{position:relative;aspect-ratio:8/5;overflow:hidden;background:var(--paper-2);border:1px solid var(--line);border-top:0;container-type:inline-size}
.screen-viewport iframe{position:absolute;inset:0;width:1040px;height:800px;border:0;transform:scale(.5);transform-origin:top left;pointer-events:none}
@supports(width:1cqw){.screen-viewport iframe{transform:scale(calc(100cqw / 1040px))}}
.screen-viewport img{display:block;width:100%;height:100%;object-fit:cover;object-position:top}
.screen-card figcaption{padding:18px 0;font-size:15px;line-height:1.5}.screen-card figcaption span{display:block;color:var(--product-muted);font-size:13px;margin-top:5px}
.screen-note{font-size:13px;color:var(--product-muted);margin:12px 0 0;max-width:56ch}
.product-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:40px;list-style:none;padding:0;margin:0}
.product-steps li{border-top:1px solid var(--line);padding-top:24px}.step-number{display:block;font-size:13px;color:var(--product-accent);margin-bottom:24px}
.product-steps h3,.audience-list h3{font-size:22px;line-height:1.2;letter-spacing:-.03em;margin:0 0 16px}
.product-steps p{font-size:16px;max-width:35ch;margin-bottom:10px}.product-steps .gloss{font-size:16px}
.audience{display:grid;grid-template-columns:1fr 1fr;gap:80px}.audience-list article{padding:24px 0;border-top:1px solid var(--line)}.audience-list h3{margin-bottom:10px}.audience-list p{font-size:16px;margin-bottom:8px}
.product-closing{padding-top:76px;padding-bottom:88px;background:var(--product-tint)}
.product-closing h2{font-size:clamp(38px,5vw,64px);max-width:20ch;margin-bottom:24px}.product-closing>p{max-width:50ch;margin-bottom:12px}.product-closing .product-button{margin-top:16px}
.product-closing small{display:block;font-size:12px;color:var(--product-muted);margin-top:18px;max-width:62ch}
body[data-project="margo"] .site-footer{padding-top:40px;padding-bottom:32px}
body[data-project="margo"] .footer-bottom a,body[data-project="margo"] .footer-workspace{display:inline-flex;align-items:center;min-height:44px;width:fit-content;overflow-wrap:anywhere}
body[data-project="margo"] :focus-visible{outline-color:var(--product-accent)}
@media(max-width:1000px){.product-hero{grid-template-columns:minmax(0,.7fr) minmax(0,1fr);gap:32px}.product-intro h1{font-size:54px}.demo-heading,.demo-context,.demo form,.demo-result{padding-inline:20px}}
@media(max-width:767px){
 .product-hero{grid-template-columns:1fr;padding-top:116px;padding-bottom:56px;gap:32px}
 .product-name{margin-top:0;margin-bottom:24px}.product-intro h1{font-size:50px;max-width:12ch}.product-intro .lead{font-size:19px;max-width:32ch;margin-top:20px}
 .intro-note{margin-top:18px;margin-bottom:0}.intro-note br{display:none}.intro-note span{display:block}
 .demo-heading{align-items:start}.demo-heading h2{max-width:16ch}.demo-heading>span{padding-top:3px}
 .product-section{padding-top:56px;padding-bottom:56px}.product-screens,.product-steps,.audience{grid-template-columns:1fr;gap:24px}
 .section-intro{margin-bottom:28px}.section-intro h2{font-size:36px}.screen-viewport{aspect-ratio:8/5}
 .product-steps li{padding-top:20px}.step-number{margin-bottom:14px}.product-steps p{max-width:45ch}
 .audience{gap:8px}.audience .section-intro{margin-bottom:16px}.product-closing{padding-block:56px}.product-closing h2{font-size:42px}
}
@media(max-width:380px){.submit-row{gap:10px}.product-button{padding-inline:14px;gap:12px}.demo-heading,.demo-context,.demo form,.demo-result{padding-inline:16px}.product-intro h1{font-size:46px}}
@media(prefers-reduced-motion:reduce){.product-button{transition:none}.product-button:hover,.product-button:active{transform:none}}

/* Type hygiene: balanced headings, no one-word last lines. */
h1,h2,h3{text-wrap:balance}
p,li{text-wrap:pretty}
