* { box-sizing: border-box; }
:root { --clay: #B8775D; --ink: #211B18; --paper: #F5F3EE; --white: #fff; --muted: #655B54; font-family: Zain, sans-serif; color: var(--ink); background: var(--clay); font-synthesis: none; }
html { scroll-behavior: smooth; scroll-padding-top: 30px; }
body { margin: 0; }
body.demo-expanded { overflow: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button, a { touch-action: manipulation; }
button:focus-visible, a:focus-visible, iframe:focus-visible { outline: 3px solid currentColor; outline-offset: 5px; }
button svg, a svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.skip-link { position: fixed; top: -100px; left: 20px; padding: 12px 20px; background: var(--paper); z-index: 30; }
.skip-link:focus { top: 10px; }
.wordmark { font-size: 54px; line-height: .9; font-weight: 800; letter-spacing: -3px; }
.hero { max-width: 1512px; margin: 0 auto; padding: 48px 5% 44px; display: grid; grid-template-columns: 1fr 1.08fr; gap: 4%; align-items: center; }
/* Keep the supplied pattern vivid around the demo and soften it behind the copy. */
.hero--pattern { max-width: none; padding-inline: max(5%, calc((100vw - 1360px) / 2)); background-color: #EAE7DC; background-image: linear-gradient(90deg, rgba(245, 243, 238, .96) 0%, rgba(245, 243, 238, .9) 37%, rgba(245, 243, 238, .2) 67%, rgba(245, 243, 238, 0) 100%), url('/assets/hero-mat.jpg'); background-position: center; background-size: cover; }
.hero--pattern .demo-shell:not(.is-full-view) .demo-toolbar { width: fit-content; max-width: 100%; margin-inline: auto; padding: 6px 12px; background: #F5F3EEF5; border-radius: 11px; }
.hero--pattern .demo-caption { width: fit-content; max-width: 100%; margin-inline: auto; padding: 9px 14px; background: #F5F3EEF5; border-radius: 6px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(52px, 6vw, 94px); font-weight: 800; line-height: .9; letter-spacing: -.055em; }
h1 span { display: block; white-space: normal; }
.hero-description { margin: 32px 0 26px; font-size: 25px; line-height: 1.2; max-width: 420px; }
.primary-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 26px; padding: 14px 24px; border: 0; border-radius: 5px; background: var(--ink); color: var(--paper); font-size: 21px; line-height: 1.2; }
.primary-button:hover { background: #3B2C25; }
.primary-button[aria-disabled="true"] { cursor: not-allowed; }
.download-alternatives { margin-top: 12px; font-size: 20px; line-height: 1.35; }
.download-alternatives[hidden] { display: none; }
.platform-alternative { border: 0; padding: 3px 1px; background: transparent; color: inherit; font-size: inherit; text-decoration: underline; text-underline-offset: 4px; }
.platform-alternative:hover { text-decoration-thickness: 2px; }
.platform-alternatives { white-space: normal; }
.demo-column { --device-height: clamp(530px, 65vh, 568px); min-width: 0; min-height: calc(var(--device-height) + 148px); display: flex; flex-direction: column; justify-content: center; scroll-margin-top: 22px; }
.demo-shell { position: relative; }
.demo-toolbar { display: flex; justify-content: center; align-items: center; gap: 22px; min-height: 44px; margin-top: 24px; }
.device-switch { padding: 4px; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; border-radius: 9px; background: #211B1814; }
.device-switch button { border: 0; border-radius: 6px; background: transparent; padding: 6px 13px; display: flex; align-items: center; gap: 7px; color: var(--ink); font-size: 18px; line-height: 1.2; }
.device-switch button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.device-switch button:not([aria-pressed="true"]):hover { background: #211B1814; }
.device-switch svg { width: 18px; height: 18px; }
.view-button { border: 0; background: transparent; color: inherit; font-size: 18px; display: flex; align-items: center; gap: 8px; padding: 9px 0; white-space: nowrap; }
.view-button:hover { text-decoration: underline; text-underline-offset: 4px; }
.full-view-title, .close-icon { display: none; }
.device-stage { height: var(--device-height); display: flex; align-items: center; justify-content: center; }
.device-frame { position: relative; width: calc(clamp(530px, 65vh, 568px) * .49); height: 100%; background: #151515; border: 2px solid #5B5652; padding: 8px; border-radius: 47px; box-shadow: 0 2px 0 2px #332E2A, 0 25px 40px -22px #3F201DC0; }
.device-frame::before, .device-frame::after { content: ""; position: absolute; width: 3px; background: #302B28; border-radius: 2px; left: -5px; top: 100px; height: 60px; }
.device-frame::after { left: auto; right: -5px; top: 120px; height: 80px; }
.device-screen { position: relative; overflow: hidden; border-radius: 36px; width: 100%; height: 100%; background: var(--ink); isolation: isolate; }
.device-screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.device-camera { position: absolute; width: 74px; height: 22px; border-radius: 20px; background: #101010; top: 9px; left: 50%; transform: translateX(-50%); pointer-events: none; }
.device-camera::after { content: ""; position: absolute; width: 6px; height: 6px; right: 9px; top: 8px; border-radius: 100%; background: #18202A; }
.device-base { display: none; }
.demo-shell:not(.is-full-view)[data-device="mac"] .device-stage { height: auto; }
[data-device="mac"] .device-frame { width: 95%; height: auto; aspect-ratio: 1.6; border-radius: 15px; border-color: #534E4A; padding: 10px 10px 16px; box-shadow: 0 20px 35px -26px #3F201DC0; }
[data-device="mac"] .device-frame::before, [data-device="mac"] .device-frame::after { display: none; }
[data-device="mac"] .device-screen { border-radius: 5px; }
[data-device="mac"] .device-camera { width: 45px; height: 9px; top: 0; border-radius: 0 0 5px 5px; }
[data-device="mac"] .device-camera::after { width: 3px; height: 3px; right: 21px; top: 2px; }
[data-device="mac"] .device-base { display: block; position: absolute; height: 13px; left: -5%; width: 110%; bottom: -8px; background: #9C9690; border-radius: 2px 2px 45% 45% / 2px 2px 90% 90%; box-shadow: inset 0 4px #C6C0BA; }
[data-device="mac"] .device-base::after { content: ""; position: absolute; width: 17%; height: 5px; left: 41.5%; top: 0; background: #6B655F; border-radius: 0 0 6px 6px; }
.demo-caption { text-align: center; margin-top: 12px; font-size: 17px; line-height: 1.3; }
.focus-guard { position: absolute; width: 1px; height: 1px; overflow: hidden; }
.demo-shell.is-full-view { position: fixed; inset: 0; width: 100%; height: 100dvh; z-index: 100; background: #161414; color: var(--paper); display: flex; flex-direction: column; padding: 0; }
.is-full-view .demo-toolbar { order: -1; flex: 0 0 auto; justify-content: space-between; margin: 0; padding: max(10px, env(safe-area-inset-top)) max(22px, env(safe-area-inset-right)) 10px max(22px, env(safe-area-inset-left)); }
.is-full-view .device-switch, .is-full-view .expand-icon { display: none; }
.is-full-view .full-view-title, .is-full-view .close-icon { display: block; }
.full-view-title { font-size: 23px; font-weight: 700; }
.is-full-view .device-stage { flex: 1; height: auto; min-height: 0; }
.is-full-view .device-frame { width: 100%; height: 100%; aspect-ratio: auto; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
.is-full-view .device-screen { border-radius: 0; }
.is-full-view .device-frame::before, .is-full-view .device-frame::after, .is-full-view .device-camera, .is-full-view .device-base { display: none; }
.inside-flow { background: var(--paper); padding: 92px max(5%, calc((100vw - 1360px) / 2)) 90px; }
.section-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 12%; align-items: center; margin-bottom: 52px; }
h2 { font-size: clamp(60px, 6.5vw, 96px); font-weight: 800; line-height: .92; letter-spacing: -.045em; }
.section-copy { max-width: 440px; font-size: 24px; line-height: 1.25; }
.section-copy p + p { margin-top: 20px; }
.app-figure { margin: 0; }
.app-figure img { display: block; width: 100%; height: auto; border-radius: 10px; }
.app-figure figcaption { color: var(--muted); margin-top: 15px; font-size: 18px; }
.product-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7%; margin-top: 56px; }
.product-details h3 { font-size: 30px; line-height: 1; margin-bottom: 15px; font-weight: 700; }
.product-details p { font-size: 21px; line-height: 1.3; color: var(--muted); }
.light-button:hover { background: #C88B72; }
.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; padding: 32px 5%; background: var(--clay); }
.site-footer .wordmark { font-size: 44px; }
.site-footer p { font-size: 19px; }
.footer-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 19px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 5px; }
.footer-links a:hover, .footer-links a[aria-current="page"] { text-decoration-color: currentColor; }
@media (min-width: 1500px) { .hero { gap: 6%; } }
@media (max-width: 1000px) and (min-width: 761px) { .hero { grid-template-columns: 1fr 1fr; gap: 20px; padding-inline: 4%; } h1 { font-size: clamp(64px, 8.4vw, 84px); } .hero-description { font-size: 22px; } .demo-toolbar { gap: 10px; } .device-switch button { padding-inline: 10px; } .demo-caption { font-size: 15px; } }
@media (max-width: 760px) {
  .wordmark { font-size: 48px; }
  .hero { grid-template-columns: 1fr; gap: 44px; padding: 34px 6% 46px; }
  .hero--pattern { background-image: linear-gradient(180deg, rgba(245, 243, 238, .95) 0%, rgba(245, 243, 238, .9) 35%, rgba(245, 243, 238, .15) 65%, rgba(245, 243, 238, 0) 100%), url('/assets/hero-mat.jpg'); }
  h1 { font-size: clamp(46px, 12vw, 76px); line-height: .9; }
  .hero-description { margin: 25px 0 22px; font-size: 23px; }
  .demo-column { --device-height: 550px; }
  .demo-toolbar { margin-top: 22px; gap: 22px; }
  .device-stage { height: 550px; } .device-frame { width: 270px; height: 550px; }
  .demo-caption { max-width: 330px; margin: 12px auto 0; font-size: 16px; }
  .inside-flow { padding: 58px 6%; } .section-intro { grid-template-columns: 1fr; gap: 26px; margin-bottom: 32px; }
  h2 { font-size: 68px; } .section-copy { font-size: 22px; } .section-copy p + p { margin-top: 16px; }
  .app-figure figcaption { font-size: 16px; max-width: 260px; }
  .product-details { grid-template-columns: 1fr; gap: 28px; margin-top: 38px; } .product-details h3 { margin-bottom: 9px; }
  .product-details p { max-width: 350px; }
  .site-footer { padding: 28px 6%; gap: 16px; } .site-footer p { font-size: 18px; }
  .footer-brand, .footer-links { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (max-width: 400px) {
  .hero--pattern .demo-shell:not(.is-full-view) .demo-toolbar { gap: 8px; padding-inline: 8px; }
  .hero--pattern .device-switch button { font-size: 16px; padding-inline: 8px; }
  .hero--pattern .demo-shell:not(.is-full-view) .view-button { font-size: 16px; gap: 6px; }
}
