.ae-brief {
  --ae-ink:#1a0e0a; --ae-copy:#3e2f28; --ae-muted:#7a6a5f; --ae-line:#eadfcd;
  --ae-cream:#f7efe2; --ae-cream-deep:#eee2cc; --ae-paper:#fffdf9;
  --ae-brand:#d8392b; --ae-brand-dark:#b92b20; --ae-good:#1f7a59; --ae-warn:#b56a16; --ae-bad:#c84438;
  width:100%; max-width:1120px; margin:32px auto 56px; color:var(--ae-ink); font-family:Inter,system-ui,-apple-system,sans-serif; line-height:1.55;
}
.ae-brief *, .ae-brief *::before, .ae-brief *::after { box-sizing:border-box; }
.ae-brief p { margin-top:0; }
.ae-brief h2, .ae-brief h3, .ae-brief h4 { color:var(--ae-ink); font-family:Fraunces,Georgia,serif; }
.ae-brief h2 { max-width:700px; margin:0 0 14px; font-size:clamp(34px,5vw,56px); font-weight:600; line-height:1.05; letter-spacing:-.025em; }
.ae-brief h3 { margin:0; font-size:22px; font-weight:600; line-height:1.25; }
.ae-brief h4 { margin:0; font-size:19px; font-weight:600; line-height:1.3; }

.ae-brief__hero { position:relative; display:grid; grid-template-columns:minmax(0,1.55fr) minmax(270px,.75fr); gap:clamp(28px,6vw,70px); align-items:center; margin-bottom:28px; padding:clamp(24px,5vw,48px); overflow:hidden; border:1px solid var(--ae-line); border-radius:28px; background:radial-gradient(circle at 91% 10%,rgba(216,57,43,.14),transparent 28%),linear-gradient(135deg,#fffdf9 0%,var(--ae-cream) 100%); }
.ae-brief__hero::after { content:""; position:absolute; right:-45px; bottom:-65px; width:210px; height:210px; border:1px solid rgba(216,57,43,.15); border-radius:50%; box-shadow:0 0 0 30px rgba(216,57,43,.04),0 0 0 62px rgba(216,57,43,.022); }
.ae-brief__intro { position:relative; z-index:1; }
.ae-brief__eyebrow { display:flex; align-items:center; gap:8px; margin:0 0 8px; color:var(--ae-brand); font-size:12px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
.ae-brief__eyebrow > span { width:24px; height:2px; border-radius:999px; background:var(--ae-brand); }
.ae-brief__intro > p:not(.ae-brief__eyebrow) { max-width:670px; margin-bottom:18px; color:var(--ae-copy); font-size:17px; }
.ae-brief__trust { display:flex; flex-wrap:wrap; gap:8px; }
.ae-brief__trust span { display:inline-flex; align-items:center; gap:7px; padding:7px 11px; border:1px solid rgba(26,14,10,.1); border-radius:999px; background:rgba(255,255,255,.65); color:var(--ae-copy); font-size:12px; font-weight:650; }
.ae-brief__trust span::before { content:""; width:6px; height:6px; border-radius:50%; background:var(--ae-brand); }

.ae-brief__visual { position:relative; z-index:1; min-height:245px; }
.ae-brief__sheet { position:absolute; inset:8px 22px 8px 30px; padding:28px 25px; border:1px solid rgba(216,57,43,.18); border-radius:20px; background:rgba(255,255,255,.84); box-shadow:0 20px 46px rgba(70,40,28,.11); transform:rotate(2deg); animation:ae-brief-sheet 4.4s ease-in-out infinite; }
.ae-brief__sheet::before { content:""; position:absolute; inset:11px; border:1px dashed rgba(216,57,43,.18); border-radius:14px; pointer-events:none; }
.ae-brief__sheet p { position:relative; margin:0 0 15px; color:var(--ae-brand); font:800 10px/1 "JetBrains Mono",monospace; letter-spacing:.12em; }
.ae-brief__sheet strong { position:relative; display:block; margin-bottom:20px; font-family:Fraunces,Georgia,serif; font-size:25px; font-weight:600; line-height:1.1; }
.ae-brief__sheet > span { position:relative; display:block; height:7px; margin-top:9px; border-radius:999px; background:var(--ae-cream-deep); }
.ae-brief__sheet > span:nth-of-type(1) { width:82%; background:rgba(216,57,43,.23); }
.ae-brief__sheet > span:nth-of-type(2) { width:65%; }
.ae-brief__sheet > span:nth-of-type(3) { width:74%; }
.ae-brief__chip { position:absolute; z-index:2; padding:8px 11px; border-radius:999px; background:var(--ae-ink); color:var(--ae-cream); box-shadow:0 8px 20px rgba(26,14,10,.17); font:700 10px/1 "JetBrains Mono",monospace; animation:ae-brief-float 3.2s ease-in-out infinite; }
.ae-brief__chip--question { top:30px; right:0; }
.ae-brief__chip--proof { left:0; bottom:23px; background:var(--ae-brand); animation-delay:-1.4s; }

.ae-brief__form, .ae-output { overflow:hidden; border:1px solid var(--ae-line); border-radius:24px; background:var(--ae-paper); box-shadow:0 18px 50px rgba(70,40,28,.07); transition:border-color .25s ease,box-shadow .25s ease,transform .25s ease; }
.ae-brief__form:hover { border-color:#dfcfb6; box-shadow:0 24px 64px rgba(70,40,28,.1); }
.ae-section { padding:clamp(23px,4vw,38px); border-bottom:1px solid var(--ae-line); }
.ae-section__heading { display:flex; gap:13px; align-items:flex-start; margin-bottom:22px; }
.ae-section__heading > span { display:grid; flex:0 0 34px; height:34px; place-items:center; border-radius:50%; background:var(--ae-ink); color:var(--ae-cream); font:700 10px/1 "JetBrains Mono",monospace; }
.ae-section__heading h3 { font-size:21px; }
.ae-section__heading p { margin:3px 0 0; color:var(--ae-muted); font-size:13px; }
.ae-grid { display:grid; gap:19px; padding-left:47px; }
.ae-grid--2 { grid-template-columns:repeat(2,minmax(0,1fr)); }
.ae-field { display:block; }
.ae-field--wide { grid-column:1/-1; }
.ae-field > span { display:block; margin-bottom:7px; color:var(--ae-copy); font-weight:700; }
.ae-field b { color:var(--ae-brand); }
.ae-field small { display:block; margin-top:7px; color:var(--ae-muted); font-size:12px; }
.ae-brief input, .ae-brief select, .ae-brief textarea { width:100%; border:1px solid #d8cab4; border-radius:13px; background:#fff; color:var(--ae-ink); font:inherit; outline:0; transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease; }
.ae-brief input, .ae-brief select { min-height:52px; padding:10px 14px; }
.ae-brief textarea { padding:14px; resize:vertical; }
.ae-brief input:hover, .ae-brief select:hover, .ae-brief textarea:hover { border-color:#c7b69d; }
.ae-brief input:focus, .ae-brief select:focus, .ae-brief textarea:focus { border-color:var(--ae-brand); box-shadow:0 0 0 4px rgba(216,57,43,.1); }
.ae-brief input::placeholder, .ae-brief textarea::placeholder { color:#aa9c91; }
.ae-actions { display:flex; flex-wrap:wrap; gap:10px; padding:26px clamp(23px,4vw,38px) 28px 85px; background:linear-gradient(90deg,rgba(247,239,226,.7),rgba(255,253,249,.4)); }
.ae-button { min-height:48px; padding:10px 20px; border:1px solid transparent; border-radius:999px; font:inherit; font-weight:750; cursor:pointer; transition:background .18s ease,border-color .18s ease,transform .18s ease,box-shadow .18s ease; }
.ae-button:hover { transform:translateY(-2px); }
.ae-button:active { transform:translateY(0); }
.ae-button:focus-visible { outline:3px solid rgba(216,57,43,.22); outline-offset:3px; }
.ae-button--primary { display:inline-flex; align-items:center; gap:13px; background:var(--ae-brand); color:#fff; box-shadow:0 9px 22px rgba(216,57,43,.22); }
.ae-button--primary i { display:grid; width:24px; height:24px; place-items:center; border-radius:50%; background:rgba(255,255,255,.18); font-style:normal; transition:transform .18s ease; }
.ae-button--primary:hover { background:var(--ae-brand-dark); box-shadow:0 12px 28px rgba(216,57,43,.28); }
.ae-button--primary:hover i { transform:translateX(3px); }
.ae-button--secondary { border-color:var(--ae-line); background:var(--ae-cream); color:var(--ae-ink); }
.ae-button--secondary:hover { border-color:#d6c4a9; background:var(--ae-cream-deep); }
.ae-error { margin:20px 38px 0 85px; padding:12px 14px; border-left:4px solid var(--ae-bad); border-radius:8px; background:#fff1ee; color:#8f2922; }

.ae-output { position:relative; margin-top:24px; padding:clamp(23px,4vw,38px); }
.ae-output.is-visible { animation:ae-brief-rise .48s cubic-bezier(.22,1,.36,1) both; }
.ae-output__heading { display:flex; justify-content:space-between; align-items:center; gap:18px; padding-bottom:22px; border-bottom:1px solid var(--ae-line); }
.ae-output__heading h3 { font-size:30px; }
.ae-output__actions { display:flex; flex-wrap:wrap; gap:8px; }
.ae-completeness { display:grid; grid-template-columns:minmax(180px,1fr) auto; align-items:center; gap:16px; margin:22px 0 16px; padding:16px 18px; border:1px solid var(--ae-line); border-radius:14px; background:var(--ae-cream); }
.ae-completeness > div { height:10px; overflow:hidden; border-radius:999px; background:#ddd0ba; box-shadow:inset 0 1px 2px rgba(26,14,10,.08); }
.ae-completeness span { display:block; width:0; height:100%; border-radius:inherit; background:linear-gradient(90deg,var(--ae-brand),#ec7568); transition:width .55s cubic-bezier(.22,1,.36,1); }
.ae-completeness p { margin:0; color:var(--ae-muted); font-size:13px; white-space:nowrap; }
.ae-completeness strong { color:var(--ae-ink); font-family:Fraunces,Georgia,serif; font-size:20px; }
.ae-notices { display:grid; gap:8px; margin-bottom:16px; }
.ae-notice { position:relative; margin:0; padding:11px 13px 11px 39px; border-radius:10px; background:#fff5e5; color:#805000; font-size:13px; }
.ae-notice::before { content:"!"; position:absolute; left:13px; top:10px; display:grid; width:18px; height:18px; place-items:center; border-radius:50%; background:var(--ae-warn); color:#fff; font-size:11px; font-weight:800; }
.ae-output__metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:16px 0 22px; }
.ae-output__metrics > div { min-height:88px; padding:16px; border:1px solid var(--ae-line); border-radius:14px; background:linear-gradient(145deg,#fff 0%,var(--ae-cream) 100%); transition:transform .18s ease,box-shadow .18s ease; }
.ae-output__metrics > div:hover { transform:translateY(-3px); box-shadow:0 12px 25px rgba(70,40,28,.08); }
.ae-output__metrics strong { display:block; font-family:Fraunces,Georgia,serif; font-size:25px; line-height:1.1; }
.ae-output__metrics span { color:var(--ae-muted); font-size:12px; }
.ae-brief-output { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.ae-card { position:relative; padding:21px; overflow:hidden; border:1px solid var(--ae-line); border-radius:14px; background:#fff; transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease; }
.ae-card::before { content:""; position:absolute; left:0; top:0; width:4px; height:100%; background:var(--ae-brand); opacity:.72; }
.ae-card:hover { transform:translateY(-3px); border-color:#d9c9b0; box-shadow:0 13px 28px rgba(70,40,28,.08); }
.ae-card--wide { grid-column:1/-1; }
.ae-card h4 { margin-bottom:12px; }
.ae-card p:last-child, .ae-card ul:last-child, .ae-card ol:last-child { margin-bottom:0; }
.ae-card p, .ae-card li { color:var(--ae-copy); font-size:14px; }
.ae-card ul, .ae-card ol { margin:0; padding-left:21px; }
.ae-card li { margin-bottom:7px; }
.ae-card li::marker { color:var(--ae-brand); }
.ae-card dl { display:grid; grid-template-columns:115px 1fr; gap:8px 12px; margin:0; font-size:14px; }
.ae-card dt { color:var(--ae-ink); font-weight:750; }
.ae-card dd { margin:0; color:var(--ae-copy); overflow-wrap:anywhere; }
.ae-outline { display:grid; gap:9px; counter-reset:outline; }
.ae-outline__item { display:grid; grid-template-columns:43px 1fr; gap:11px; padding:13px; border:1px solid transparent; border-radius:11px; background:var(--ae-cream); transition:border-color .18s ease,transform .18s ease; }
.ae-outline__item:hover { transform:translateX(3px); border-color:#ddcdb5; }
.ae-outline__level { display:grid; height:30px; place-items:center; border-radius:8px; background:var(--ae-ink); color:var(--ae-cream); font:800 10px/1 "JetBrains Mono",monospace; }
.ae-outline__item strong { display:block; color:var(--ae-ink); }
.ae-outline__item p { margin:3px 0 0; color:var(--ae-muted); font-size:13px; }
.ae-disclaimer { margin-top:18px; padding:17px 18px; border:1px solid #ead3ad; border-left:4px solid var(--ae-warn); border-radius:10px; background:#fff7e9; }
.ae-disclaimer strong { font-family:Fraunces,Georgia,serif; font-size:18px; }
.ae-disclaimer p { margin:4px 0 0; color:#674614; font-size:13px; }

@keyframes ae-brief-rise { from { opacity:0; transform:translateY(18px); } to { opacity:1; transform:translateY(0); } }
@keyframes ae-brief-sheet { 0%,100% { transform:rotate(2deg) translateY(0); } 50% { transform:rotate(1deg) translateY(-5px); } }
@keyframes ae-brief-float { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-5px); } }
@media (max-width:840px) { .ae-brief__hero { grid-template-columns:1fr; } .ae-brief__visual { display:none; } }
@media (max-width:760px) {
  .ae-grid--2, .ae-brief-output { grid-template-columns:1fr; }
  .ae-field--wide, .ae-card--wide { grid-column:auto; }
  .ae-output__heading { align-items:flex-start; flex-direction:column; }
  .ae-output__actions, .ae-output__actions .ae-button { width:100%; }
  .ae-completeness { grid-template-columns:1fr; }
  .ae-completeness p { white-space:normal; }
  .ae-output__metrics { grid-template-columns:1fr 1fr; }
  .ae-output__metrics > div:last-child { grid-column:1/-1; }
}
@media (max-width:520px) {
  .ae-brief { margin-top:18px; }
  .ae-brief__hero, .ae-brief__form, .ae-output { border-radius:18px; }
  .ae-grid { padding-left:0; }
  .ae-actions { padding-left:clamp(23px,4vw,38px); }
  .ae-actions .ae-button { justify-content:center; width:100%; }
  .ae-error { margin-right:23px; margin-left:23px; }
  .ae-output__metrics { grid-template-columns:1fr; }
  .ae-output__metrics > div:last-child { grid-column:auto; }
  .ae-card dl { grid-template-columns:1fr; gap:2px; }
  .ae-card dd { margin-bottom:8px; }
}
@media (prefers-reduced-motion:reduce) { .ae-button,.ae-brief input,.ae-brief select,.ae-brief textarea,.ae-completeness span,.ae-card,.ae-output__metrics>div,.ae-outline__item { transition:none; } .ae-brief__sheet,.ae-brief__chip,.ae-output.is-visible { animation:none; } }
