/* Home page styles, moved out of website/home.html (pre-production review P1). */
.ma-home { overflow: clip; }
.ma-home *, .ma-home *::before, .ma-home *::after { box-sizing: border-box; }
.ma-home-section { padding: clamp(72px, 9vw, 132px) 0; }
.ma-home-title { margin: 0; color: #1a1a1a; font-size: clamp(34px, 5vw, 66px); font-weight: 520; letter-spacing: -.065em; line-height: .98; text-transform: uppercase; }
.ma-home-copy { margin: 0; color: #625d56; font-size: clamp(16px, 1.55vw, 19px); line-height: 1.55; }


.ma-home-hero { --ma-hero-actions-lift: min(40px, 3vw); --ma-hero-gallery-lift: min(30px, 2.25vw); display: flex; position: relative; min-height: 100svh; overflow: hidden; background: radial-gradient(ellipse 56% 39% at 50% 100%, rgba(244, 193, 54, .19), transparent 74%), radial-gradient(ellipse 32% 26% at 84% 13%, rgba(244, 193, 54, .08), transparent 78%), #272725; padding: 156px 0 48px; }
.ma-home-hero::before { position: absolute; inset: 0; background: linear-gradient(116deg, rgba(255, 255, 255, .025), transparent 42%); content: ""; pointer-events: none; }
.ma-hero-inner { display: flex; position: relative; z-index: 1; flex: 1; flex-direction: column; align-items: center; }
.ma-hero-content { display: flex; width: 100%; max-width: 1180px; min-height: 100%; flex: 1; flex-direction: column; text-align: center; }
@media (min-width: 1200px) { .ma-hero-content { max-width: 1360px; } }
.ma-hero-content .ma-home-title { max-width: 1080px; margin-right: auto; margin-left: auto; color: #fffaf0; }
.ma-hero-content .ma-home-copy { max-width: 670px; margin: 22px auto 0; color: #d1cbc2; }
.ma-hero-gallery { position: relative; top: calc(0px - var(--ma-hero-gallery-lift)); height: clamp(300px, 29vw, 400px); width: 100%; margin: 28px 0 0; overflow: visible; transform: scale(var(--ma-gallery-scale, .86)); transform-origin: center bottom; transition: transform 180ms cubic-bezier(.22,1,.36,1); will-change: transform; }
.ma-hero-gallery::before { position: absolute; z-index: 0; inset: 12% 19% -8%; background: radial-gradient(ellipse, rgba(244, 193, 54, .27), rgba(244, 193, 54, .06) 48%, transparent 72%); content: ""; filter: blur(17px); pointer-events: none; }
.ma-hero-gallery-track { position: relative; z-index: 1; height: 100%; transform-style: preserve-3d; }
.ma-hero-shot { --ma-hero-bottom: 0px; --ma-hero-shift: 0%; --ma-hero-scale: 1; --ma-hero-depth: 30px; --ma-hero-opacity: 1; --ma-hero-layer: 5; position: absolute; bottom: var(--ma-hero-bottom); left: 50%; z-index: var(--ma-hero-layer); width: clamp(235px, 31.5vw, 392px); margin: 0; min-width: 0; opacity: var(--ma-hero-opacity); transform: translateX(-50%) translateX(var(--ma-hero-shift)) translateZ(var(--ma-hero-depth)) scale(var(--ma-hero-scale)); transform-origin: center bottom; transition: transform 2200ms cubic-bezier(.48,0,.2,1), bottom 2200ms cubic-bezier(.48,0,.2,1), opacity 1300ms ease-in-out, filter 1300ms ease-in-out; }
.ma-hero-shot[data-hero-depth="far-left"] { --ma-hero-bottom: 8px; --ma-hero-shift: -128%; --ma-hero-scale: .63; --ma-hero-depth: -210px; --ma-hero-opacity: .52; --ma-hero-layer: 1; filter: saturate(.82) brightness(.94); }
.ma-hero-shot[data-hero-depth="left"] { --ma-hero-bottom: 4px; --ma-hero-shift: -94%; --ma-hero-scale: .78; --ma-hero-depth: -94px; --ma-hero-opacity: .82; --ma-hero-layer: 3; filter: saturate(.91) brightness(.98); }
.ma-hero-shot[data-hero-depth="center"] { --ma-hero-bottom: 0px; --ma-hero-shift: 0%; --ma-hero-scale: 1.72; --ma-hero-depth: 54px; --ma-hero-opacity: 1; --ma-hero-layer: 5; }
.ma-hero-shot[data-hero-depth="right"] { --ma-hero-bottom: 4px; --ma-hero-shift: 94%; --ma-hero-scale: .78; --ma-hero-depth: -94px; --ma-hero-opacity: .82; --ma-hero-layer: 3; filter: saturate(.91) brightness(.98); }
.ma-hero-shot[data-hero-depth="far-right"] { --ma-hero-bottom: 8px; --ma-hero-shift: 128%; --ma-hero-scale: .63; --ma-hero-depth: -210px; --ma-hero-opacity: .52; --ma-hero-layer: 1; filter: saturate(.82) brightness(.94); }
.ma-hero-shot.is-recycling { --ma-hero-bottom: 8px; --ma-hero-shift: -148%; --ma-hero-scale: .63; --ma-hero-depth: -250px; --ma-hero-opacity: 0; --ma-hero-layer: 1; }
.ma-hero-shot.is-preparing { transition: none; }
.ma-hero-shot.is-recycling.is-preparing { --ma-hero-bottom: 8px; --ma-hero-shift: 128%; --ma-hero-scale: .63; --ma-hero-depth: -210px; --ma-hero-opacity: 0; --ma-hero-layer: 1; }
.ma-hero-shot.is-trailing-clone { --ma-hero-bottom: 8px; --ma-hero-shift: 128%; --ma-hero-scale: .63; --ma-hero-depth: -210px; --ma-hero-opacity: 0; --ma-hero-layer: 1; }
.ma-hero-shot.is-trailing-clone.is-entering { --ma-hero-opacity: .52; }
.ma-hero-shot-image { display: block; width: 100%; aspect-ratio: 16 / 9; border: 1px solid rgba(255, 248, 233, .23); border-radius: 13px; box-shadow: 0 22px 50px rgba(0, 0, 0, .4), 0 0 24px rgba(244, 193, 54, .09); object-fit: cover; }
.ma-hero-shot figcaption { margin-top: 10px; color: #756e65; font-size: 11px; font-weight: 750; letter-spacing: .04em; text-align: center; text-transform: uppercase; }
.ma-hero-content .ma-home-title { font-size: clamp(42px, 5.7vw, 76px); }
.ma-hero-actions { display: flex; position: relative; top: calc(0px - var(--ma-hero-actions-lift)); justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: clamp(58px, 5vw, 76px); }
.ma-hero-actions .ma-home-button--quiet { border: 1px solid rgba(255, 250, 240, .17); background: rgba(255, 250, 240, .12); color: #fffaf0; }
.ma-hero-actions .ma-home-button--quiet:hover { background: rgba(255, 250, 240, .19); box-shadow: 0 14px 28px rgba(0, 0, 0, .23); }
.ma-hero-note { margin: 24px 0 0; color: #8a837a; font-size: 13px; }

.ma-workflow { background: #252525; color: #fffdf8; }
.ma-workflow .ma-home-title { color: #fffdf8; }
.ma-workflow-heading { margin-bottom: clamp(34px, 5vw, 60px); }
.ma-workflow-shell { display: grid; grid-template-columns: minmax(280px, .94fr) minmax(0, 1.42fr); gap: clamp(28px, 5vw, 70px); align-items: stretch; min-height: min(652px, calc(100vh - 170px)); }
.ma-workflow-tabs { display: grid; grid-template-rows: repeat(7, minmax(54px, 1fr)); gap: 9px; }
.ma-workflow-tab { display: flex; width: 100%; min-width: 0; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid transparent; border-radius: 13px; background: transparent; color: #e9e5dd; cursor: pointer; font: inherit; font-size: clamp(18px, 2.05vw, 27px); font-weight: 520; letter-spacing: -.045em; padding: 11px 16px 11px 20px; text-align: left; transition: border-color 180ms ease, color 180ms ease, background-color 180ms ease, transform 180ms ease; }
.ma-workflow-tab:hover { background: rgba(255, 255, 255, .055); transform: translateX(3px); }
.ma-workflow-tab[aria-selected="true"] { border-color: #f4c136; color: #fffdf8; }
.ma-workflow-tab:focus-visible { outline: 2px solid #f4c136; outline-offset: 3px; }
.ma-workflow-arrow { color: #f4c136; font-size: 1.15em; font-weight: 400; transition: transform 180ms ease; }
.ma-workflow-tab[aria-selected="true"] .ma-workflow-arrow { transform: translateX(3px); }
.ma-workflow-panel { display: flex; min-width: 0; flex-direction: column; }
.ma-workflow-panel-copy { max-width: 650px; margin: 4px 0 24px; color: #c8c3ba; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.48; }
.ma-workflow-panel-title { margin: 0; color: #fffdf8; font-size: clamp(29px, 3.5vw, 48px); font-weight: 520; letter-spacing: -.055em; line-height: 1; }
.ma-workflow-capture { display: flex; position: relative; min-height: 0; flex: 1; align-items: flex-end; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 18px; background: #161616; box-shadow: 0 26px 54px rgba(0, 0, 0, .25); }
.ma-workflow-capture::before { position: absolute; inset: 0; background: linear-gradient(125deg, rgba(18, 18, 18, .28), rgba(18, 18, 18, .04)), url("img/block-1-bg.a39576d1ec35.png") 82% 48% / cover no-repeat; content: ""; opacity: .88; transition: transform 420ms ease; }
.ma-workflow-capture:hover::before { transform: scale(1.025); }
.ma-workflow-capture-caption { position: relative; z-index: 1; max-width: 350px; margin: 18px; border-radius: 10px; background: rgba(20, 20, 20, .72); color: #f6f1e9; font-size: 12px; font-weight: 700; letter-spacing: .06em; padding: 10px 12px; text-transform: uppercase; }
.ma-workflow-placeholder-note { margin: 12px 0 0; color: #938d84; font-size: 12px; }

@media (max-width: 820px) {
  /* The first screen spreads its title, text, button and screenshots over the
     whole height of the phone instead of pressing them to the top. */
  .ma-home-hero { padding: calc(var(--header-offset) + 12px) 0 clamp(20px, 4svh, 48px); }
  .ma-hero-content { justify-content: space-evenly; gap: clamp(14px, 2.5svh, 28px); }
  .ma-hero-content .ma-home-title { font-size: clamp(32px, min(10.5vw, 5.4svh), 60px); }
  .ma-hero-content .ma-home-copy { margin-top: 0; font-size: clamp(15px, 2.1svh, 18px); }
  .ma-hero-actions { top: 0; margin-top: 0; }
  .ma-hero-gallery { top: 0; height: clamp(180px, 31svh, 360px); margin-top: 0; }
  .ma-hero-shot { width: min(40.5vw, 308px, 34svh); }

  /* Steps: a compact numbered row that scrolls sideways above the chosen step. */
  .ma-workflow-heading { margin-bottom: 22px; }
  .ma-workflow-shell { grid-template-columns: 1fr; gap: 22px; min-height: 0; }
  .ma-workflow-tabs { display: flex; gap: 8px; margin-inline: calc(50% - 50vw); padding: 2px calc(50vw - 50%) 6px; overflow-x: auto; counter-reset: ma-step; scroll-padding-inline: calc(50vw - 50%); scrollbar-width: none; }
  .ma-workflow-tabs::-webkit-scrollbar { display: none; }
  .ma-workflow-tab { flex: 0 0 auto; width: auto; min-height: 42px; gap: 8px; justify-content: flex-start; border-color: rgba(255, 255, 255, .16); border-radius: 999px; font-size: 15px; letter-spacing: -.02em; padding: 0 16px 0 7px; white-space: nowrap; counter-increment: ma-step; }
  .ma-workflow-tab::before { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .1); content: counter(ma-step); font-size: 13px; font-weight: 700; letter-spacing: 0; }
  .ma-workflow-tab:hover { transform: none; }
  .ma-workflow-tab[aria-selected="true"] { border-color: #f4c136; background: #f4c136; color: #252525; }
  .ma-workflow-tab[aria-selected="true"]::before { background: rgba(37, 37, 37, .14); }
  .ma-workflow-arrow { display: none; }
  .ma-workflow-panel-title { font-size: clamp(26px, 6.5vw, 36px); }
  .ma-workflow-panel-copy { margin-bottom: 18px; font-size: 16px; }
}
@media (max-width: 560px) {
  .ma-home-section { padding: 72px 0; }
  .ma-hero-gallery { height: clamp(170px, 30svh, 290px); }
  .ma-hero-shot { width: min(55vw, 263px, 30svh); }
  .ma-hero-shot[data-hero-depth="center"] { --ma-hero-scale: 1.35; }
  .ma-hero-shot[data-hero-depth="far-left"] { --ma-hero-shift: -108%; }
  .ma-hero-shot[data-hero-depth="left"] { --ma-hero-shift: -78%; }
  .ma-hero-shot[data-hero-depth="right"] { --ma-hero-shift: 78%; }
  .ma-hero-shot[data-hero-depth="far-right"] { --ma-hero-shift: 108%; }
  .ma-hero-shot.is-recycling { --ma-hero-shift: -124%; }
  .ma-hero-shot.is-recycling.is-preparing, .ma-hero-shot.is-trailing-clone { --ma-hero-shift: 108%; }
  .ma-hero-shot figcaption { font-size: 9px; }
  .ma-hero-actions { display: grid; width: 100%; }
  .ma-home-button { width: 100%; }
  .ma-workflow-capture { border-radius: 13px; }
}

.ma-import { background: #f8f4ed; }
.ma-import-layout { display: grid; grid-template-columns: minmax(250px, .78fr) minmax(0, 1.22fr); gap: clamp(40px, 9vw, 128px); align-items: start; }
.ma-import-intro { position: sticky; top: 104px; padding-top: 8px; }
.ma-import-intro .ma-home-copy { max-width: 390px; margin-top: 25px; }
.ma-import-entries { display: grid; gap: clamp(54px, 8vw, 100px); }
.ma-import-entry { min-width: 0; }
.ma-media-placeholder { position: relative; display: flex; aspect-ratio: 16 / 9; align-items: flex-end; overflow: hidden; border-radius: 22px; background: #e8e1d8; box-shadow: 0 22px 50px rgba(66, 58, 47, .12); }
.ma-media-placeholder::before { position: absolute; inset: 0; background: linear-gradient(145deg, rgba(255, 255, 255, .05), rgba(37, 37, 37, .35)), url("img/block-1-bg.a39576d1ec35.png") 80% 50% / cover no-repeat; content: ""; }
.ma-media-placeholder--design::before { background-position: 67% 55%; filter: saturate(.8); }
.ma-media-placeholder-label { position: relative; z-index: 1; margin: 18px; border-radius: 999px; background: rgba(255, 253, 249, .88); color: #292724; font-size: 11px; font-weight: 800; letter-spacing: .07em; padding: 9px 12px; text-transform: uppercase; }
.ma-import-entry h3 { margin: 21px 0 10px; color: #22211f; font-size: clamp(28px, 3vw, 42px); font-weight: 530; letter-spacing: -.055em; line-height: 1; }
.ma-import-entry-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.ma-import-entry-bottom p { max-width: 440px; margin: 0; color: #6c655d; font-size: 15px; line-height: 1.5; }
.ma-format-list { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.ma-format-mark { display: inline-flex; min-height: 31px; align-items: center; border-radius: 9px; background: #fffdfa; box-shadow: 0 7px 16px rgba(70, 61, 50, .08); color: #4f4a44; font-size: 11px; font-weight: 800; padding: 6px 9px; white-space: nowrap; }
.ma-format-mark--excel { color: #167544; }
.ma-format-mark--sheets { color: #2d8a55; }
.ma-format-mark--wfolio { color: #3d4b60; }
.ma-format-mark--photoshop { background: #001e36; color: #42b6ff; }

.ma-automation { background: #fffdfa; }
.ma-automation-head { display: grid; grid-template-columns: minmax(0, .86fr) minmax(260px, .62fr); gap: clamp(32px, 8vw, 116px); align-items: end; margin-bottom: 42px; }
.ma-automation-head .ma-home-copy { max-width: 480px; }
.ma-automation-video { position: relative; display: flex; aspect-ratio: 16 / 8.3; align-items: flex-end; overflow: hidden; border-radius: 24px; background: #252525; box-shadow: 0 28px 58px rgba(47, 42, 35, .18); }
.ma-automation-video::before { position: absolute; inset: 0; background: linear-gradient(115deg, rgba(20, 20, 20, .08), rgba(20, 20, 20, .4)), url("img/block-1-bg.a39576d1ec35.png") 76% 52% / cover no-repeat; content: ""; }
.ma-automation-video-caption { position: relative; z-index: 1; display: flex; align-items: center; gap: 9px; margin: 22px; color: #fffdf8; font-size: 12px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.ma-automation-video-caption::before { width: 10px; height: 10px; border: 2px solid #f4c136; border-radius: 50%; content: ""; }
.ma-placeholder-undertext { margin: 14px 0 0; color: #847d74; font-size: 13px; }

.ma-templates { background: #f3e9dc; }
.ma-templates-heading { max-width: 740px; margin-bottom: 40px; }
.ma-templates-heading .ma-home-copy { max-width: 600px; margin-top: 22px; }
.ma-template-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); }
.ma-template-card { display: block; min-width: 0; border-radius: 18px; background: #fffdfa; box-shadow: 0 16px 34px rgba(74, 61, 45, .1); overflow: hidden; color: inherit; text-decoration: none; transition: transform 200ms ease, box-shadow 200ms ease; }
.ma-template-card:hover { box-shadow: 0 20px 40px rgba(74, 61, 45, .16); transform: translateY(-3px); }
.ma-template-card:focus-visible { outline: 2px solid #d79f12; outline-offset: 3px; }
.ma-template-art { display: block; aspect-ratio: 1; overflow: hidden; background: #e8dfd3; }
.ma-template-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ma-template-name { display: block; overflow: hidden; padding: 14px 16px 16px; color: #282623; font-size: 15px; font-weight: 780; letter-spacing: -.025em; text-overflow: ellipsis; white-space: nowrap; }
.ma-template-action { margin-top: 28px; }

.ma-export { background: #fffdfa; }
.ma-export-head { display: grid; grid-template-columns: minmax(0, .9fr) minmax(240px, .58fr); gap: clamp(32px, 8vw, 118px); align-items: end; margin-bottom: 44px; }
.ma-export-head .ma-home-copy { max-width: 480px; }
.ma-export-variants { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.ma-export-variant { border: 0; border-radius: 999px; background: #f2ede5; color: #605a52; cursor: pointer; font: inherit; font-size: 12px; font-weight: 750; padding: 9px 13px; transition: background-color 180ms ease, color 180ms ease; }
.ma-export-variant[aria-pressed="true"] { background: #252525; color: #fffdfa; }
.ma-export-variant:focus-visible { outline: 2px solid #d79f12; outline-offset: 3px; }
.ma-export-pair { display: grid; grid-template-columns: minmax(220px, .58fr) 30px minmax(0, 1.42fr); gap: clamp(12px, 2vw, 28px); align-items: center; }
.ma-export-settings { position: relative; min-height: 310px; overflow: hidden; border-radius: 20px; background: #313131; box-shadow: 0 22px 44px rgba(36, 34, 31, .2); }
.ma-export-settings::before { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(10, 10, 10, .48), rgba(10, 10, 10, .1)), url("img/block-1-bg.a39576d1ec35.png") 81% 48% / cover no-repeat; content: ""; }
.ma-export-settings-label { position: absolute; right: 14px; bottom: 14px; left: 14px; border-radius: 10px; background: rgba(20, 20, 20, .78); color: #f8f3ea; font-size: 11px; font-weight: 750; letter-spacing: .05em; padding: 10px 11px; text-transform: uppercase; }
.ma-export-flow-arrow { color: #c6910d; font-size: 30px; font-weight: 400; text-align: center; }
.ma-export-tree { min-height: 310px; border-radius: 20px; background: #f2eee7; box-shadow: 0 22px 44px rgba(68, 60, 50, .1); padding: clamp(20px, 3vw, 34px); }
.ma-export-tree-head { display: flex; justify-content: space-between; gap: 12px; color: #403c37; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.ma-export-tree-path { color: #948c82; font-weight: 650; text-transform: none; }
.ma-tree-list { display: grid; gap: 9px; margin: 27px 0 0; padding: 0; list-style: none; }
.ma-tree-item { display: flex; align-items: center; gap: 10px; min-width: 0; color: #49443e; font-size: clamp(13px, 1.3vw, 16px); }
.ma-tree-icon { width: 13px; height: 10px; flex: 0 0 13px; border-radius: 2px; background: #e2b936; }
.ma-tree-item--file { padding-left: 25px; color: #716b63; }
.ma-tree-item--file .ma-tree-icon { height: 14px; border-radius: 2px; background: #c9c3ba; }
.ma-export-action { margin-top: 30px; }

.ma-pricing { background: #f4efe7; padding-top: 74px; }
.ma-pricing-band { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 36px; align-items: center; border-radius: 26px; background: #252525; color: #fffdfa; box-shadow: 0 22px 52px rgba(37, 37, 37, .18); padding: clamp(30px, 5vw, 62px); }
.ma-pricing-band .ma-home-title { max-width: 690px; color: #fffdfa; font-size: clamp(32px, 4.3vw, 58px); }
.ma-pricing-band .ma-home-copy { max-width: 650px; margin-top: 20px; color: #cbc5bc; }
.ma-pricing-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.ma-pricing-actions .ma-home-button--quiet { background: rgba(255, 255, 255, .11); color: #fffdfa; }

@media (max-width: 820px) {
  .ma-import-layout, .ma-automation-head, .ma-export-head { grid-template-columns: 1fr; }
  .ma-import-intro { position: static; }
  .ma-import-entry-bottom { align-items: flex-start; flex-direction: column; }
  .ma-format-list { justify-content: flex-start; }
  .ma-export-variants { justify-content: flex-start; }
  .ma-pricing-band { grid-template-columns: 1fr; }
  .ma-pricing-actions { justify-content: flex-start; }
  .ma-template-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ma-templates-heading { margin-bottom: 28px; }
}
@media (max-width: 560px) {
  .ma-media-placeholder, .ma-automation-video { border-radius: 14px; }
  .ma-template-card { border-radius: 14px; }
  .ma-template-name { padding: 10px 12px 12px; font-size: 13px; }
  .ma-export-pair { grid-template-columns: 1fr; }
  .ma-export-flow-arrow { transform: rotate(90deg); }
  .ma-export-settings, .ma-export-tree { min-height: 245px; }
  .ma-pricing-band { border-radius: 18px; padding: 30px 24px; }
  .ma-pricing-actions { display: grid; }
