/* Rosen Automation site styles. Same palette, type and spacing as the original Replit build. */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500&display=swap');

:root {
  --background: 40 20% 98%;
  --foreground: 220 14% 11%;
  --border: 220 10% 89%;
  --card: 40 25% 99.5%;
  --secondary: 40 12% 94%;
  --muted-foreground: 220 7% 44%;
  --accent: 218 72% 50%;
  --accent-foreground: 40 30% 99%;
  --destructive: 2 64% 48%;
  --input: 220 10% 85%;
  --font-sans: 'Geist', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; border-color: hsl(var(--border)); }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; display: flex; flex-direction: column;
  font-family: var(--font-sans); background: hsl(var(--background)); color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased; font-feature-settings: "ss01", "cv11"; letter-spacing: -0.005em; line-height: 1.5;
}
main { flex: 1; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: hsl(218 72% 50% / 0.16); }
section[id] { scroll-margin-top: 80px; }
:focus-visible { outline: 2px solid hsl(var(--accent)); outline-offset: 2px; }

.wrap { max-width: 72rem; margin: 0 auto; padding-left: 1.25rem; padding-right: 1.25rem; }
@media (min-width: 640px) { .wrap { padding-left: 2rem; padding-right: 2rem; } }
.narrow { max-width: 48rem; }
.muted { color: hsl(var(--muted-foreground)); }
.border-t { border-top: 1px solid hsl(var(--border)); }
.display { letter-spacing: -0.045em; line-height: 0.98; font-weight: 600; }
.eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: hsl(var(--muted-foreground)); }
.mono { font-family: var(--font-mono); }
.dot-grid { background-image: radial-gradient(hsl(220 10% 70% / 0.45) 1px, transparent 1px); background-size: 22px 22px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; height: 3rem; padding: 0 1.5rem; border-radius: 999px; font-size: 15px; font-weight: 500; border: 1px solid transparent; cursor: pointer; font-family: inherit; transition: transform .2s, border-color .2s, opacity .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-dark { background: hsl(var(--foreground)); color: hsl(var(--background)); }
.btn-light { background: hsl(var(--card)); border-color: hsl(var(--border)); color: hsl(var(--foreground)); }
.btn-light:hover { border-color: hsl(var(--foreground) / .3); }
.btn-sm { height: 2.25rem; padding: 0 1rem; font-size: 13px; }
.btn[disabled] { opacity: .4; transform: none; cursor: not-allowed; }
.dot { height: 6px; width: 6px; border-radius: 999px; background: hsl(var(--accent)); display: inline-block; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: background-color .3s, border-color .3s; }
.site-header.scrolled, .site-header.open { background: hsl(var(--background) / .8); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); border-color: hsl(var(--border)); }
.site-header .bar { height: 4rem; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: .625rem; font-weight: 600; letter-spacing: .18em; font-size: 13px; }
.logo .ai { color: hsl(var(--muted-foreground)); font-weight: 500; }
.nav { display: none; gap: .25rem; }
.nav a { padding: .5rem .875rem; font-size: 13.5px; color: hsl(var(--muted-foreground)); border-radius: 999px; transition: color .2s; }
.nav a:hover { color: hsl(var(--foreground)); }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.header-cta { display: none; }
.menu-btn { height: 2.25rem; width: 2.25rem; display: grid; place-items: center; border-radius: 999px; border: 1px solid hsl(var(--border)); background: hsl(var(--card)); cursor: pointer; color: inherit; }
.mobile-nav { display: none; border-top: 1px solid hsl(var(--border)); padding: .5rem 1.25rem 1.25rem; }
.site-header.open .mobile-nav { display: block; }
.mobile-nav a.row { display: flex; justify-content: space-between; padding: .875rem 0; border-bottom: 1px solid hsl(var(--border)); font-size: 15px; }
.mobile-nav .btn { width: 100%; margin-top: 1rem; height: 2.75rem; font-size: 14px; }
@media (min-width: 640px) { .header-cta { display: inline-flex; } }
@media (min-width: 768px) { .nav { display: flex; } .menu-btn, .mobile-nav, .site-header.open .mobile-nav { display: none; } }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero .bg { position: absolute; inset: 0; opacity: .6; -webkit-mask-image: radial-gradient(ellipse at 70% 40%, black, transparent 65%); mask-image: radial-gradient(ellipse at 70% 40%, black, transparent 65%); }
.hero .grid { position: relative; display: grid; gap: 3.5rem; align-items: center; padding-top: 5rem; padding-bottom: 6rem; }
.pill { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid hsl(var(--border)); background: hsl(var(--card) / .7); border-radius: 999px; padding: .375rem .75rem; font-size: 12px; color: hsl(var(--muted-foreground)); }
.hero h1 { margin-top: 1.75rem; font-size: clamp(3rem, 8.4vw, 6.4rem); }
.hero h1 .soft { color: hsl(var(--muted-foreground) / .7); }
.hero .lede { margin-top: 1.75rem; max-width: 32rem; font-size: 1.125rem; color: hsl(var(--muted-foreground)); line-height: 1.65; }
.hero .ctas { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.hero .art { display: none; }
@media (min-width: 640px) { .hero .grid { padding-top: 7rem; padding-bottom: 9rem; } .hero .lede { font-size: 1.25rem; } .hero .art { display: block; } }
@media (min-width: 1024px) { .hero .grid { grid-template-columns: 1.25fr 1fr; } }
@keyframes flow { to { stroke-dashoffset: -240; } }
.flow-line { stroke-dasharray: 3 9; animation: flow 9s linear infinite; }
@keyframes pulse-ring { 0% { transform: scale(1); opacity: .5 } 100% { transform: scale(2.4); opacity: 0 } }
.pulse-ring { transform-box: fill-box; transform-origin: center; animation: pulse-ring 2.6s ease-out infinite; }

/* Sections */
.section { padding-top: 6rem; padding-bottom: 6rem; }
@media (min-width: 640px) { .section { padding-top: 8rem; padding-bottom: 8rem; } }
.section-head { max-width: 42rem; }
.section-head h2 { margin-top: 1rem; font-size: clamp(2.1rem, 5vw, 3.6rem); }
.section-head .sub { margin-top: 1.25rem; font-size: 1.125rem; color: hsl(var(--muted-foreground)); }

/* About */
.about { display: grid; gap: 2.5rem; align-items: center; padding-top: 5rem; padding-bottom: 5rem; }
.about figure { margin: 0 auto; width: 100%; max-width: 280px; }
.about img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 1rem; border: 1px solid hsl(var(--border)); }
.about h2 { margin-top: 1rem; font-size: clamp(2.25rem, 4vw, 3.5rem); line-height: 1.08; }
.about .story { margin-top: 1.75rem; font-size: 16px; line-height: 1.8; color: hsl(var(--muted-foreground)); }
.about .story p + p { margin-top: 1.25rem; }
.about .btn { margin-top: 2rem; }
@media (min-width: 640px) { .about { padding-top: 7rem; padding-bottom: 7rem; gap: 3.5rem; } .about figure { max-width: 360px; } .about .story { font-size: 17px; } }
@media (min-width: 1024px) { .about { grid-template-columns: .85fr 1.15fr; gap: 5rem; } .about figure { max-width: none; } }

/* Services */
.services { margin-top: 4rem; display: grid; border-top: 1px solid hsl(var(--border)); border-bottom: 1px solid hsl(var(--border)); }
.service { padding: 2.5rem 1.5rem; display: flex; flex-direction: column; }
.service + .service { border-top: 1px solid hsl(var(--border)); }
.service .top { display: flex; justify-content: space-between; align-items: center; }
.service .top svg { color: hsl(var(--foreground)); transition: color .2s; }
.service:hover .top svg { color: hsl(var(--accent)); }
.service h3 { margin-top: 2rem; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; }
.service p { margin-top: .75rem; flex: 1; font-size: 15px; color: hsl(var(--muted-foreground)); line-height: 1.65; }
.service ul { margin-top: 1.75rem; display: grid; gap: .625rem; }
.service li { display: flex; gap: .625rem; font-size: 14px; align-items: flex-start; }
.service li svg { margin-top: 3px; flex-shrink: 0; color: hsl(var(--accent)); }
@media (min-width: 640px) { .service { padding: 2.5rem 2rem; } }
@media (min-width: 1024px) { .services { grid-template-columns: repeat(3, 1fr); } .service + .service { border-top: 0; border-left: 1px solid hsl(var(--border)); } .service h3 { min-height: 3.5rem; } .service ul { min-height: 7rem; } }

/* Text Reece */
.text-card { margin-top: 3.5rem; display: grid; gap: 2rem; align-items: center; border: 1px solid hsl(var(--border)); background: hsl(var(--card)); border-radius: 22px; padding: 1.75rem; box-shadow: 0 30px 60px -30px hsl(220 30% 20% / .18); }
.text-card .number { font-size: clamp(2rem, 6vw, 3.2rem); font-weight: 600; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.text-card .disclosure { margin-top: 1rem; font-size: 12.5px; line-height: 1.6; color: hsl(var(--muted-foreground)); max-width: 34rem; }
.text-card .disclosure a { color: hsl(var(--foreground)); text-decoration: underline; text-underline-offset: 2px; }
.text-card .actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (min-width: 640px) { .text-card { padding: 2.5rem; } }
@media (min-width: 1024px) { .text-card { grid-template-columns: 1.4fr 1fr; } .text-card .actions { justify-content: flex-end; } }

/* Demo call */
.call-grid { margin-top: 4rem; display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 1024px) { .call-grid { grid-template-columns: 1fr 1.05fr; gap: 4rem; } .call-copy { padding-top: 1.5rem; } }
.call-copy h3 { margin-top: 1rem; font-size: clamp(2rem, 4.4vw, 3.2rem); }
.call-copy .sub { margin-top: 1.25rem; font-size: 1.125rem; color: hsl(var(--muted-foreground)); max-width: 28rem; }
.call-points { margin-top: 2.25rem; display: grid; gap: 1rem; font-size: 15px; max-width: 28rem; }
.call-points li { display: flex; gap: .875rem; }
.call-points .mono { padding-top: .25rem; }
.call-card { box-shadow: 0 30px 60px -30px hsl(220 30% 20% / .18); }
.call-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.call-id { display: flex; align-items: center; gap: .75rem; }
.call-icon { height: 2.5rem; width: 2.5rem; border-radius: 999px; background: hsl(var(--foreground)); color: hsl(var(--background)); display: grid; place-items: center; }
.call-title { font-size: 14px; font-weight: 600; }
.badge { font-size: 11px; font-weight: 500; border-radius: 999px; padding: .25rem .625rem; border: 1px solid hsl(var(--accent) / .3); background: hsl(var(--accent) / .06); color: hsl(var(--accent)); }
.badge.mock { border-color: hsl(38 80% 35% / .3); background: hsl(38 92% 50% / .1); color: hsl(28 80% 28%); }
.badge.off { border-color: hsl(var(--destructive) / .3); background: transparent; color: hsl(var(--destructive)); }
.notice { margin-top: 1.25rem; border-radius: .75rem; padding: .875rem; font-size: 13px; border: 1px solid hsl(38 80% 35% / .25); background: hsl(38 92% 50% / .07); color: hsl(28 60% 20%); }
.phone-wrap { margin-top: .375rem; display: flex; border: 1px solid hsl(var(--border)); border-radius: .5rem; background: hsl(var(--background)); transition: border-color .2s, box-shadow .2s; }
.phone-wrap:focus-within { border-color: hsl(var(--accent)); box-shadow: 0 0 0 3px hsl(var(--accent) / .15); }
.phone-wrap .cc { display: flex; align-items: center; flex-shrink: 0; white-space: nowrap; padding: 0 .75rem 0 .875rem; border-right: 1px solid hsl(var(--border)); font-size: 14px; color: hsl(var(--muted-foreground)); }
.input.bare { margin-top: 0; border: 0; box-shadow: none; background: transparent; font-variant-numeric: tabular-nums; min-width: 0; }
.input.bare:focus { box-shadow: none; }
.result { border-radius: .75rem; padding: .875rem; font-size: 13px; border: 1px solid hsl(var(--accent) / .3); background: hsl(var(--accent) / .05); }
.result.mock { border-color: hsl(38 80% 35% / .25); background: hsl(38 92% 50% / .07); }
.result.bad { border-color: hsl(var(--destructive) / .25); background: hsl(var(--destructive) / .05); }
.result strong { display: block; font-weight: 500; }

/* How it works */
.how { background: hsl(var(--secondary) / .4); }
.steps { margin-top: 4rem; display: grid; gap: 2.5rem; }
.step { position: relative; padding-left: 2.5rem; }
.step .num { position: absolute; left: 0; top: 0; height: 1.75rem; width: 1.75rem; display: grid; place-items: center; border-radius: 999px; border: 1px solid hsl(var(--border)); background: hsl(var(--card)); font-family: var(--font-mono); font-size: 12px; }
.step h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.02em; }
.step p { margin-top: .5rem; font-size: 15px; color: hsl(var(--muted-foreground)); line-height: 1.65; max-width: 20rem; }
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .step { padding-left: 0; padding-right: 2.5rem; }
  .step .num { position: static; }
  .step .line { display: flex; align-items: center; }
  .step .line::after { content: ""; flex: 1; height: 1px; background: hsl(var(--border)); margin: 0 .75rem; }
  .step:last-child .line::after { display: none; }
  .step h3 { margin-top: 2rem; }
}

/* Forms */
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1.15fr; gap: 5rem; } }
.contact-grid h2 { margin-top: 1rem; font-size: clamp(2.1rem, 5vw, 3.6rem); }
.contact-info { margin-top: 2.5rem; display: grid; gap: .75rem; font-size: 14px; }
.contact-info div { display: flex; gap: 1rem; }
.contact-info dt { width: 3.5rem; color: hsl(var(--muted-foreground)); }
.contact-info a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: hsl(var(--border)); }
.contact-info a:hover { text-decoration-color: hsl(var(--foreground)); }
.card { position: relative; border: 1px solid hsl(var(--border)); background: hsl(var(--card)); border-radius: 22px; padding: 1.5rem; }
@media (min-width: 640px) { .card { padding: 2rem; } }
.form-grid { display: grid; gap: 1rem; border: 0; padding: 0; margin: 0; min-width: 0; }
@media (min-width: 640px) { .form-grid.two { grid-template-columns: 1fr 1fr; } .span2 { grid-column: span 2; } }
.field { display: block; }
.field .label { font-size: 12px; color: hsl(var(--muted-foreground)); }
.input, select.input, textarea.input { margin-top: .375rem; width: 100%; height: 2.75rem; border-radius: .5rem; border: 1px solid hsl(var(--border)); background: hsl(var(--background)); padding: 0 .875rem; font: inherit; font-size: 14px; color: inherit; outline: none; transition: border-color .2s, box-shadow .2s; }
textarea.input { height: auto; padding: .75rem .875rem; resize: none; }
select.input { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'><path d='m6 9 6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 2.5rem; }
.input:focus { border-color: hsl(var(--accent)); box-shadow: 0 0 0 3px hsl(var(--accent) / .15); }
.input[aria-invalid="true"] { border-color: hsl(var(--destructive)); }
.err { display: block; margin-top: .25rem; font-size: 12px; color: hsl(var(--destructive)); }
.optin label { display: flex; align-items: flex-start; gap: .75rem; cursor: pointer; }
.optin input[type=checkbox] { margin-top: 2px; height: 1rem; width: 1rem; flex-shrink: 0; accent-color: hsl(218 72% 50%); }
.optin .text { font-size: 12.5px; line-height: 1.6; }
.optin .text strong { font-weight: 500; }
.optin .text .disc { color: hsl(var(--muted-foreground)); }
.optin .links { padding-left: 1.75rem; margin-top: .625rem; font-size: 12px; color: hsl(var(--muted-foreground)); }
.optin .links a { color: hsl(var(--foreground)); text-decoration: underline; text-underline-offset: 2px; }
.small { font-size: 12px; color: hsl(var(--muted-foreground)); }
.small a { text-decoration: underline; text-underline-offset: 2px; }
.form-foot { display: flex; flex-direction: column; gap: 1rem; justify-content: space-between; padding-top: .25rem; }
@media (min-width: 640px) { .form-foot { flex-direction: row; align-items: center; } }
.alert { display: flex; gap: .625rem; border-radius: .75rem; border: 1px solid hsl(var(--destructive) / .25); background: hsl(var(--destructive) / .05); padding: .875rem; font-size: 13px; }
.success { padding: 3rem 0; text-align: center; }
.success .icon { margin: 0 auto; height: 3rem; width: 3rem; border-radius: 999px; background: hsl(var(--accent)); color: hsl(var(--accent-foreground)); display: grid; place-items: center; }
.success h3 { margin-top: 1.25rem; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; }
.success p { margin: .5rem auto 0; font-size: 14px; color: hsl(var(--muted-foreground)); max-width: 24rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile { min-height: 0; }
[hidden] { display: none !important; }

/* Legal + sub pages */
.page { padding-top: 4rem; padding-bottom: 4rem; }
@media (min-width: 640px) { .page { padding-top: 6rem; padding-bottom: 6rem; } }
.back { display: inline-flex; align-items: center; gap: .375rem; font-size: 14px; color: hsl(var(--muted-foreground)); }
.back:hover { color: hsl(var(--foreground)); }
.page h1 { margin-top: 2.5rem; font-size: clamp(2.4rem, 6vw, 4rem); }
.legal { margin-top: 3rem; display: grid; gap: 2.5rem; }
.legal section { display: grid; gap: .5rem; }
@media (min-width: 640px) { .legal section { grid-template-columns: 3rem 1fr; } }
.legal .n { font-family: var(--font-mono); font-size: 12px; color: hsl(var(--muted-foreground)); padding-top: .375rem; }
.legal h2 { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.02em; }
.legal .body { margin-top: .5rem; font-size: 15px; line-height: 1.65; color: hsl(var(--muted-foreground)); }
.legal .body ul { list-style: disc; padding-left: 1.25rem; }
.legal .body li + li { margin-top: .375rem; }
.legal .body p + p { margin-top: .75rem; }

/* Footer */
.site-footer { border-top: 1px solid hsl(var(--border)); }
.site-footer .inner { padding-top: 3.5rem; padding-bottom: 3.5rem; display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .75rem 1.75rem; font-size: 14px; }
.site-footer nav a, .site-footer .phone a { color: hsl(var(--muted-foreground)); transition: color .2s; }
.site-footer nav a:hover, .site-footer .phone a:hover { color: hsl(var(--foreground)); }
@media (min-width: 768px) { .site-footer .inner { flex-direction: row; align-items: flex-end; } }

/* Reveal on scroll (progressive: content is visible without JavaScript) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .flow-line, .pulse-ring { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}
