/* Calctric 1.1: genuine app screens, scroll-led planning tools and native galleries. */
.enhanced-only { display: none; }
.release-ready .enhanced-only { display: flex; }
.release-section { scroll-margin-top: 32px; }
.release-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 40px; }
.release-heading .eyebrow { color: var(--orange); font-size: 10px; margin: 0 0 15px; }
.release-heading h2 { margin: 0; font-size: clamp(35px, 4vw, 54px); line-height: 1.06; letter-spacing: -2px; }
.release-heading > p { color: var(--muted); font-size: 15px; line-height: 1.7; margin: 0 0 3px; max-width: 340px; }
.workflows { padding: 105px 0 95px; border-top: 1px solid var(--line); }
.feature-tabs { gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 0; }
.feature-tabs button { padding: 20px 28px 20px 0; margin-right: 28px; background: none; color: var(--muted); border: 0; border-bottom: 2px solid transparent; cursor: pointer; font: inherit; font-size: 15px; transition: color .25s, border-color .25s; }
.feature-tabs button > span { color: #8e949a; font: 10px ui-monospace, monospace; margin-right: 12px; }
.feature-tabs button[aria-current=step] { color: var(--ink); border-color: var(--orange); }
.feature-tabs button:hover { color: var(--ink); }
.workflow-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; padding: 55px 54px; background: radial-gradient(ellipse at 85% 40%, #85949b1a, transparent 68%); }
.workflow-panel[hidden], .calculator-collection[hidden] { display: none; }

.workflow-copy { max-width: 400px; }
.workflow-copy .feature-kicker { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; color: var(--orange); font-size: 12px; margin: 0 0 19px; }
.access-tag { display: inline-block; font-size: 9px; font-weight: 500; letter-spacing: .2px; color: #c6c9ca; padding: 4px 7px; border: 1px solid #555b60; border-radius: 5px; white-space: nowrap; line-height: 1.2; }
.workflow-copy h3 { font-size: clamp(32px, 3.3vw, 46px); letter-spacing: -1.8px; line-height: 1.12; font-weight: 600; margin: 0 0 24px; }
.workflow-copy > p { font-size: 16px; color: var(--muted); line-height: 1.75; }
.workflow-copy ul { list-style: none; padding: 0; margin: 28px 0; }
.workflow-copy li { position: relative; padding: 10px 0 10px 20px; font-size: 13px; line-height: 1.5; }
.workflow-copy li::before { content: ''; position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--orange); left: 0; top: 18px; }
.workflow-copy p.workflow-note { font-size: 11px; max-width: 345px; padding-top: 19px; border-top: 1px solid var(--line); }
.workflow-visual { display: flex; flex-direction: column; align-items: center; gap: 24px; min-width: 0; }
.release-phone { width: 266px; position: relative; padding: 7px; border: 2px solid #787d80; border-radius: 40px; background: #060707; box-shadow: 0 30px 60px -15px #0009, 0 0 0 1px #c0c4c71a; aspect-ratio: 1320 / 2868; flex-shrink: 0; }
.workflow-screen { position: absolute; inset: 7px; border-radius: 31px; overflow: hidden; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s; }
.workflow-screen.is-selected { opacity: 1; visibility: visible; }
.workflow-screen img { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.release-phone .phone-island { width: 27%; height: 3.2%; top: 2.3%; }
.screen-options { gap: 4px; padding: 4px; border: 1px solid #474c50; background: #222528; border-radius: 24px; }
.screen-options button { padding: 10px 16px; border: 0; border-radius: 20px; font-size: 11px; color: var(--muted); background: transparent; cursor: pointer; transition: background .25s, color .25s; }
.screen-options button[aria-pressed=true] { background: #404449; color: var(--ink); }
/* Native horizontal scroll: no timers, drag emulation or scroll interception. */
.toolbox { padding: 85px 0 70px; background: linear-gradient(155deg, #121416, #202326 65%, #17191b); border-top: 1px solid #353a3e; border-bottom: 1px solid #353a3e; }
.gallery-tabs { gap: 8px; margin: 0 0 19px; }
.gallery-tabs button { display: inline-flex; gap: 22px; align-items: center; background: transparent; border: 1px solid #51565b; border-radius: 25px; padding: 12px 18px; color: var(--muted); font-size: 12px; cursor: pointer; transition: background .25s, color .25s; }
.gallery-tabs button span { font: 10px ui-monospace, monospace; color: #9da2a7; }
.gallery-tabs button[aria-selected=true] { background: #ececea; border-color: #ececea; color: #202224; }
.gallery-tabs button[aria-selected=true] span { color: #5d6267; }
.collection-intro { min-height: 47px; }
.collection-intro > h3 { font-size: 17px; font-weight: 500; margin: 15px 0 0; }
.release-ready .collection-intro > h3 { display: none; }
.collection-intro p { font-size: 12px; color: var(--muted); margin: 0; max-width: 740px; padding-bottom: 20px; }
.calculator-track { --edge: max(72px, calc((100vw - 1200px) / 2)); display: flex; gap: 20px; padding: 8px var(--edge) 28px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.calculator-track::-webkit-scrollbar { display: none; }
.calculator-track:focus-visible { outline: 2px solid var(--orange); outline-offset: -4px; }
.calculator-card { flex: 0 0 348px; min-width: 0; padding: 27px 24px 0; border: 1px solid #41474c; border-radius: 24px; background: radial-gradient(ellipse at 70% 100%, #a7b2ba15, transparent 64%), linear-gradient(135deg,#292c30,#202326); scroll-snap-align: start; overflow: hidden; }
.calculator-card-copy { min-height: 161px; }
.calculator-name { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 11px; margin: 0 0 20px; color: #c6cacf; }
.calculator-card h3 { font-size: 26px; font-weight: 550; letter-spacing: -.9px; line-height: 1.16; margin: 0 0 12px; }
.calculator-card-copy > p:last-child { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 0 0 24px; max-width: 270px; }
.calculator-screen { width: 228px; margin: 0 auto -1px; background: #000; border: 1px solid #62696d; border-bottom: 0; border-radius: 27px 27px 0 0; padding: 5px 5px 0; box-shadow: 0 16px 35px #0005; overflow: hidden; }
.calculator-screen img { display: block; width: 100%; height: auto; border-radius: 20px 20px 0 0; }
.gallery-footer { display: flex; align-items: center; gap: 25px; margin-top: 3px; }
.gallery-status { font-size: 11px; color: var(--muted); min-width: 210px; }
.gallery-progress { max-width: 180px; flex: 1; height: 2px; background: #42484d; overflow: hidden; }
.gallery-progress > span { display: block; width: 16.6667%; height: 100%; background: var(--orange); transition: width .2s ease; }
.gallery-arrows { display: flex; gap: 10px; margin-left: auto; }
.gallery-arrows button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #656b70; border-radius: 50%; color: var(--ink); background: #2f3337; font-size: 19px; cursor: pointer; transition: background .2s; }
.gallery-arrows button:hover { background: #454b50; }
.gallery-arrows button:disabled { opacity: .35; cursor: default; background: transparent; }
.toolbox-note { font-size: 11px; color: #aeb4b8; line-height: 1.7; padding-top: 23px; }
.calculator-collection + .calculator-collection { margin-top: 45px; }
.release-ready .calculator-collection + .calculator-collection { margin-top: 0; }
.access-section { padding: 70px 0 75px; border-top: 1px solid var(--line); }
.access-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.access-card { border: 1px solid #444a50; border-radius: 22px; padding: 34px 35px; background: #22252880; }
.access-premium { border-color: #705b47; background: radial-gradient(ellipse at 0 0, #bc895f19,transparent 85%), #27272a; }
.access-label { color: #b8bec2; font: 10px -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; letter-spacing: 1.4px; margin: 0 0 23px; }
.access-premium .access-label { color: var(--orange); }
.access-card h3 { font-size: 25px; font-weight: 550; letter-spacing: -.8px; margin: 0 0 18px; }
.access-card > p:not(.access-label) { font-size: 14px; color: var(--muted); line-height: 1.75; margin: 15px 0 0; }
.access-footnote { font-size: 11px; color: var(--muted); line-height: 1.7; margin-top: 20px; }
/* The index now includes the two new sections. JS spaces its marks from the actual count. */
.page-tape-ticks { background-size: auto; background-image: repeating-linear-gradient(to bottom,var(--tape-tick) 0 1px,transparent 1px calc(var(--tape-span) / 128)); }
.page-tape-ticks i { background-image: repeating-linear-gradient(to bottom,var(--tape-tick) 0 1px,transparent 1px calc(var(--tape-span) / 32)); }
.page-tape-ticks b { background-image: repeating-linear-gradient(to bottom,var(--tape-tick) 0 1px,transparent 1px calc(var(--tape-span) / 16)); }
@media (max-width:1050px) {
 .workflow-panel { padding: 40px 15px; gap: 35px; }
 .release-phone { width: 248px; }
 .header nav { gap: 18px; font-size: 12px; }
 .feature-tabs button { margin-right: 20px; padding-right: 18px; }
}
@media (max-width:849px) {
 .release-heading { align-items: flex-start; flex-direction: column; gap: 22px; }
 .release-heading > p { max-width: 520px; }
 .release-heading > p br { display: none; }
 .workflow-panel { grid-template-columns: 1fr 1fr; gap: 28px; padding: 35px 0; }
 .workflow-copy h3 { font-size: 32px; }
 .workflow-copy > p { font-size: 14px; }
 .workflow-copy li { font-size: 12px; }
 .release-phone { width: min(248px,100%); }
 .calculator-track { --edge: 56px; }
 .access-card { padding: 28px; }
}
@media (max-width:599px) {
 .workflows { padding-top: 60px; padding-bottom: 48px; }
 .release-heading { margin-bottom: 27px; gap: 18px; }
 .release-heading h2 { font-size: 35px; letter-spacing: -1.4px; }
 .release-heading .eyebrow { font-size: 9px; }
 .release-heading > p { font-size: 14px; }
 .feature-tabs { justify-content: space-between; gap: 10px; }
 .feature-tabs button { font-size: 12px; margin: 0; padding: 16px 0; }
 .feature-tabs button > span { display: none; }
 .workflow-panel { display: flex; flex-direction: column; align-items: stretch; padding: 30px 0 0; gap: 0; }
 .workflow-copy { display: contents; }
 .workflow-copy .feature-kicker { order: 0; }
 .workflow-copy h3 { order: 1; }
 .workflow-copy > p:not(.feature-kicker):not(.workflow-note) { order: 2; }
 .workflow-visual { order: 3; margin: 15px 0 12px; }
 .workflow-copy ul { order: 4; }
 .workflow-copy p.workflow-note { order: 5; }
 .workflow-copy { max-width: none; }
 .workflow-copy h3 { font-size: 32px; letter-spacing: -1.2px; margin-bottom: 17px; }
 .workflow-copy h3 br { display: none; }
 .workflow-copy h3 br::after { content: ' '; }
 .workflow-copy > p { max-width: 450px; }
 .workflow-copy ul { margin: 19px 0; }
 .workflow-copy li { padding: 7px 0 7px 17px; }
 .workflow-copy li::before { top: 14px; }
 .workflow-copy p.workflow-note { max-width: none; padding-top: 15px; margin-bottom: 0; }
 .workflow-copy .feature-kicker { margin-bottom: 15px; }
 .release-phone { width: 245px; }
 .workflow-visual { gap: 19px; }
 .toolbox { padding: 55px 0 45px; }
 .gallery-tabs { gap: 7px; }
 .gallery-tabs button { padding: 11px 13px; gap: 12px; font-size: 11px; }
 .gallery-tabs button span { font-size: 9px; }
 .collection-intro { min-height: 70px; }
 .collection-intro p { font-size: 11px; padding-bottom: 16px; }
 .calculator-track { --edge: 20px; gap: 14px; padding-bottom: 24px; }
 .calculator-card { flex-basis: min(310px,calc(100vw - 70px)); padding: 23px 20px 0; border-radius: 21px; }
 .calculator-card h3 { font-size: 24px; }
 .calculator-card-copy { min-height: 165px; }
 .calculator-name { font-size: 10px; margin-bottom: 20px; }
 .calculator-card .access-tag { font-size: 8px; padding: 4px 5px; }
 .calculator-screen { width: min(218px,100%); }
 .gallery-footer { gap: 12px; }
 .gallery-status { min-width: 0; font-size: 10px; }
 .gallery-progress { display: none; }
 .gallery-arrows { gap: 8px; }
 .gallery-arrows button { width: 42px; height: 42px; }
 .toolbox-note { font-size: 10px; }
 .access-section { padding: 50px 0; }
 .access-grid { grid-template-columns: 1fr; gap: 14px; }
 .access-card { padding: 27px; }
 .access-card h3 { font-size: 24px; }
 .access-card > p:not(.access-label) { font-size: 13px; }
 .access-footnote { font-size: 10px; }
}
@media (prefers-reduced-motion:reduce) {
 .calculator-track { scroll-behavior: auto; }
}

/* A complete feature slides into place as the visitor scrolls to its chapter. */
.workflow-scroll { position: relative; }
.workflow-sticky { position: relative; }
.workflow-scroll-hint { margin-left: auto; align-self: center; color: var(--muted); font-size: 10px; }
.workflows.is-scroll-linked .workflow-sticky { position: sticky; top: 20px; }
.workflows.is-scroll-linked .workflow-window { overflow: clip; }
.workflows.is-scroll-linked .feature-explorer { display: flex; will-change: transform; transition: transform .8s cubic-bezier(.22,1,.36,1); }
.workflows.is-scroll-linked .workflow-panel { flex: 0 0 100%; min-width: 0; }
.workflows .workflow-panel { padding-top: 24px; padding-bottom: 24px; }
.workflows .release-phone { width: clamp(180px, calc((100svh - 230px) * .461), 266px); }
.workflows .workflow-visual { gap: 16px; }
.workflows:not(.is-scroll-linked) .workflow-scroll-hint { display: none; }
/* Restore one large, centred screen on phones, with its explanation above it. */
@media (max-width:599px) {
 .workflows .workflow-panel { display: flex; flex-direction: column; align-items: stretch; padding: 12px 0; gap: 0; }
 .workflows .workflow-copy { display: contents; }
 .workflows .workflow-copy .feature-kicker { order: 0; margin: 0 0 9px; font-size: 11px; }
 .workflows .workflow-copy h3 { order: 1; font-size: 28px; margin: 0 0 10px; }
 .workflows .workflow-copy > p:not(.feature-kicker):not(.workflow-note) { order: 2; font-size: 13px; line-height: 1.6; margin: 0 0 16px; }
 .workflows .workflow-visual { order: 3; margin: 0; gap: 12px; }
 .workflows .release-phone { width: clamp(180px, calc((100svh - 400px) * .461), 245px); border-radius: 34px; }
 .workflows .workflow-screen { border-radius: 25px; }
 .workflows .workflow-copy ul { display: none; }
 .workflows .workflow-copy p.workflow-note { order: 4; font-size: 10px; margin: 15px 0 0; padding-top: 12px; }
 .workflows .screen-options button { min-height: 40px; padding: 10px 15px; }
 .workflow-scroll-hint { display: none; }
}
@media (prefers-reduced-motion:reduce) {
 .workflows.is-scroll-linked .feature-explorer, .workflow-screen, .screen-options button { transition: none; }
}
