/* RuleFirm landing page. Display: Reem Kufi. Text: IBM Plex Sans Arabic. Colours follow the office app. */
:root {
  --ink: #0F1B2D; --ink-2: #3B4A61; --muted: #6B7A90; --line: #E2E8F0; --bg: #F3F6FA; --card: #FFFFFF;
  --navy: #061530; --navy-2: #0A3A7A; --navy-3: #0E5CC0; --blue: #0B5CD5; --sky: #3BA0FF; --ice: #E8F1FD;
  --gold: #F5B041; --green: #16835A; --green-soft: #E5F5EE; --red: #C8322B; --amber: #B96A00;
  --w: 1240px; --ease: cubic-bezier(.2, .7, .2, 1); --spring: cubic-bezier(.22, 1.2, .36, 1);
  --display: 'Reem Kufi', 'IBM Plex Sans Arabic', Tahoma, sans-serif;
  --text: 'IBM Plex Sans Arabic', 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--text); font-size: 16px; line-height: 1.75; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 14.5px; white-space: nowrap; cursor: pointer; transition: transform .2s var(--ease), background .2s, box-shadow .2s, color .2s, border-color .2s; }
.btn:active { transform: scale(.97); }
.btn.lg { height: 54px; padding: 0 28px; font-size: 16px; }
.btn.solid { background: var(--blue); color: #fff; box-shadow: 0 10px 24px -12px var(--blue); }
.btn.solid:hover { background: #0A4FB8; transform: translateY(-1px); }
.btn.ghost { color: inherit; }
.btn.ghost:hover { background: rgba(127, 160, 210, .16); }
.btn.white { background: #fff; color: var(--navy); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .6); }
.btn.white:hover { transform: translateY(-2px); box-shadow: 0 24px 46px -18px rgba(0, 0, 0, .7); }
.btn.white .ic { transition: transform .25s var(--ease); }
.btn.white:hover .ic { transform: translateX(-4px); }
.btn.glass { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn.glass:hover { background: rgba(255, 255, 255, .16); }

/* Header: clear over the hero, solid after scroll */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: 72px; display: flex; align-items: center; gap: 28px; padding: 0 max(24px, calc((100% - var(--w)) / 2));
  color: #fff; transition: background .3s, color .3s, box-shadow .3s, height .3s; }
.nav.stuck { height: 64px; color: var(--ink); background: rgba(255, 255, 255, .86); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 1px 0 var(--line), 0 14px 30px -24px rgba(15, 27, 45, .5); }
.nav-brand { display: flex; align-items: center; gap: 10px; font-size: 19px; }
.nav-brand img { border-radius: 50%; background: #fff; }
.nav-links { display: flex; gap: 4px; margin-inline-start: 12px; }
.nav-links a { padding: 6px 14px; border-radius: 999px; font-size: 14.5px; opacity: .85; transition: background .15s, opacity .15s; }
.nav-links a:hover { opacity: 1; background: rgba(127, 160, 210, .16); }
.nav-end { margin-inline-start: auto; display: flex; gap: 8px; align-items: center; }
.nav:not(.stuck) .btn.solid { background: #fff; color: var(--navy); box-shadow: none; }

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(125deg, var(--navy) 0%, #08285A 45%, var(--navy-3) 100%); padding: 150px max(24px, calc((100% - var(--w)) / 2)) 120px; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg .grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 80% 70% at 30% 40%, #000, transparent 75%); mask-image: radial-gradient(ellipse 80% 70% at 30% 40%, #000, transparent 75%); }
.glow { position: absolute; border-radius: 50%; filter: blur(10px); }
.glow.g1 { width: 720px; height: 720px; left: -220px; top: -260px; background: radial-gradient(circle, rgba(59, 160, 255, .5), transparent 65%); animation: drift 14s ease-in-out infinite alternate; }
.glow.g2 { width: 520px; height: 520px; right: -160px; bottom: -280px; background: radial-gradient(circle, rgba(245, 176, 65, .2), transparent 65%); animation: drift 18s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.08); } }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px; border-radius: 999px; font-size: 13.5px; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .18); color: #DCE6F5; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: #4ADE9B; box-shadow: 0 0 0 4px rgba(74, 222, 155, .25); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(74, 222, 155, 0); } }
.hero h1 { margin: 22px 0 20px; font-family: var(--display); font-weight: 700; font-size: clamp(40px, 5.4vw, 76px); line-height: 1.22; letter-spacing: -.5px; text-wrap: balance; }
.lead { max-width: 34em; font-size: clamp(16px, 1.35vw, 19px); line-height: 1.9; color: #C9D8EE; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 30px 0 0; padding: 0; font-size: 14px; color: #A9BDDB; }
.hero-facts li { display: flex; align-items: center; gap: 7px; }
.hero-facts .ic { width: 16px; height: 16px; color: #7FC0FF; }
/* one entrance sequence */
.hero-text > * { animation: rise .8s var(--ease) both; }
.hero-text > :nth-child(2) { animation-delay: .08s; } .hero-text > :nth-child(3) { animation-delay: .16s; }
.hero-text > :nth-child(4) { animation-delay: .24s; } .hero-text > :nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }

/* Product preview */
.stage { position: relative; perspective: 1600px; animation: stage-in 1.1s .25s var(--ease) both; }
@keyframes stage-in { from { opacity: 0; transform: translateY(40px) scale(.96); } }
.screen { position: relative; border-radius: 22px; overflow: hidden; background: #F3F6FA; color: var(--ink); font-size: 12px; line-height: 1.5;
  transform: rotateY(var(--ry, 9deg)) rotateX(var(--rx, 5deg)); transform-style: preserve-3d; transition: transform .5s var(--ease);
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .16), 0 0 80px -10px rgba(59, 160, 255, .35); }
.sc-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: #fff; border-bottom: 1px solid var(--line); direction: ltr; }
.sc-bar span { width: 9px; height: 9px; border-radius: 50%; background: #D5DEEA; }
.sc-bar em { margin: 0 auto; font-style: normal; font-size: 11px; color: var(--muted); padding: 2px 14px; border-radius: 999px; background: var(--bg); }
.sc-band { padding: 18px 20px 46px; color: #fff; background: linear-gradient(115deg, #071A3A, #0A3A7A 55%, #0E5CC0); }
.sc-band small { color: #A9BDDB; font-size: 10.5px; } .sc-band b { display: block; font-size: 19px; margin: 2px 0 10px; }
.sc-pills { display: flex; gap: 6px; }
.sc-pills i { font-style: normal; font-size: 10.5px; padding: 3px 11px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); }
.sc-pills i:first-child { background: #fff; color: var(--navy); font-weight: 600; }
.sc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: -30px 16px 0; position: relative; }
.sc-stats > div { padding: 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: 0 14px 26px -20px rgba(15, 27, 45, .5); }
.sc-stats small { color: var(--muted); font-size: 10.5px; } .sc-stats b { display: block; font-size: 22px; line-height: 1.2; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 18px; margin-top: 6px; } .bars i { flex: 1; border-radius: 2px; background: var(--ice); } .bars i.on { background: var(--blue); }
.meter { display: block; height: 6px; margin-top: 18px; border-radius: 6px; background: #EEF2F7; } .meter i { display: block; width: 22%; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #F5B041, var(--red)); }
.sc-body { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; padding: 12px 16px 18px; }
.sc-tl, .sc-side { margin: 0; padding: 12px; list-style: none; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.sc-tl li { display: grid; grid-template-columns: 34px 12px 1fr; gap: 6px; align-items: center; padding: 5px 0; }
.sc-tl time { font-weight: 700; font-size: 11px; direction: ltr; } .sc-tl i { width: 10px; height: 10px; border-radius: 50%; border: 2.5px solid var(--blue); background: #fff; }
.sc-tl li.done i { border-color: #C9D3E1; background: #C9D3E1; } .sc-tl li.done { color: var(--muted); }
.sc-tl li.now i { box-shadow: 0 0 0 4px rgba(11, 92, 213, .2); animation: pulse-b 2.4s ease-in-out infinite; }
@keyframes pulse-b { 50% { box-shadow: 0 0 0 8px rgba(11, 92, 213, 0); } }
.sc-tl div { padding: 6px 10px; border-radius: 10px; background: #F7F9FC; } .sc-tl li.now div { background: linear-gradient(270deg, var(--ice), #fff); }
.sc-tl b, .sc-ring b { display: block; font-size: 11.5px; } .sc-tl small, .sc-ring small { color: var(--muted); font-size: 10px; }
.sc-side { display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.sc-ring { display: flex; align-items: center; gap: 10px; }
.sc-ring span { flex: none; position: relative; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--red) calc(var(--p) * 1%), #EEF2F7 0); }
.sc-ring span.amb { background: conic-gradient(#D98A0A calc(var(--p) * 1%), #EEF2F7 0); }
.sc-ring span::before { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: #fff; } .sc-ring span b { position: relative; }
.float { position: absolute; z-index: 2; border-radius: 18px; color: #fff; background: rgba(13, 34, 72, .72); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .7); transform: translate3d(var(--fx, 0), var(--fy, 0), 0); transition: transform .5s var(--ease); }
.float small { color: #A9BDDB; font-size: 12px; } .float b { display: block; }
.f-next { top: -38px; left: -30px; padding: 14px 16px; width: 190px; animation: bob 6s ease-in-out infinite; }
.f-next .cd { display: flex; gap: 6px; margin-top: 8px; } .f-next .cd span { flex: 1; text-align: center; padding: 5px 0; border-radius: 10px; background: rgba(255, 255, 255, .1); } .f-next .cd b { font-size: 20px; line-height: 1.2; }
.f-ai { bottom: -52px; right: -18px; display: flex; gap: 12px; align-items: center; padding: 14px 18px; animation: bob 7s -2s ease-in-out infinite; }
.f-ai .ic { width: 38px; height: 38px; padding: 9px; border-radius: 12px; background: linear-gradient(140deg, var(--blue), var(--sky)); }
.f-ok { top: -18px; right: 12%; display: flex; gap: 8px; align-items: center; padding: 9px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600; background: rgba(22, 131, 90, .9); animation: bob 5s -1s ease-in-out infinite; }
@keyframes bob { 50% { margin-top: -10px; } }

/* Sections */
.sec { padding: 110px max(24px, calc((100% - var(--w)) / 2)); }
.sec-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.sec-head h2 { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 3.6vw, 50px); line-height: 1.35; letter-spacing: -.3px; text-wrap: balance; }
.sec-head p { margin-top: 16px; font-size: 18px; color: var(--ink-2); text-wrap: pretty; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Calculator */
.calc { background: #fff; }
.calc-box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); border-radius: 32px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 50px 100px -60px rgba(15, 27, 45, .55); }
.calc-form { display: flex; flex-direction: column; gap: 20px; padding: 40px; background: var(--bg); }
.calc-form label { display: flex; flex-direction: column; gap: 8px; font-weight: 600; font-size: 14.5px; }
.calc-form select, .calc-form input { height: 54px; padding: 0 16px; border-radius: 16px; border: 1.5px solid var(--line); background: #fff; font: inherit; font-size: 16px; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.calc-form select:focus, .calc-form input:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(11, 92, 213, .15); }
.calc-form input { text-align: right; }
.calc-ref { font-size: 13.5px; color: var(--muted); line-height: 1.8; }
.calc-out { position: relative; padding: 40px; color: #fff; background: linear-gradient(135deg, var(--navy), var(--navy-2) 60%, var(--navy-3)); display: flex; flex-direction: column; }
.calc-out > small { color: #A9BDDB; font-size: 14px; }
.calc-out > b { font-family: var(--display); font-size: clamp(28px, 3.2vw, 44px); line-height: 1.4; margin: 4px 0 10px; }
.calc-out > b.tick { animation: tick .45s var(--spring); }
@keyframes tick { from { opacity: .2; transform: translateY(10px); } }
.calc-left { align-self: flex-start; padding: 4px 16px; border-radius: 999px; font-weight: 600; font-size: 14.5px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); }
.calc-left.late { background: rgba(200, 50, 43, .85); border-color: transparent; } .calc-left.near { background: rgba(245, 176, 65, .95); color: var(--navy); border-color: transparent; }
.calc-track { height: 8px; margin: 26px 0 18px; border-radius: 8px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.calc-track i { display: block; height: 100%; width: 0; border-radius: 8px; background: linear-gradient(270deg, var(--sky), var(--gold)); transition: width .8s var(--ease); }
.calc-notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: #D3E0F3; }
.calc-notes li { display: flex; gap: 10px; align-items: baseline; } .calc-notes li::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); transform: translateY(-1px); }
.calc-notes li.ok::before { background: #4ADE9B; }
.calc-foot { max-width: 720px; margin: 28px auto 0; text-align: center; color: var(--muted); font-size: 14.5px; }

/* Features */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tile { position: relative; overflow: hidden; padding: 30px; border-radius: 28px; background: var(--card); border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s, border-color .35s, opacity .8s var(--ease); }
.tile:hover { transform: translateY(-5px); border-color: #BFD7FA; box-shadow: 0 40px 70px -46px rgba(11, 92, 213, .55); }
.tile-ic { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; background: var(--ice); color: var(--blue); margin-bottom: 18px; } .tile-ic .ic { width: 23px; height: 23px; }
.tile h3 { font-size: 21px; line-height: 1.5; margin-bottom: 8px; } .tile p { color: var(--ink-2); font-size: 15.5px; }
.t-wide { grid-column: span 2; display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: center; }
.t-dark { color: #fff; border-color: transparent; background: linear-gradient(140deg, var(--navy), var(--navy-2) 70%, var(--navy-3)); }
.t-dark p { color: #C9D8EE; } .t-dark .tile-ic { background: rgba(255, 255, 255, .12); color: #fff; }
.ai-demo { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 20px; background: var(--bg); min-height: 190px; }
.ai-q { align-self: flex-start; padding: 8px 16px; border-radius: 16px 16px 16px 4px; background: var(--blue); color: #fff; font-size: 14px; }
.ai-a { padding: 12px 16px; border-radius: 16px 16px 4px 16px; background: #fff; border: 1px solid var(--line); font-size: 14px; line-height: 1.9; white-space: pre-line; }
.caret { display: inline-block; width: 2px; height: 1.1em; margin-inline-start: 2px; vertical-align: -3px; background: var(--blue); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.conf { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; font-size: 13.5px; }
.conf span { display: flex; gap: 8px; align-items: center; padding: 9px 14px; border-radius: 12px; background: var(--bg); color: var(--ink-2); }
.conf em { display: inline-flex; gap: 6px; align-items: center; align-self: flex-start; font-style: normal; font-weight: 600; padding: 4px 14px; border-radius: 999px; background: var(--green-soft); color: var(--green); }
.fee { display: flex; align-items: flex-end; gap: 8px; height: 76px; margin-top: 18px; } .fee i { flex: 1; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--sky), var(--blue)); transform-origin: bottom; transform: scaleY(0); transition: transform .9s var(--spring); }
.tile.in .fee i { transform: none; } .fee i:nth-child(2) { transition-delay: .06s; } .fee i:nth-child(3) { transition-delay: .12s; } .fee i:nth-child(4) { transition-delay: .18s; } .fee i:nth-child(5) { transition-delay: .24s; } .fee i:nth-child(6) { transition-delay: .3s; }

/* Steps */
.steps-sec { background: #fff; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; position: relative; }
.steps::before { content: ''; position: absolute; top: 29px; inset-inline: 16%; height: 2px; background: repeating-linear-gradient(90deg, #BFD7FA 0 10px, transparent 10px 20px); }
.steps li { position: relative; text-align: center; padding: 0 18px; }
.steps li > b { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 18px; border-radius: 50%; font-family: var(--display); font-size: 24px; color: #fff; background: linear-gradient(140deg, var(--blue), var(--sky)); box-shadow: 0 0 0 8px #fff, 0 16px 30px -12px var(--blue); }
.steps h3 { font-size: 20px; margin-bottom: 6px; } .steps p { color: var(--ink-2); font-size: 15.5px; }

/* Plans */
.period { display: inline-flex; gap: 2px; margin-top: 24px; padding: 4px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.period button { height: 38px; padding: 0 22px; border: 0; border-radius: 999px; background: none; font: inherit; font-weight: 600; font-size: 14.5px; color: var(--muted); cursor: pointer; transition: background .25s, color .25s; }
.period button.on { background: var(--navy); color: #fff; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 30px; border-radius: 28px; background: #fff; border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s, opacity .8s var(--ease); }
.plan:hover { transform: translateY(-5px); box-shadow: 0 40px 70px -46px rgba(15, 27, 45, .6); }
.plan h3 { font-size: 19px; } .plan .price { font-family: var(--display); font-size: 40px; line-height: 1.3; margin: 10px 0 0; } .plan .per { color: var(--muted); font-size: 14px; }
.plan ul { list-style: none; margin: 22px 0 26px; padding: 22px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; font-size: 15px; flex: 1; }
.plan li { display: flex; gap: 10px; align-items: center; } .plan li .ic { color: var(--green); }
.plan .btn { border-color: var(--line); background: #fff; color: var(--ink); } .plan .btn:hover { border-color: var(--blue); color: var(--blue); }
.plan.best { color: #fff; border-color: transparent; background: linear-gradient(150deg, var(--navy), var(--navy-2) 65%, var(--navy-3)); box-shadow: 0 50px 90px -50px rgba(11, 92, 213, .9); }
.plan.best .per { color: #A9BDDB; } .plan.best ul { border-color: rgba(255, 255, 255, .16); } .plan.best li .ic { color: #4ADE9B; }
.plan.best .btn { background: #fff; color: var(--navy); border-color: transparent; }
.plan .tag { align-self: flex-start; margin-bottom: 10px; padding: 2px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--gold); color: var(--navy); }

/* FAQ */
.faq-sec { background: #fff; }
.faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq details { border-radius: 20px; border: 1px solid var(--line); background: var(--bg); transition: background .25s, border-color .25s; }
.faq details[open] { background: #fff; border-color: #BFD7FA; box-shadow: 0 30px 60px -46px rgba(11, 92, 213, .6); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; font-weight: 600; font-size: 17px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 10px; height: 10px; border: solid var(--blue); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq p { padding: 0 24px 22px; color: var(--ink-2); }

/* Final call and footer */
.final { position: relative; overflow: hidden; margin: 0 max(24px, calc((100% - var(--w)) / 2)) 80px; padding: 90px 32px; border-radius: 40px; text-align: center; color: #fff; background: linear-gradient(125deg, var(--navy), #08285A 50%, var(--navy-3)); }
.faq-sec + .final { margin-top: 0; }
.final-in { position: relative; }
.final h2 { font-family: var(--display); font-size: clamp(28px, 3.6vw, 48px); line-height: 1.4; text-wrap: balance; }
.final p { margin: 12px 0 30px; color: #C9D8EE; font-size: 18px; }
main > .faq-sec { padding-bottom: 110px; }
.final { transform: translateY(0); margin-top: -1px; }
body { background: #fff; } .sec:not(.calc):not(.steps-sec):not(.faq-sec) { background: var(--bg); }
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 28px max(24px, calc((100% - var(--w)) / 2)) 40px; color: var(--muted); }
.foot .nav-brand { color: var(--ink); font-size: 17px; } .foot nav { margin-inline-start: auto; display: flex; gap: 20px; font-size: 14.5px; } .foot nav a:hover { color: var(--blue); }

/* Responsive */
@media (max-width: 1040px) {
  .hero-in { grid-template-columns: 1fr; gap: 70px; } .hero { padding-bottom: 100px; }
  .stage { max-width: 640px; margin: 0 auto; width: 100%; } .f-next { left: -8px; } .f-ai { right: -6px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .t-wide { grid-template-columns: 1fr; }
  .calc-box { grid-template-columns: minmax(0, 1fr); } .calc-form select, .calc-form input { width: 100%; min-width: 0; }
}
@media (max-width: 720px) {
  .nav { gap: 10px; padding: 0 16px; } .nav-links, .nav .btn.ghost { display: none; }
  .hero { padding: 110px 18px 80px; } .sec { padding: 72px 18px; } .sec-head { margin-bottom: 36px; } .sec-head p { font-size: 16.5px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .screen { font-size: 10.5px; --ry: 0deg; --rx: 0deg; } .sc-body { grid-template-columns: 1fr; } .sc-side { flex-direction: row; }
  .f-next { display: none; } .f-ai { right: 8px; bottom: -34px; padding: 10px 14px; } .f-ok { right: 8px; }
  .bento, .steps { grid-template-columns: 1fr; } .t-wide { grid-column: auto; } .steps::before { display: none; } .steps { gap: 36px; }
  .calc-form, .calc-out { padding: 26px 20px; } .calc-box { border-radius: 24px; }
  .final { margin-inline: 12px; padding: 64px 20px; border-radius: 28px; }
  .foot { padding-inline: 18px; } .foot nav { margin-inline-start: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; } .fee i { transform: none; } html { scroll-behavior: auto; }
}
