/* dwai.css — generated by _src/port.py from dwai-portfolio-brand (brand.css + brand-light.css + the page CSS of
   landing/modal/thank-you, made fluid) + the overlay/toast/form rules site.js needs. Do not edit; re-run the script. */
/* ---- brand.css ---- */
/* alohanoghosa.com brand tokens, measured from the live site (Oct 2026) */
:root {
  --bg: #000000;
  --ink: #FFFFFF;
  --ink-64: rgba(255, 255, 255, .64);
  --ink-32: rgba(255, 255, 255, .32);
  --ink-12: rgba(255, 255, 255, .12);
  --ink-06: rgba(255, 255, 255, .06);
  --accent: #EB4513;
  --surface: #0B0B0B;
  --line: rgba(255, 255, 255, .10);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
b, strong { font-weight: 600; }
/* type ramp (web sizes) */
.t-display { font-size: 72px; line-height: 72px; font-weight: 500; letter-spacing: -1.44px; }
.t-display-lg { font-size: 150px; line-height: 136px; font-weight: 500; letter-spacing: -4.5px; }
.t-h2 { font-size: 66px; line-height: 66px; font-weight: 500; letter-spacing: -1.44px; }
.t-h3 { font-size: 24px; line-height: 30px; font-weight: 500; letter-spacing: -0.48px; }
.t-body { font-size: 16px; line-height: 24px; letter-spacing: -0.16px; }
.t-small { font-size: 14px; line-height: 20px; letter-spacing: -0.13px; }
.t-micro { font-size: 13px; line-height: 20px; letter-spacing: -0.13px; }
.muted { color: var(--ink-64); }
.faint { color: var(--ink-32); }
.acc { color: var(--accent); }
/* 12-column dashed guide lines, as on the portfolio */
.grid-lines { position: absolute; inset: 0; pointer-events: none; display: flex; justify-content: space-between; padding: 0 72px; }
.grid-lines i { width: 1px; height: 100%; border-left: 1px dashed rgba(255, 255, 255, .10); }
/* header */
.hdr { display: flex; align-items: flex-start; justify-content: space-between; padding: 40px 72px 0; height: 108px; position: relative; }
.hdr .left { display: flex; align-items: center; gap: 16px; }
.hdr .wordmark { font-size: 16px; line-height: 24px; letter-spacing: -0.16px; font-weight: 400; }
.pill { background: var(--accent); color: #fff; font-size: 13px; line-height: 20px; letter-spacing: -0.13px; padding: 2px 8px; display: inline-block; }
.hdr .right { display: flex; gap: 120px; align-items: flex-start; }
.hdr nav { display: flex; flex-direction: column; gap: 0; }
.hdr nav a, .hdr .cta { font-size: 14px; line-height: 20px; letter-spacing: -0.13px; }
.arrow::after { content: ' →'; }
/* sections */
.sec { position: relative; padding: 176px 72px; }
.sec.tight { padding: 120px 72px; }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 88px; }
.sec-head .t-display { max-width: 640px; }
.sec-head p { max-width: 420px; }
.idx { display: grid; grid-template-columns: 96px 1fr; gap: 24px; align-items: start; }
.hair { border-top: 1px solid var(--line); }
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: #000; font-size: 14px; line-height: 20px; letter-spacing: -0.13px; font-weight: 500; padding: 14px 22px; }
.btn.acc { background: var(--accent); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink-32); }
.input { background: transparent; border: 0; border-bottom: 1px solid var(--ink-32); color: var(--ink); font: 400 16px/24px var(--font); letter-spacing: -0.16px; padding: 14px 0; width: 100%; outline: 0; }
.input::placeholder { color: var(--ink-32); }
.label { font-size: 14px; line-height: 20px; letter-spacing: -0.13px; color: var(--ink-64); }
.card { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); padding: 32px; }
/* ---- brand-light.css ---- */
/* light theme for the ebook site + email: white ground, black type, same orange accent */
:root { --bg: #FFFFFF; --ink: #111111; --ink-64: rgba(0,0,0,.6); --ink-32: rgba(0,0,0,.32); --ink-12: rgba(0,0,0,.12); --ink-06: rgba(0,0,0,.05); --surface: #F5F5F3; --line: rgba(0,0,0,.12); }
html, body { background: #fff; color: #111; }
.grid-lines i, .lines i { border-left-color: rgba(0,0,0,.10) !important; }
.btn { background: #111; color: #fff; }
.btn.acc { background: #EB4513; color: #fff; }
.btn.ghost { background: transparent; color: #111; box-shadow: inset 0 0 0 1px rgba(0,0,0,.28); }
.input { border-bottom-color: rgba(0,0,0,.3); color: #111; } .input::placeholder { color: rgba(0,0,0,.35); }
.label { color: rgba(0,0,0,.6); }
.card { background: #F5F5F3; box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); }
/* ---- page CSS (fluid) ---- */
body { width: 100%; max-width: 1440px; margin: 0 auto; position: relative; overflow-x: hidden; }
.wrap { position: relative; }
.lines { position: absolute; inset: 0; display: flex; justify-content: space-between; padding: 0 72px; pointer-events: none; }
.lines i { width: 1px; border-left: 1px dashed rgba(0,0,0,.09); }
.hdr { position: relative; z-index: 2; }
.pill-row { display: flex; gap: 8px; align-items: center; }
.sec { padding: 160px 72px; position: relative; z-index: 1; }
.sec.first { padding-top: 120px; }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 88px; }
.sec-head h2 { font-size: clamp(36px, 5.0vw, 72px); line-height: 1; letter-spacing: -0.02em; font-weight: 500; }
.sec-head p { max-width: 420px; font-size: 16px; line-height: 24px; letter-spacing: -.16px; color: rgba(0,0,0,.64); }
.num { font-size: 16px; line-height: 24px; letter-spacing: -.16px; color: #111; }
/* hero */
.hero { padding: 72px 72px 140px; display: grid; grid-template-columns: 1fr clamp(312px, 36.11vw, 520px); gap: 64px; align-items: end; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(53px, calc(11.0625vw - 41.3px), 118px); line-height: 0.915; letter-spacing: -0.0398em; font-weight: 500; }
.hero h1 i { font-style: normal; color: #EB4513; }
.hero .sub { font-size: 24px; line-height: 32px; letter-spacing: -.48px; color: rgba(0,0,0,.86); max-width: 560px; margin: 40px 0 44px; }
.ctas { display: flex; gap: 12px; align-items: center; }
.byline { display: flex; align-items: center; gap: 12px; margin-top: 40px; font-size: 14px; line-height: 20px; letter-spacing: -.13px; color: rgba(0,0,0,.64); }
.byline img { width: 40px; height: 40px; object-fit: cover; }
.byline b { color: #111; font-weight: 500; }
.mock { position: relative; height: auto; aspect-ratio: 520 / 740; }
.mock img { position: absolute; box-shadow: 0 30px 80px rgba(0,0,0,.28); }
.mock .cover { width: 80.77%; left: 9.62%; top: 8.11%; z-index: 2; }
.mock .pg1 { width: 57.69%; left: 0; top: 32.43%; z-index: 1; opacity: .9; }
.mock .pg2 { width: 57.69%; right: -3.85%; top: 2.7%; z-index: 0; opacity: .8; }
/* proof strip */
.proof { padding: 0 72px 160px; position: relative; z-index: 1; }
.proof .row { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(0,0,0,.12); }
.proof .cell { padding: 40px 0 0 0; }
.proof .cell + .cell { padding-left: 32px; border-left: 1px dashed rgba(0,0,0,.12); }
.proof small { display: block; font-size: 14px; line-height: 20px; letter-spacing: -.13px; color: rgba(0,0,0,.64); margin-bottom: 16px; }
.proof b { display: block; font-size: clamp(32px, 4.44vw, 64px); line-height: 1; letter-spacing: -0.0297em; font-weight: 500; }
.proof b i { font-style: normal; color: #EB4513; }
.proof span { display: block; margin-top: 16px; font-size: 14px; line-height: 20px; letter-spacing: -.13px; color: rgba(0,0,0,.64); max-width: 240px; }
/* index rows (001 · label · content), like the portfolio */
.rows { border-top: 1px solid rgba(0,0,0,.12); }
.row3 { display: grid; grid-template-columns: 96px 320px 1fr; gap: 24px; padding: 40px 0; border-bottom: 1px solid rgba(0,0,0,.12); align-items: start; }
.row3 h3 { font-size: 24px; line-height: 30px; letter-spacing: -.48px; font-weight: 500; }
.row3 p { font-size: 16px; line-height: 24px; letter-spacing: -.16px; color: rgba(0,0,0,.64); max-width: 560px; }
/* big list (Key Services style) */
.biglist { display: grid; grid-template-columns: 96px 1fr 420px; gap: 24px; }
.biglist .ttl { font-size: clamp(36px, 5.0vw, 72px); line-height: 1.111; letter-spacing: -0.02em; font-weight: 500; }
.biglist .ttl.dim { color: rgba(0,0,0,.32); }
.chaps { display: grid; grid-template-columns: 1fr; }
.chap { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(0,0,0,.12); font-size: 14px; line-height: 20px; letter-spacing: -.13px; }
.chap b { color: #EB4513; font-weight: 400; }
.part { margin-bottom: 56px; }
.part .lab { font-size: 14px; line-height: 20px; color: rgba(0,0,0,.64); margin-bottom: 8px; }
/* page thumbs */
.pages4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.pages4 figure img { width: 100%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.pages4 figcaption { margin-top: 16px; font-size: 14px; line-height: 20px; letter-spacing: -.13px; color: rgba(0,0,0,.64); }
/* work rows */
.work { display: grid; grid-template-columns: 640px 1fr; gap: 64px; padding: 48px 0; border-top: 1px solid rgba(0,0,0,.12); align-items: center; }
.work img { width: 640px; height: 400px; object-fit: cover; }
.work .tag { font-size: 14px; line-height: 20px; color: rgba(0,0,0,.64); }
.work .big { font-size: clamp(24px, 3.33vw, 48px); line-height: 1.083; letter-spacing: -0.025em; font-weight: 500; margin: 12px 0 16px; }
.work p { font-size: 16px; line-height: 24px; letter-spacing: -.16px; color: rgba(0,0,0,.64); max-width: 480px; }
.numcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px; }
.numcard { background: #F5F5F3; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); padding: 32px; min-height: 260px; display: flex; flex-direction: column; }
.numcard .tag { font-size: 14px; line-height: 20px; color: rgba(0,0,0,.64); }
.numcard b { font-size: clamp(28px, 3.89vw, 56px); line-height: 1.071; letter-spacing: -0.0286em; font-weight: 500; margin: auto 0 4px; }
.numcard strong { font-size: 16px; line-height: 24px; color: #EB4513; font-weight: 400; margin-bottom: 12px; }
.numcard p { font-size: 14px; line-height: 20px; color: rgba(0,0,0,.64); }
/* stack */
.tool { display: grid; grid-template-columns: 96px 280px 1fr 160px; gap: 24px; padding: 32px 0; border-bottom: 1px solid rgba(0,0,0,.12); align-items: start; }
.tool .name { font-size: 24px; line-height: 30px; letter-spacing: -.48px; font-weight: 500; }
.tool .plan { font-size: 14px; line-height: 20px; color: rgba(0,0,0,.64); margin-top: 4px; }
.tool p { font-size: 16px; line-height: 24px; letter-spacing: -.16px; color: rgba(0,0,0,.64); max-width: 520px; }
.tool .price { text-align: right; font-size: 24px; line-height: 30px; letter-spacing: -.48px; font-weight: 500; }
.tool .price small { display: block; font-size: 14px; color: rgba(0,0,0,.64); font-weight: 400; letter-spacing: -.13px; }
.total { display: grid; grid-template-columns: 96px 1fr 160px; gap: 24px; padding: 40px 0; align-items: center; }
.total b { font-size: clamp(24px, 3.33vw, 48px); line-height: 1.083; letter-spacing: -0.025em; font-weight: 500; }
.total b i { font-style: normal; color: #EB4513; }
.total .price { text-align: right; font-size: 24px; line-height: 30px; font-weight: 500; }
/* who */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.listcard { background: #F5F5F3; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); padding: 40px; }
.listcard h3 { font-size: 24px; line-height: 30px; letter-spacing: -.48px; font-weight: 500; margin-bottom: 24px; }
.listcard .li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid rgba(0,0,0,.12); font-size: 16px; line-height: 24px; letter-spacing: -.16px; color: rgba(0,0,0,.86); }
.listcard .li i { font-style: normal; color: #EB4513; }
.listcard.no .li i { color: rgba(0,0,0,.32); }
/* author */
.author { display: grid; grid-template-columns: 496px 1fr; gap: 96px; align-items: start; }
.author img.portrait { width: 496px; height: 530px; object-fit: cover; }
.author .bio p { font-size: 16px; line-height: 24px; letter-spacing: -.16px; color: rgba(0,0,0,.86); margin-bottom: 24px; }
.author h2 { font-size: clamp(33px, 4.58vw, 66px); line-height: 1; letter-spacing: -0.0218em; font-weight: 500; margin-bottom: 8px; }
.author .role { font-size: 14px; line-height: 20px; color: rgba(0,0,0,.64); margin-bottom: 40px; display: block; }
.exp { display: grid; grid-template-columns: 96px 1fr; gap: 24px; margin-top: 40px; }
.exp .lab { font-size: 16px; line-height: 24px; }
.exp .r { padding: 0 0 24px; }
.exp .r small { display: block; font-size: 14px; line-height: 20px; color: rgba(0,0,0,.64); }
.exp .r b { display: block; font-size: 14px; line-height: 20px; font-weight: 400; }
.exp .r span { display: block; font-size: 14px; line-height: 20px; color: rgba(0,0,0,.64); }
.quote { margin-top: 40px; padding-top: 32px; border-top: 1px solid rgba(0,0,0,.12); }
.quote p { font-size: 32px; line-height: 38px; letter-spacing: -.64px; font-weight: 500; color: #111; }
.quote span { display: block; margin-top: 16px; font-size: 14px; line-height: 20px; color: rgba(0,0,0,.64); }
.pfcard { margin-top: 40px; display: block; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); background: #F5F5F3; }
.pfcard img { width: 100%; height: 300px; object-fit: cover; object-position: top; }
.pfcard div { display: flex; justify-content: space-between; padding: 20px 24px; font-size: 14px; line-height: 20px; }
.pfcard div span { color: rgba(0,0,0,.64); }
/* faq */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.faq h2 { font-size: clamp(36px, 5.0vw, 72px); line-height: 1; letter-spacing: -0.02em; font-weight: 500; }
.qa { padding: 28px 0; border-top: 1px solid rgba(0,0,0,.12); display: grid; grid-template-columns: 48px 1fr; gap: 16px; }
.qa b { color: #EB4513; font-weight: 400; font-size: 14px; line-height: 24px; }
.qa h3 { font-size: 20px; line-height: 26px; letter-spacing: -.4px; font-weight: 500; margin-bottom: 10px; }
.qa p { font-size: 16px; line-height: 24px; letter-spacing: -.16px; color: rgba(0,0,0,.64); }
/* final */
.final { position: relative; padding: 160px 72px 0; min-height: 980px; overflow: hidden; z-index: 1; }
.final .smoke { filter: invert(1) contrast(1.1);  position: absolute; left: 0; right: 0; bottom: 0; height: 760px; background: url(/assets/img/dwai/client-bg.jpg) center 60% / cover no-repeat; opacity: .55; mask-image: linear-gradient(180deg, transparent, #000 40%); -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%); }
.final .inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 480px; gap: 64px; align-items: end; }
.final h2 { font-size: clamp(80px, 11.11vw, 160px); line-height: 0.875; letter-spacing: -0.04em; font-weight: 500; }
.final h2 i { font-style: normal; color: #EB4513; }
.final .sub { font-size: 20px; line-height: 28px; letter-spacing: -.3px; color: rgba(0,0,0,.86); max-width: 520px; margin-top: 32px; }
.form { background: rgba(255,255,255,.75); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); padding: 40px; }
.form .label { margin-bottom: 4px; }
.form .input { margin-bottom: 28px; }
.form .fine { margin-top: 16px; font-size: 13px; line-height: 20px; color: rgba(0,0,0,.64); }
.links { position: relative; z-index: 2; margin-top: 140px; padding: 0 0 32px; display: flex; justify-content: space-between; font-size: 14px; line-height: 20px; }
.foot { position: relative; z-index: 2; display: flex; justify-content: space-between; padding: 0 0 40px; font-size: 14px; line-height: 20px; color: rgba(0,0,0,.86); }
.check { display: flex; gap: 10px; align-items: center; font-size: 14px; line-height: 20px; color: rgba(0,0,0,.86); margin-bottom: 28px; }
.check i { width: 16px; height: 16px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.4); display: inline-block; }
/* modal */
.overlay { position: absolute; inset: 0; background: rgba(0,0,0,.45); z-index: 50; }
.dialog { position: absolute; left: 50%; top: 120px; transform: translateX(-50%); width: 560px; background: #F5F5F3; box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); padding: 48px; }
.dialog .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.dialog h2 { font-size: 48px; line-height: 50px; letter-spacing: -1.2px; font-weight: 500; margin-bottom: 16px; }
.dialog .intro { font-size: 16px; line-height: 24px; letter-spacing: -.16px; color: rgba(0,0,0,.64); margin-bottom: 32px; }
.dialog .close { font-size: 14px; color: rgba(0,0,0,.64); }
/* thank you */
.ty { padding: 120px 72px 120px; position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 480px; gap: 64px; align-items: end; }
.ty h1 { font-size: clamp(60px, 8.33vw, 120px); line-height: 0.917; letter-spacing: -0.04em; font-weight: 500; }
.ty p { font-size: 20px; line-height: 28px; color: rgba(0,0,0,.86); max-width: 560px; margin-top: 32px; }
.dl { background: #F5F5F3; box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); padding: 40px; }
.dl h3 { font-size: 24px; line-height: 30px; letter-spacing: -.48px; font-weight: 500; margin-bottom: 24px; }
.dl .btn { width: 100%; justify-content: space-between; margin-bottom: 12px; }
.dl .fine { margin-top: 16px; font-size: 14px; line-height: 20px; color: rgba(0,0,0,.64); }
.dl .fine a { color: #111; }
.share { display: flex; gap: 12px; }
/* mobile */
@media (max-width: 800px) {
  body { width: 390px; }
  .lines { padding: 0 20px; } .lines i:nth-child(n+5) { display: none; }
  .hdr { padding: 24px 20px 0; height: auto; flex-wrap: wrap; gap: 16px; } .hdr .right { gap: 24px; } .hdr nav { display: none; }
  .hero { grid-template-columns: 1fr; padding: 48px 20px 80px; gap: 40px; }
  .hero h1 { font-size: 72px; line-height: 68px; letter-spacing: -2.6px; }
  .hero .sub { font-size: 18px; line-height: 26px; margin: 24px 0 28px; }
  .ctas { flex-wrap: wrap; }
  .mock { height: 520px; } .mock .cover { width: 260px; left: 40px; top: 40px; } .mock .pg1 { width: 180px; left: 0; top: 200px; } .mock .pg2 { width: 180px; right: 0; top: 0; }
  .proof { padding: 0 20px 96px; } .proof .row { grid-template-columns: 1fr 1fr; } .proof .cell + .cell { padding-left: 0; border: 0; } .proof .cell { padding: 24px 0 0; } .proof b { font-size: 44px; line-height: 44px; }
  .sec { padding: 96px 20px; } .sec.first { padding-top: 80px; }
  .sec-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 40px; } .sec-head h2 { font-size: 44px; line-height: 44px; letter-spacing: -1px; }
  .row3 { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; } .row3 h3 { font-size: 20px; line-height: 26px; }
  .biglist { grid-template-columns: 1fr; gap: 16px; } .biglist .ttl { font-size: 40px; line-height: 44px; }
  .pages4 { grid-template-columns: 1fr 1fr; gap: 16px; }
  .work { grid-template-columns: 1fr; gap: 20px; padding: 28px 0; } .work img { width: 100%; height: 220px; } .work .big { font-size: 32px; line-height: 36px; }
  .numcards { grid-template-columns: 1fr; gap: 12px; } .numcard { min-height: 0; } .numcard b { font-size: 40px; line-height: 44px; margin-top: 24px; }
  .tool { grid-template-columns: 1fr 100px; gap: 8px 16px; padding: 24px 0; } .tool .num { display: none; } .tool p { grid-column: 1 / -1; }
  .total { grid-template-columns: 1fr 120px; } .total .num { display: none; } .total b { font-size: 32px; line-height: 36px; }
  .two { grid-template-columns: 1fr; } .listcard { padding: 24px; }
  .author { grid-template-columns: 1fr; gap: 32px; } .author img.portrait { width: 100%; height: 380px; } .author h2 { font-size: 44px; line-height: 44px; }
  .exp { grid-template-columns: 1fr; gap: 12px; }
  .quote p { font-size: 24px; line-height: 30px; }
  .faq { grid-template-columns: 1fr; gap: 24px; } .faq h2 { font-size: 44px; line-height: 44px; }
  .final { padding: 96px 20px 0; min-height: 0; } .final .inner { grid-template-columns: 1fr; gap: 32px; } .final h2 { font-size: 72px; line-height: 68px; letter-spacing: -2.6px; } .final .smoke { filter: invert(1) contrast(1.1);  height: 520px; }
  .form { padding: 24px; }
  .links { margin-top: 80px; flex-wrap: wrap; gap: 12px 24px; } .foot { flex-wrap: wrap; gap: 8px; }
  .dialog { width: 350px; top: 40px; padding: 28px; } .dialog h2 { font-size: 36px; line-height: 38px; }
  .ty { grid-template-columns: 1fr; padding: 72px 20px; gap: 32px; } .ty h1 { font-size: 64px; line-height: 60px; letter-spacing: -2.2px; } .ty p { font-size: 17px; line-height: 25px; }
}
/* ---- port.py additions: shell ---- */
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 24px; }
.hdr .left { flex-wrap: wrap; row-gap: 8px; }
.share, .ctas { flex-wrap: wrap; }
.pfcard img.tall { height: 560px; }

/* real buttons that keep the design's anchor styling */
button.btn, button.close, button.linkbtn { font-family: inherit; border: 0; cursor: pointer; -webkit-appearance: none; appearance: none; }
.btn[disabled] { opacity: .55; cursor: default; }
button.close { background: none; padding: 0; font-size: 14px; line-height: 20px; color: rgba(0,0,0,.64); }
button.close:hover { color: #111; }
.linkbtn { background: none; padding: 0; font: inherit; color: #111; text-decoration: underline; }

/* form fields (the inline form at the foot and the #lead dialog) */
.fld { display: block; margin-bottom: 24px; }
.form .fld { margin-bottom: 28px; }
.fld .label { display: block; margin-bottom: 4px; }
.fld .input { margin-bottom: 0; }
.input:focus { border-bottom-color: #111; }
.err-msg { display: none; margin: 8px 0 0; font-size: 13px; line-height: 20px; letter-spacing: -.13px; color: #D0402F; }
.fld.is-error .input { border-bottom-color: #D0402F; }
.fld.is-error .err-msg { display: block; }
.check { cursor: pointer; }
.check input[type=checkbox] { -webkit-appearance: none; appearance: none; width: 16px; height: 16px; margin: 0; flex: none; background: #fff; box-shadow: inset 0 0 0 1px rgba(0,0,0,.4); cursor: pointer; }
.check input[type=checkbox]:checked { background: #EB4513 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.2 5 9l5-6' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat; box-shadow: inset 0 0 0 1px #EB4513; }
.check input[type=checkbox]:focus-visible { outline: 2px solid #EB4513; outline-offset: 2px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* #lead overlay: hidden until .open, centred, scrolls on short screens */
.overlay { position: fixed; inset: 0; display: none; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 24px 16px; background: rgba(0,0,0,.45); z-index: 50; }
.overlay.open { display: flex; animation: dwai-fade .18s ease; }
.dialog { position: relative; left: auto; top: auto; transform: none; margin: auto; width: 560px; max-width: 100%; animation: dwai-rise .22s ease; }
@keyframes dwai-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes dwai-rise { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }

/* toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; background: #111; color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 14px; line-height: 20px; letter-spacing: -.13px; font-weight: 500; transition: .25s ease; z-index: 80; pointer-events: none; max-width: calc(100vw - 40px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .overlay.open, .dialog { animation: none; } }

/* ---- tablet steps (the design has 1440 desktop + a 800px mobile block; these bridge 801–1240) ---- */
@media (min-width: 801px) and (max-width: 1240px) {
  .work { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; } .work img { width: 100%; height: 360px; }
  .author { grid-template-columns: 400px 1fr; gap: 56px; } .author img.portrait { width: 100%; height: auto; aspect-ratio: 496 / 530; }
  .ty { grid-template-columns: 1fr 400px; }
  .final .inner { grid-template-columns: 1fr 420px; gap: 48px; }
}
@media (min-width: 801px) and (max-width: 1100px) {
  .lines { padding: 0 48px; }
  .hdr { padding: 32px 48px 0; height: auto; flex-wrap: wrap; gap: 16px 40px; } .hdr .right { gap: 48px; }
  .hero { padding: 56px 48px 100px; gap: 40px; }
  .proof { padding: 0 48px 120px; } .proof .cell + .cell { padding-left: 24px; }
  .sec { padding: 120px 48px; } .sec.first { padding-top: 96px; }
  .sec-head { gap: 32px; margin-bottom: 64px; }
  .row3 { grid-template-columns: 64px 240px 1fr; }
  .biglist { grid-template-columns: 64px 1fr 320px; }
  .pages4 { gap: 16px; }
  .work { gap: 32px; } .work img { height: 300px; }
  .numcards { gap: 16px; } .numcard { padding: 24px; min-height: 220px; }
  .tool { grid-template-columns: 64px 200px 1fr 120px; gap: 20px; } .total { grid-template-columns: 64px 1fr 120px; }
  .author { grid-template-columns: 360px 1fr; gap: 40px; }
  .final { padding: 120px 48px 0; min-height: 0; } .final .inner { grid-template-columns: 1fr; gap: 48px; } .form { max-width: 560px; }
  .links { margin-top: 96px; flex-wrap: wrap; gap: 12px 32px; }
  .ty { padding: 96px 48px; grid-template-columns: 1fr; gap: 40px; } .dl { max-width: 560px; }
}
@media (max-width: 800px) {
  .hdr .left { gap: 8px 12px; }
  .dialog { width: 100%; max-width: 560px; top: auto; }
  .pfcard img.tall { height: 300px; }
  .dl .btn span:last-child { white-space: nowrap; }
}
