/* Au-tomation Station landing v10
   Colours sampled from store.miftahul.com: gray #D2D2D2, black #060606, orange #EE8420, white #FCFCFC.
   Rules: orange is a fill only (black text on it). No orange text on gray. Edit tokens here only.
   Spacing scale: 4 8 12 16 24 32 48 64 96. Radii: 8 12 16 (+999 pills, device bodies). */
:root {
  --bg: #d2d2d2;
  --ink: #060606;
  --white: #fcfcfc;
  --orange: #ee8420;
  --orange-hi: #f59a40;
  --mute: #4a4a4a;
  --pill: #bababa;
  --line: rgba(6, 6, 6, 0.22);
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --shadow-media: 0 24px 48px -28px rgba(6, 6, 6, .5);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --pixel: "Silkscreen", "Press Start 2P", ui-monospace, monospace;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.final :focus-visible, .sticky :focus-visible, .plan-hot :focus-visible { outline-color: var(--white); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--white); padding: 8px 12px; border-radius: var(--r-sm); z-index: 100; }
.skip:focus { left: 8px; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: var(--gutter); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* type: H1 Geist, H2 pixel (brand signature), H3 Geist */
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 4.8vw, 4rem); line-height: .98; font-weight: 500; letter-spacing: -0.02em; text-transform: uppercase; }
h2 { font-family: var(--pixel); font-weight: 400; font-size: clamp(1.875rem, 3.6vw, 2.75rem); line-height: 1.1; letter-spacing: 0; text-transform: uppercase; margin-bottom: 32px; }
h3 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.01em; font-weight: 500; }
p { margin: 0; }
.muted { color: var(--mute); }
.fine { font-size: .875rem; line-height: 1.45; color: var(--mute); }
.tiny { font-size: .75rem; }

/* chips: one shape, two colours */
.chip { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .75rem; line-height: 1.33; letter-spacing: .06em; text-transform: uppercase; background: var(--ink); color: var(--white); border-radius: 999px; padding: 6px 12px; white-space: nowrap; }
.chip-accent { background: var(--orange); color: var(--ink); font-weight: 600; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; cursor: pointer; text-decoration: none; font-weight: 500; font-size: 1rem; line-height: 1.25; padding: 8px 16px; min-height: 44px; border-radius: var(--r-sm); white-space: nowrap; transition: transform .25s var(--ease), background-color .2s var(--ease); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-orange { background: var(--orange); color: var(--ink); }
.btn-big { min-height: 52px; padding-inline: 24px; }
.btn s { font-weight: 400; }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .6; cursor: progress; }
.link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
@media (hover: hover) and (pointer: fine) {
  .btn-orange:hover { background: var(--orange-hi); transform: translateY(-2px); }
  .btn-ink:hover { background: #222; transform: translateY(-2px); }
  .link:hover { text-decoration-thickness: 2px; }
}

/* nav: floats on desktop, plain on phones (the sticky buy bar takes over) */
.top { position: relative; z-index: 30; padding-top: 12px; }
.nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 8px 8px 8px 16px; border-radius: var(--r-lg); }
.nav .btn { justify-self: end; }
.brand { font-family: var(--pixel); text-decoration: none; font-size: 1rem; line-height: 1.1; letter-spacing: 0; display: inline-flex; align-items: center; min-height: 44px; }
.pill { display: flex; gap: 4px; background: var(--pill); border-radius: var(--r-md); padding: 4px; }
.pill a { text-decoration: none; padding: 6px 14px; border-radius: var(--r-sm); font-size: .875rem; color: var(--mute); }
.pill a.on { background: var(--ink); color: var(--white); }
@media (hover: hover) { .pill a:not(.on):hover { color: var(--ink); } }
@media (min-width: 721px) {
  .top { position: sticky; top: 0; }
  .nav { background: rgba(210, 210, 210, .78); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
}
@media (max-width: 860px) { .pill { display: none; } .nav { grid-template-columns: 1fr auto; } }
@media (max-width: 720px) { .nav .btn { display: none; } .nav { padding-inline: 0; } .top { padding-top: 4px; } }

/* hero */
.hero { padding-block: 32px 64px; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero-copy { position: relative; z-index: 3; display: grid; gap: 24px; justify-items: start; min-width: 0; }
.kicker { white-space: normal; max-width: 100%; }
.kicker .dot { width: 8px; height: 8px; background: var(--orange); border-radius: 2px; }
.sub { font-size: 1.125rem; line-height: 1.55; color: var(--mute); max-width: 44ch; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, max-content); gap: 8px 24px; font-size: .875rem; color: var(--mute); }
.ticks li::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--orange); margin-right: 8px; vertical-align: middle; }

/* devices: one material, white glass */
.devices { position: relative; z-index: 2; padding: 0 0 40px; min-width: 0; }
.laptop { margin: 0; position: relative; width: 82%; }
.laptop .screen { position: relative; padding: 10px 10px 14px; border-radius: var(--r-lg) var(--r-lg) var(--r-sm) var(--r-sm); background: linear-gradient(150deg, #ffffff 0%, #f1f2f3 45%, #dcdfe2 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.95), var(--shadow-media); }
.laptop .screen img, .laptop .screen video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; background: var(--ink); }
.laptop .base { height: 12px; margin: 0 -6%; background: linear-gradient(#eceef0, #c3c7cb); border-radius: 0 0 12px 12px; position: relative; box-shadow: 0 10px 18px -12px rgba(6,6,6,.5); }
.laptop .base::before { content: ""; position: absolute; left: 50%; top: 0; width: 16%; height: 4px; transform: translateX(-50%); background: #b9bdc1; border-radius: 0 0 6px 6px; }
.phone { margin: 0; position: absolute; right: 0; bottom: 0; width: 28%; }

.gphone { position: relative; border-radius: 40px; padding: 10px; background: linear-gradient(150deg, #ffffff 0%, #f1f2f3 40%, #dcdfe2 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.95), inset 0 -8px 18px rgba(6,6,6,.07), var(--shadow-media), 0 12px 24px -14px rgba(6,6,6,.25); }
.gphone::before { content: ""; position: absolute; right: -3px; top: 22%; width: 3px; height: 12%; border-radius: 0 3px 3px 0; background: #d4d7da; }
.gphone .screen { position: relative; border-radius: 30px; overflow: hidden; aspect-ratio: 9 / 16; background: #0d0d0d; }
.gphone .screen::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(118deg, rgba(255,255,255,.14) 0%, rgba(255,255,255,.04) 24%, rgba(255,255,255,0) 40%); }
.gphone .screen video, .gphone .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.phone.gphone { position: absolute; padding: 7px; border-radius: 28px; }
.phone.gphone .screen { border-radius: 22px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .devices { max-width: 560px; width: 100%; }
}
@media (max-width: 720px) {
  .hero { padding-block: 16px 48px; }
  .laptop { display: none; }
  .devices { padding-bottom: 0; }
  .phone.gphone { position: relative; right: auto; bottom: auto; width: 62%; max-width: 260px; margin: 0 auto; }
}
@media (max-width: 420px) {
  h1 { font-size: 2.25rem; }
  .hero-copy { gap: 16px; }
  .sub { font-size: 1rem; }
  .cta-row .btn { width: 100%; }
  .ticks { grid-template-columns: repeat(2, max-content); }
}

/* sections */
section { padding-block: 96px; }
@media (max-width: 720px) { section { padding-block: 64px; } }
.proof { padding-block: 0 48px; }
.proof[hidden] { display: none; }
.proof-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.proof-grid div { background: var(--white); border-radius: var(--r-md); padding: 16px; display: grid; gap: 4px; }
.proof-grid b { font-size: 2rem; font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
.proof-grid span { color: var(--mute); font-size: .875rem; }

/* samples */
.looks h2 { margin-bottom: 12px; }
.sec-sub { color: var(--mute); font-size: 1.125rem; line-height: 1.55; max-width: 48ch; margin-bottom: 48px; }
.row-label { margin: 0 0 16px; }
.gphones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; max-width: 920px; margin: 0 0 64px; }
.gfig { margin: 0; display: grid; gap: 16px; justify-items: start; min-width: 0; }
.gfig .gphone { width: 100%; cursor: pointer; }
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.shots img, .vtile video { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; border-radius: var(--r-md); background: var(--pill); }
.vtile { grid-column: span 2; grid-row: span 2; cursor: pointer; }
.vtile video { height: 100%; box-shadow: var(--shadow-media); }
@media (max-width: 760px) {
  .gphones, .shots { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; margin-inline: calc(-1 * var(--gutter)); padding: 8px var(--gutter) 24px; scrollbar-width: none; }
  .gphones::-webkit-scrollbar, .shots::-webkit-scrollbar { display: none; }
  .gphones { margin-bottom: 40px; }
  .gfig { flex: 0 0 64%; scroll-snap-align: center; }
  .shots > * { flex: 0 0 86%; scroll-snap-align: center; }
  .vtile { grid-column: auto; grid-row: auto; }
  .gphone { border-radius: 34px; padding: 8px; }
  .gphone .screen { border-radius: 27px; }
}
@media (hover: hover) and (pointer: fine) { .gfig .gphone { transition: transform .3s var(--ease); } .gfig .gphone:hover { transform: translateY(-6px); } }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.steps li { background: var(--white); border-radius: var(--r-lg); padding: 24px; display: grid; gap: 12px; align-content: start; }
.steps .n { font-family: var(--pixel); font-size: 2rem; line-height: 1; }
.steps h3 { font-size: 1.5rem; line-height: 1.25; letter-spacing: -0.02em; }
.steps p { color: var(--mute); }
.code { font-family: var(--mono); font-size: .875rem; line-height: 1.45; background: var(--ink); color: var(--white) !important; border-radius: var(--r-sm); padding: 8px 12px; white-space: pre-wrap; justify-self: start; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 16px; } }

.reels[hidden] { display: none; }
.reels-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.reels-grid video { width: 100%; aspect-ratio: 9 / 16; border-radius: var(--r-md); background: var(--ink); object-fit: cover; }
@media (max-width: 720px) { .reels-grid { grid-template-columns: 1fr; max-width: 320px; } }

/* pricing: rows line up across the three cards */
.plans { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 24px; align-items: stretch; }
.plan { position: relative; background: var(--white); border-radius: var(--r-lg); padding: 32px 24px 24px; display: grid; gap: 12px; grid-template-rows: auto 3em auto 1fr auto; }
.plan h3 { font-size: 1.5rem; letter-spacing: -0.02em; }
.plan .for { color: var(--mute); font-size: 1rem; line-height: 1.5; }
.plan .amt { font-family: var(--pixel); font-size: 3rem; line-height: 1; margin-top: 4px; }
.plan .amt s { font-family: var(--font); font-size: 1.25rem; color: var(--mute); margin-left: 8px; }
.plan ul { list-style: none; margin: 4px 0 12px; padding: 0; display: grid; gap: 8px; align-content: start; }
.plan ul li::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--orange); margin-right: 12px; vertical-align: middle; }
.plan .btn { width: 100%; }
.plan-hot { background: var(--ink); color: var(--white); box-shadow: var(--shadow-media); }
.plan-hot .for, .plan-hot .amt s { color: #b9b9b9; }
.plan-hot ul { color: #e6e6e6; }
.badge { position: absolute; top: -13px; left: 24px; }
.plans-note { margin: 24px auto 0; text-align: center; max-width: 60ch; }
@media (hover: hover) and (pointer: fine) { .plan { transition: transform .3s var(--ease); } .plan:hover { transform: translateY(-4px); } }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; gap: 32px; } .plan { grid-template-rows: none; } .plan-hot { order: -1; } }

/* faq */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; border-top: 1px solid var(--line); align-items: start; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 20px 4px; font-size: 1.125rem; font-weight: 500; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 1.5rem; transition: transform .25s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 4px 24px; color: var(--mute); max-width: 60ch; }

/* final + footer */
.final { background: var(--ink); color: var(--white); padding-block: 96px 0; overflow: hidden; }
.final-in { display: flex; flex-direction: column; align-items: flex-start; gap: 32px; padding-bottom: 64px; }
.final h2 { max-width: 16ch; margin: 0; font-size: clamp(2rem, 4.4vw, 3.5rem); }
.rw { display: inline; }
.giant-wrap { overflow: hidden; }
.giant { display: block; width: max-content; font-family: var(--pixel); font-weight: 700; font-size: clamp(3.4rem, 15.5vw, 14rem); line-height: .8; letter-spacing: -0.04em; color: #1d1d1d; white-space: nowrap; user-select: none; }
.giant::before { content: attr(data-t); }
.foot { background: var(--ink); color: #cfcfcf; border-top: 1px solid #1d1d1d; padding-block: 16px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px; justify-content: space-between; font-size: .875rem; }
footer .flinks { display: flex; flex-wrap: wrap; gap: 0 24px; }
footer a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
footer a[hidden] { display: none; }
footer a:hover { text-decoration: underline; }
@media (max-width: 720px) { .foot { padding-bottom: 96px; } }
.wrap > footer { border-top: 1px solid var(--line); padding-block: 32px 64px; display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; font-size: .875rem; color: var(--mute); }

/* sticky mobile bar */
.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--ink); color: var(--white); padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) var(--gutter); transform: translateY(110%); transition: transform .3s var(--ease); display: none; }
.sticky.show { transform: none; }
.sticky .in { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1160px; margin: 0 auto; }
.sticky s { color: #b9b9b9; }
@media (max-width: 720px) { .sticky { display: block; } }

/* modal */
.modal { position: fixed; inset: 0; z-index: 60; background: rgba(6,6,6,.7); display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.modal[hidden] { display: none; }
.sheet { position: relative; width: min(440px, 100%); background: var(--white); color: var(--ink); border-radius: var(--r-lg); padding: 24px; display: grid; gap: 16px; animation: sheetIn .3s var(--ease); }
@keyframes sheetIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.sheet .close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border-radius: var(--r-sm); border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--mute); }
.sheet .close:hover { color: var(--ink); }
.sheet h3 { padding-right: 40px; font-size: 1.5rem; font-weight: 500; }
.item { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 16px; }
.item .p { display: inline-flex; gap: 8px; align-items: baseline; font-size: 1rem; min-width: 0; }
.item s { color: var(--mute); }
.item b { font-weight: 600; font-size: 1.125rem; }
.field { display: grid; gap: 8px; }
.field label { font-size: .875rem; color: var(--mute); }
.field input { font: inherit; background: var(--white); color: var(--ink); border: 1px solid #767676; border-radius: var(--r-sm); padding: 12px 16px; min-height: 48px; width: 100%; }
.field input:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.field input[aria-invalid="true"] { border-color: #b3261e; }
.err { color: #b3261e; font-size: .875rem; }
.err[hidden], .hint[hidden], .notice[hidden], .codebox[hidden] { display: none; }
.hint { background: transparent; border: 1px solid var(--ink); border-radius: var(--r-sm); padding: 8px 12px; text-align: left; font-size: .875rem; cursor: pointer; min-height: 44px; }
.notice { border: 1px solid #b3261e; border-radius: var(--r-sm); padding: 8px 12px; font-size: .875rem; overflow-wrap: anywhere; }
.codebox { display: grid; gap: 8px; background: var(--bg); border: 1px dashed var(--ink); border-radius: var(--r-md); padding: 12px 16px; }
.codebox .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.codebox code { font-family: var(--mono); font-size: 1rem; letter-spacing: .08em; }
.codebox button { background: var(--white); border: 1px solid #767676; border-radius: var(--r-sm); min-height: 36px; padding: 4px 12px; cursor: pointer; font-size: .875rem; }
.codebox p { font-size: .875rem; color: var(--mute); }
.sheet .fine a { color: var(--ink); }

/* legal / utility pages */
.doc { max-width: 720px; margin: 0 auto; padding-block: 48px 96px; display: grid; gap: 24px; }
.doc h1 { font-size: clamp(2rem, 5vw, 3rem); }
.doc h2 { font-family: var(--font); font-size: 1.25rem; margin: 16px 0 0; text-transform: none; letter-spacing: -0.01em; font-weight: 500; }
.doc p, .doc li { color: var(--mute); }
.doc ul { padding-left: 24px; display: grid; gap: 8px; }
.doc .note { border: 1px solid var(--ink); border-radius: var(--r-md); padding: 16px; color: var(--ink); background: var(--white); font-size: 1rem; }
.center-page { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.center-page > div { display: grid; gap: 24px; justify-items: center; max-width: 560px; }
.lede { font-size: 1.125rem; color: var(--mute); max-width: 58ch; }
.eyebrow { font-family: var(--mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }

/* motion layer (GSAP + Lenis). Content is hidden only when JS runs and GSAP loaded. */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.js [data-r] { opacity: 0; }
.no-gsap [data-r], .js.no-gsap [data-r] { opacity: 1; }
.trail { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.trail i { position: absolute; width: 14px; height: 14px; background: var(--orange); opacity: 0; }

/* looping background, faded under the content column so it never sits behind text */
#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; opacity: .1;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 8%, rgba(0,0,0,.25) 26%, rgba(0,0,0,.25) 74%, #000 92%);
  mask-image: linear-gradient(90deg, #000 0, #000 8%, rgba(0,0,0,.25) 26%, rgba(0,0,0,.25) 74%, #000 92%); }
#bg[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-r] { opacity: 1; }
}
