/* ===== Atemp home ===== */
:root { --ph-base: #3A78C6; --ph-build: #E8823F; --ph-peak: #D65258; --ph-taper: #2FA6B5; }   /* same as the phase colours in the plan (plan.css) */
.at-main { position: relative; z-index: 1; width: min(1080px, calc(100% - 48px)); margin: 0 auto; }
.at-btn-lg { min-height: 54px; padding: 14px 26px; border-radius: 14px; font-size: 16px; }

/* hero */
.at-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 56px; padding: 72px 0 64px; }
.at-eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 22px; padding: 6px 14px 6px 10px; border: 1px solid rgb(64 147 247 / 30%); border-radius: 999px; background: rgb(64 147 247 / 8%); color: var(--brand-ink); font-size: 13px; font-weight: 600; }
.at-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgb(64 147 247 / 22%); animation: at-pulse 2.4s ease-in-out infinite; }
@keyframes at-pulse { 50% { box-shadow: 0 0 0 7px rgb(64 147 247 / 0%); } }
.at-hero h1 { margin: 0; color: var(--bright); font-size: clamp(38px, 5.6vw, 62px); font-weight: 800; letter-spacing: -.045em; line-height: 1.02; }
.at-hero h1 em { color: var(--brand); font-style: normal; }
.at-lead { max-width: 520px; margin: 22px 0 0; font-size: 17px; line-height: 1.7; }
.at-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.at-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 22px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 13.5px; }
.at-meta li { display: inline-flex; align-items: center; gap: 7px; }
.at-meta svg { width: 15px; height: 15px; color: var(--brand); }

/* hero art: the live sample plan */
.at-hero-art { position: relative; margin: 0; padding: 26px 22px 56px; }
.at-preview { position: relative; padding: 22px; border: 1px solid #2A2E36; border-radius: 22px; background: linear-gradient(180deg, rgb(26 29 35 / 92%), rgb(18 20 25 / 92%)); box-shadow: 0 40px 80px -30px rgb(0 0 0 / 80%), 0 0 0 1px rgb(255 255 255 / 3%) inset, 0 -30px 80px -40px rgb(64 147 247 / 45%); transform: rotate(-1.2deg); }
.pv-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pv-verdict { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: 999px; background: rgb(48 164 108 / 16%); color: #7FD8A8; font-size: 12px; font-weight: 600; }
.pv-verdict svg { width: 14px; height: 14px; }
.pv-sub { color: var(--muted); font-size: 12px; }
.pv-title { margin: 18px 0 10px; color: var(--bright); font-size: 13px; font-weight: 600; }
.pv-chart { display: flex; align-items: flex-end; gap: 3px; height: 112px; padding-bottom: 1px; border-bottom: 1px solid #2A2E36; }
.pv-chart i { flex: 1; min-width: 0; height: var(--h); border-radius: 3px 3px 0 0; transform-origin: bottom; }
.js .pv-chart i { animation: pv-grow .7s cubic-bezier(.2,.8,.2,1) both; }
.pv-chart i:nth-child(n) { animation-delay: calc(var(--d, 0) * 1ms); }
@keyframes pv-grow { from { transform: scaleY(0); } }
.pv-chart .ph-base { background: var(--ph-base); } .pv-chart .ph-build { background: var(--ph-build); }
.pv-chart .ph-peak { background: var(--ph-peak); } .pv-chart .ph-taper { background: var(--ph-taper); }
.pv-chart i { cursor: pointer; transition: opacity .2s ease, box-shadow .2s ease; }
.pv-chart i:not(.is-active) { opacity: .55; }
.pv-chart .is-cut:not(.is-active) { opacity: .32; }
.pv-chart .is-active { opacity: 1; box-shadow: 0 0 0 2px var(--bright); }
.pv-axis { display: flex; justify-content: space-between; margin-top: 6px; color: var(--muted); font-size: 11px; }
.pv-week { margin-top: 4px; }
.pv-week ol { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; margin: 0; padding: 0; list-style: none; }
.pv-week li { display: grid; justify-items: center; gap: 1px; padding: 8px 2px 7px; border: 1px solid #262A31; border-top: 3px solid #3A3E46; border-radius: 9px; background: rgb(10 11 14 / 55%); }
.pv-week b { color: var(--bright); font-size: 12px; }
.pv-week span { color: var(--text); font-size: 11px; }
.pv-week small { color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.pv-week .t-run { border-top-color: var(--ph-base); }
.pv-week .t-quality { border-top-color: var(--hard); }
.pv-week .t-long { border-top-color: #8C76FF; }
.pv-week .t-strength { border-top-color: #fff; }
.pv-week .t-rest { background: transparent; }

.at-float { position: absolute; z-index: 2; display: grid; gap: 1px; padding: 10px 14px; border: 1px solid #30343C; border-radius: 14px; background: rgb(20 22 27 / 88%); box-shadow: 0 18px 40px -16px rgb(0 0 0 / 80%); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.at-float small { color: var(--muted); font-size: 11px; }
.at-float b { color: var(--bright); font-size: 15px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.at-float-a { top: -8px; right: -12px; transform: rotate(2deg); animation: at-bob 6s ease-in-out infinite; }
.at-float-b { bottom: 0; left: 8px; transform: rotate(-2deg); animation: at-bob 7s ease-in-out -2s infinite; }
@keyframes at-bob { 50% { translate: 0 -6px; } }

/* built-on strip */
.at-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 28px; padding: 22px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.at-strip p { margin: 0; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.at-strip ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin: 0; padding: 0; list-style: none; color: var(--text); font-size: 14px; }
.at-strip li { display: inline-flex; align-items: center; gap: 10px; }
.at-strip li::before { width: 5px; height: 5px; border-radius: 50%; background: var(--brand); content: ""; }

/* sections */
.at-section { padding: 104px 0 0; scroll-margin-top: 72px; }
.at-sec-head { max-width: 640px; margin-bottom: 40px; }
.at-kicker { margin: 0 0 12px; color: var(--brand-ink); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.at-sec-head h2 { margin: 0; color: var(--bright); font-size: clamp(28px, 3.8vw, 40px); font-weight: 700; letter-spacing: -.035em; line-height: 1.12; }

/* steps */
.at-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.at-steps > li { position: relative; display: flex; flex-direction: column; padding: 26px; border: 1px solid var(--rule); border-radius: 20px; background: rgb(20 22 27 / 70%); }
.at-num { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: var(--bright); color: #0A0B0E; font-size: 14px; font-weight: 700; }
.at-steps h3 { margin: 20px 0 6px; color: var(--bright); font-size: 18px; font-weight: 600; letter-spacing: -.015em; }
.at-steps p { margin: 0 0 22px; font-size: 14.5px; line-height: 1.65; }
.at-step-ui { display: flex; align-items: center; gap: 8px; margin-top: auto; padding: 14px; border-radius: 14px; background: rgb(10 11 14 / 70%); box-shadow: inset 0 0 0 1px #23262D; }
.ui-pills { gap: 4px; padding: 14px 10px; }
.ui-pill { flex: 1; padding: 6px 4px; white-space: nowrap; border: 1px solid #30343C; border-radius: 999px; background: none; color: var(--text); font-size: 12.5px; cursor: pointer; transition: border-color .15s ease, background .15s ease, color .15s ease, transform .15s ease; }
.ui-pill:hover { border-color: #4A4F59; color: var(--bright); }
.ui-pill:active { transform: scale(.95); }
.ui-pill.is-on { border-color: var(--brand); background: rgb(64 147 247 / 16%); color: var(--bright); }
/* range */
.ui-range { cursor: pointer; }
.ui-label { color: var(--muted); font-size: 12px; white-space: nowrap; }
.ui-range input { flex: 1; min-width: 0; height: 22px; margin: 0; background: none; cursor: pointer; -webkit-appearance: none; appearance: none; --p: 40%; }
.ui-range input::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--brand) var(--p), #2E323A var(--p)); }
.ui-range input::-moz-range-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--brand) var(--p), #2E323A var(--p)); }
.ui-range input::-webkit-slider-thumb { width: 18px; height: 18px; margin-top: -6px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgb(64 147 247 / 30%); -webkit-appearance: none; appearance: none; transition: box-shadow .15s ease; }
.ui-range input::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgb(64 147 247 / 30%); }
.ui-range input:hover::-webkit-slider-thumb, .ui-range input:active::-webkit-slider-thumb { box-shadow: 0 0 0 7px rgb(64 147 247 / 30%); }
.ui-range input:focus-visible { outline: none; }
.ui-range:has(input:focus-visible) { box-shadow: inset 0 0 0 1px #23262D, 0 0 0 2px var(--bright); }
.at-step-ui > b { min-width: 52px; color: var(--bright); font-size: 16px; font-variant-numeric: tabular-nums; text-align: right; }
/* week */
.ui-week-wrap { padding: 10px; }
.ui-week { display: flex; flex: 1; gap: 5px; margin: 0; padding: 0; list-style: none; }
.ui-week li { display: flex; flex: 1; flex-direction: column; align-items: center; gap: 3px; min-width: 0; padding: 6px 0 7px; border: 1px solid #2A2E36; border-top: 3px solid #3A3E46; border-radius: 7px; animation: uiPop .3s ease both; }
.ui-week b { color: var(--muted); font-size: 10.5px; font-weight: 600; }
.ui-week span { overflow: hidden; max-width: 100%; color: var(--text); font-size: 10px; text-overflow: clip; white-space: nowrap; }
.ui-week .t-run { border-top-color: var(--ph-base); } .ui-week .t-quality { border-top-color: var(--hard); }
.ui-week .t-strength { border-top-color: #fff; } .ui-week .t-long { border-top-color: #8C76FF; }
.ui-week .t-long span { color: var(--bright); }
.ui-week li:has(button) { padding: 0; transition: background .15s ease; }
.ui-week li:has(button):hover { background: rgb(255 255 255 / 5%); }
.ui-week li > button { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 100%; padding: 6px 0 7px; border: 0; border-radius: 5px; background: none; cursor: pointer; }
@keyframes uiPop { from { opacity: .3; transform: translateY(3px); } }
/* live output under each control */
.at-try-out { display: flex; flex-direction: column; gap: 8px; min-height: 44px; margin-top: 12px; }
.at-try-out p { margin: 0; color: var(--text); font-size: 13.5px; line-height: 1.5; }
.at-try-out p b { color: var(--bright); font-weight: 600; font-variant-numeric: tabular-nums; }
.ui-phasebar { display: flex; gap: 2px; }
.ui-phasebar span { display: flex; flex: var(--w) 1 0; flex-direction: column; gap: 6px; min-width: 38px; transition: flex-grow .35s cubic-bezier(.3,1.2,.5,1); }
.ui-phasebar i { display: block; height: 8px; border-radius: 3px; }
.ui-phasebar small { color: #fff; font-size: 11px; line-height: 1.2; white-space: nowrap; }
.ui-phasebar .ph-base i { background: var(--ph-base); } .ui-phasebar .ph-build i { background: var(--ph-build); }
.ui-phasebar .ph-peak i { background: var(--ph-peak); } .ui-phasebar .ph-taper i { background: var(--ph-taper); }
.ui-runs { flex-direction: row; align-items: center; justify-content: space-between; }
.ui-step { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid #30343C; border-radius: 10px; background: rgb(255 255 255 / 4%); color: var(--bright); font-size: 18px; line-height: 1; cursor: pointer; transition: background .15s ease, border-color .15s ease, transform .15s ease; }
.ui-step:hover:not(:disabled) { border-color: #4A4F59; background: rgb(255 255 255 / 8%); }
.ui-step:active:not(:disabled) { transform: scale(.94); }
.ui-step:disabled { opacity: .35; cursor: default; }
.at-steps-hint { margin: 14px 0 0; color: var(--muted); font-size: 13px; text-align: center; }
.at-steps-out { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 24px 0 0; color: var(--bright); font-size: 15px; font-weight: 500; }
.at-steps-out svg { width: 16px; height: 16px; color: var(--brand); }

/* phases */
.at-phases { display: grid; grid-template-columns: 6fr 7fr 4fr 3fr; gap: 6px; margin: 0; padding: 0; list-style: none; }
.at-phases li { padding: 0 4px 0 0; }
.at-phases li::before { display: block; height: 10px; margin-bottom: 16px; border-radius: 5px; content: ""; }
.at-phases .ph-base::before { background: var(--ph-base); } .at-phases .ph-build::before { background: var(--ph-build); }
.at-phases .ph-peak::before { background: var(--ph-peak); } .at-phases .ph-taper::before { background: var(--ph-taper); }
.at-phases b { color: var(--bright); font-size: 16px; font-weight: 600; }
.at-phases p { margin: 6px 0 0; font-size: 13.5px; line-height: 1.6; }

/* features */
.at-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0; padding: 0; overflow: hidden; border: 1px solid var(--rule); border-radius: 22px; background: var(--rule); list-style: none; }
.at-features li { padding: 30px 28px 32px; background: #0F1115; transition: background .25s ease; }
.at-features li:hover { background: #1A1E25; }
.at-ico { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 12px; background: rgb(64 147 247 / 12%); color: var(--brand-ink); transition: transform .35s cubic-bezier(.3,1.5,.5,1); }
.at-features li:hover .at-ico { transform: rotate(-30deg); }
.at-ico svg { width: 22px; height: 22px; }
.at-features h3 { margin: 20px 0 8px; color: var(--bright); font-size: 16.5px; font-weight: 600; letter-spacing: -.01em; }
.at-features p { margin: 0; font-size: 14px; line-height: 1.65; }

/* faq */
.at-faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; align-items: start; }
.at-faq .at-sec-head { margin: 0; }
.at-qa { border-top: 1px solid var(--rule); }
.at-qa details { border-bottom: 1px solid var(--rule); }
.at-qa summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 2px; color: var(--bright); font-size: 16px; font-weight: 500; list-style: none; cursor: pointer; }
.at-qa summary::-webkit-details-marker { display: none; }
.at-qa summary::after { width: 22px; height: 22px; flex: none; background: linear-gradient(currentColor, currentColor) center / 12px 1.6px no-repeat, linear-gradient(currentColor, currentColor) center / 1.6px 12px no-repeat; color: var(--muted); content: ""; transition: transform .25s ease; }
.at-qa details[open] summary::after { transform: rotate(45deg); }
.at-qa summary:hover { color: #fff; }
.at-qa p { margin: -4px 0 22px; padding-right: 32px; font-size: 14.5px; line-height: 1.7; }

/* final cta */
.at-final { position: relative; display: grid; justify-items: center; gap: 0; margin: 120px 0 96px; padding: 64px 24px; overflow: hidden; border: 1px solid #23324A; border-radius: 28px; background: radial-gradient(80% 120% at 50% 0%, rgb(64 147 247 / 22%), transparent 70%), #0F1218; text-align: center; }
.at-final img { width: 56px; height: 56px; border-radius: 15px; box-shadow: 0 16px 40px -12px rgb(64 147 247 / 70%); }
.at-final h2 { margin: 24px 0 10px; color: var(--bright); font-size: clamp(28px, 4vw, 42px); font-weight: 700; letter-spacing: -.035em; }
.at-final p { margin: 0 0 28px; font-size: 16px; }

/* reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.at-hero-copy > * { animation: at-up .7s cubic-bezier(.2,.7,.2,1) both; }
.at-hero-copy > :nth-child(2) { animation-delay: .06s; } .at-hero-copy > :nth-child(3) { animation-delay: .12s; }
.at-hero-copy > :nth-child(4) { animation-delay: .18s; } .at-hero-copy > :nth-child(5) { animation-delay: .24s; }
.at-hero-art { animation: at-up .9s .15s cubic-bezier(.2,.7,.2,1) both; }
@keyframes at-up { from { opacity: 0; transform: translateY(16px); } }

@media (max-width: 920px) {
  .at-hero { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; }
  .at-hero-art { max-width: 520px; width: 100%; margin: 0 auto; }
  .at-steps, .at-features { grid-template-columns: 1fr 1fr; }
  .at-faq { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  .at-main { width: calc(100% - 32px); }
  .at-steps, .at-features { grid-template-columns: 1fr; }
  .at-phases { grid-template-columns: 1fr 1fr; gap: 24px 12px; }
  .at-section { padding-top: 80px; }
  .at-cta .at-btn { flex: 1 1 auto; white-space: nowrap; }
  .at-btn-lg { padding: 14px 18px; }
  .at-strip { flex-direction: column; align-items: flex-start; }
  .at-strip ul { flex-direction: column; align-items: flex-start; justify-content: flex-start; }
  .at-strip li { align-items: flex-start; }
  .at-strip li::before { margin-top: 9px; flex: none; }
  .at-hero-art { padding-inline: 12px; }
  .ui-pills { flex-wrap: wrap; gap: 6px; padding: 12px; }
  .ui-pill { flex: 1 1 40%; padding: 8px 6px; }
  .at-float-a { right: 0; }
  .at-float-b { left: 0; }
    .at-final { margin: 88px 0 64px; padding: 48px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
  .at-hero-copy > *, .at-hero-art, .at-float, .at-dot, .js .pv-chart i { animation: none; }
}
