:root {
  --ink: #17201d;
  --muted: #5d6863;
  --paper: #f7f8f5;
  --white: #ffffff;
  --line: #dfe4df;
  --green: #0d6b50;
  --green-dark: #084a38;
  --green-pale: #e7f1ec;
  --blue: #2864db;
  --blue-pale: #eaf0ff;
  --coral: #b94637;
  --yellow: #f1bf4a;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 10px 14px; background: var(--ink); color: white; }
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(23,32,29,.09);
  background: rgba(247,248,245,.94);
  backdrop-filter: blur(16px);
}
.nav-row { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 760; text-decoration: none; }
.brand-mark { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 7px; color: white; background: var(--green); font-size: 14px; }
.site-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.site-nav a { color: #37413d; font-size: 14px; font-weight: 650; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--green); }
.nav-contact { padding: 9px 14px; border: 1px solid var(--ink); border-radius: 6px; }
.menu-button { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 6px; background: transparent; cursor: pointer; }
.menu-button span, .menu-button::before, .menu-button::after { display: block; width: 18px; height: 2px; margin: 4px auto; content: ""; background: var(--ink); }

.hero { padding: 78px 0 74px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr); align-items: center; gap: 68px; }
.eyebrow { margin: 0 0 15px; color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3, p { text-wrap: pretty; }
h1 { max-width: 760px; margin: 0; font-size: clamp(48px, 6.4vw, 80px); line-height: 1.01; letter-spacing: 0; }
h2 { margin: 0; font-size: clamp(32px, 4.5vw, 50px); line-height: 1.08; letter-spacing: 0; }
h3 { margin: 0; font-size: 22px; line-height: 1.25; letter-spacing: 0; }
.lead { max-width: 680px; margin: 25px 0 0; color: var(--muted); font-size: 20px; line-height: 1.55; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 9px; padding: 11px 18px; border: 1px solid var(--green); border-radius: 6px; background: var(--green); color: white; font-size: 14px; font-weight: 750; text-decoration: none; }
.button:hover { background: var(--green-dark); }
.button.secondary { border-color: #bdc5bf; background: white; color: var(--ink); }
.button.secondary:hover { border-color: var(--ink); }
.status-note { display: flex; gap: 11px; align-items: flex-start; margin-top: 24px; color: var(--muted); font-size: 14px; }
.status-dot { width: 8px; height: 8px; flex: 0 0 auto; margin-top: 7px; border-radius: 50%; background: var(--yellow); }

.product-stack { position: relative; height: 520px; min-height: 520px; }
.app-preview {
  position: absolute;
  width: auto;
  height: 470px;
  aspect-ratio: 1206 / 2622;
  overflow: hidden;
  border: 1px solid rgba(23,32,29,.13);
  border-radius: 22px;
  background: white;
  box-shadow: 0 24px 55px rgba(29,48,40,.18), 0 2px 8px rgba(29,48,40,.1);
}
.app-preview::after { position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 1px 0 rgba(255,255,255,.75); content: ""; pointer-events: none; }
.app-preview img { width: 100%; height: 100%; object-fit: cover; }
.app-preview:first-child { top: 10px; left: 5%; transform: rotate(-2deg); }
.app-preview:last-child { top: 40px; right: 5%; transform: rotate(2deg); }
.preview-label { position: absolute; z-index: 2; right: 11px; bottom: 11px; padding: 6px 9px; border: 1px solid rgba(23,32,29,.08); border-radius: 5px; background: rgba(255,255,255,.94); box-shadow: 0 4px 12px rgba(23,32,29,.08); font-size: 11px; font-weight: 800; }

.trust-strip { border-block: 1px solid var(--line); background: white; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 24px 22px; border-left: 1px solid var(--line); }
.trust-item:first-child { border-left: 0; }
.trust-item strong { display: block; font-size: 15px; }
.trust-item span { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; }

.section { padding: 94px 0; }
.section.white { background: white; }
.section.dark { background: #16231e; color: white; }
.section-head { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: end; margin-bottom: 46px; }
.section-head p { max-width: 630px; margin: 0; color: var(--muted); font-size: 18px; }
.section.dark .section-head p { color: #bec9c3; }
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.product-card { display: grid; grid-template-rows: auto 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: white; }
.product-visual { height: 390px; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 26px; background: var(--blue-pale); }
.product-card.storalyse .product-visual { background: var(--green-pale); }
.product-visual img {
  width: auto;
  height: 338px;
  max-width: 100%;
  aspect-ratio: 1206 / 2622;
  object-fit: contain;
  border: 1px solid rgba(23,32,29,.1);
  border-radius: 18px;
  box-shadow: 0 18px 38px rgba(23,32,29,.16), 0 2px 6px rgba(23,32,29,.08);
}
.product-copy { padding: 30px; }
.product-meta { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 14px; color: var(--muted); font-size: 13px; font-weight: 700; text-transform: uppercase; }
.product-copy p { margin: 12px 0 20px; color: var(--muted); }
.text-link { color: var(--green); font-size: 14px; font-weight: 800; text-decoration-thickness: 1px; text-underline-offset: 4px; }

.roadmap-band { padding: 58px 0; border-top: 1px solid #d7e4de; background: var(--green-pale); }
.roadmap-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 70px; align-items: center; }
.roadmap-grid h2 { max-width: 520px; font-size: clamp(30px, 3.5vw, 44px); }
.roadmap-copy { max-width: 650px; }
.roadmap-copy p { margin: 0; color: #42534b; font-size: 18px; }
.roadmap-note { display: block; margin-top: 16px; color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

.model-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: start; }
.model-copy p { color: #bec9c3; font-size: 18px; }
.fact-list { margin: 28px 0 0; padding: 0; list-style: none; border-top: 1px solid #3a4842; }
.fact-list li { display: grid; grid-template-columns: 145px 1fr; gap: 18px; padding: 17px 0; border-bottom: 1px solid #3a4842; }
.fact-list strong { color: #92d4b8; font-size: 13px; text-transform: uppercase; }
.fact-list span { color: #edf3ef; }
.use-panel { padding: 34px; border-radius: 8px; background: #25332d; }
.use-panel p { margin: 12px 0 0; color: #c6d0ca; }
.use-panel .mini-label { color: #92d4b8; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.principle { min-height: 240px; padding: 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.principle-number { display: block; margin-bottom: 55px; color: var(--coral); font-size: 13px; font-weight: 800; }
.principle p { color: var(--muted); }

.cta-band { padding: 65px 0; background: #f0c85d; }
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta-row h2 { max-width: 690px; }

.site-footer { padding: 58px 0 28px; background: #0f1915; color: white; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 45px; }
.footer-summary { max-width: 360px; margin-top: 16px; color: #aebbb5; }
.footer-column h3 { margin-bottom: 15px; color: #73847c; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.footer-column a { display: block; width: fit-content; margin: 9px 0; color: #dfe7e3; font-size: 14px; text-decoration: none; }
.footer-column a:hover { color: white; text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 48px; padding-top: 22px; border-top: 1px solid #29352f; color: #88978f; font-size: 12px; }

/* Product pages */
.product-hero { padding: 68px 0 0; overflow: hidden; }
.product-hero-grid { display: grid; grid-template-columns: 1fr 440px; gap: 70px; align-items: center; }
.product-title-row { display: flex; gap: 16px; align-items: center; }
.app-icon { width: 72px; height: 72px; border-radius: 17px; box-shadow: 0 10px 24px rgba(23,32,29,.14); }
.product-title-row h1 { font-size: clamp(48px, 6vw, 76px); }
.product-hero .lead { font-size: 19px; }
.availability { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 5px; background: white; color: var(--muted); font-size: 13px; font-weight: 700; }
.device-shot { max-height: 660px; object-fit: contain; object-position: bottom center; filter: drop-shadow(0 24px 34px rgba(23,32,29,.15)); }
.feature-band { background: white; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.feature { min-height: 245px; padding: 30px; background: white; }
.feature-icon { width: 40px; height: 40px; display: grid; place-items: center; margin-bottom: 35px; border-radius: 7px; background: var(--blue-pale); color: var(--blue); font-size: 18px; font-weight: 800; }
.storalyse-theme .feature-icon { background: var(--green-pale); color: var(--green); }
.feature p { margin-bottom: 0; color: var(--muted); }
.workflow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.workflow-step { position: relative; min-height: 200px; padding: 28px; border: 1px solid var(--line); border-radius: 8px; background: white; counter-increment: step; }
.workflow-step::before { display: block; margin-bottom: 38px; color: var(--green); content: "0" counter(step); font-size: 13px; font-weight: 850; }
.workflow-step p { color: var(--muted); }
.carousel { position: relative; }
.carousel-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.carousel-label { color: var(--muted); font-size: 13px; font-weight: 750; }
.carousel-actions { display: flex; gap: 8px; }
.carousel-button { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--ink); cursor: pointer; font-size: 19px; transition: border-color .18s ease, background .18s ease, opacity .18s ease; }
.carousel-button:hover { border-color: #9eaaa4; background: var(--paper); }
.carousel-button:disabled { opacity: .34; cursor: default; }
.screenshots { display: flex; gap: 20px; align-items: stretch; overflow-x: auto; padding: 2px 1px 22px; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-inline: contain; }
.screenshots::-webkit-scrollbar { display: none; }
.screenshot-item { flex: 0 0 min(54%, 520px); overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); scroll-snap-align: start; }
.screenshot-stage { height: 440px; display: flex; align-items: center; justify-content: center; padding: 26px; background: #f0f3f8; }
.storalyse-theme .screenshot-stage { background: #edf4f0; }
.screenshot-stage img { width: auto; height: 388px; max-width: 100%; aspect-ratio: 1206 / 2622; object-fit: contain; border: 1px solid rgba(23,32,29,.1); border-radius: 18px; box-shadow: 0 16px 34px rgba(23,32,29,.14), 0 2px 6px rgba(23,32,29,.08); }
.screenshot-copy { min-height: 150px; padding: 23px 24px 25px; border-top: 1px solid var(--line); background: white; }
.screenshot-count { display: block; margin-bottom: 9px; color: var(--green); font-size: 11px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.screenshot-item h3 { font-size: 18px; }
.screenshot-item p { margin: 7px 0 0; color: var(--muted); font-size: 14px; }
.carousel-dots { display: flex; justify-content: center; gap: 7px; min-height: 10px; margin-top: 3px; }
.carousel-dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: #c8cfcb; cursor: pointer; transition: width .18s ease, border-radius .18s ease, background .18s ease; }
.carousel-dot[aria-current="true"] { width: 24px; border-radius: 6px; background: var(--green); }
.privacy-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 55px; padding: 48px; border-radius: 8px; background: #14231d; color: white; }
.privacy-panel p { color: #b9c7c0; }
.check-list { margin: 0; padding: 0; list-style: none; }
.check-list li { padding: 14px 0 14px 28px; border-bottom: 1px solid #34423c; position: relative; }
.check-list li::before { position: absolute; left: 0; color: #7fd2ae; content: "\2713"; font-weight: 900; }
.disclosure { margin-top: 24px; padding: 16px 18px; border-left: 3px solid var(--yellow); background: #fff9e8; color: #5c4a1f; font-size: 14px; }

/* Policy and support */
.page-hero { padding: 72px 0 45px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(44px, 6vw, 68px); }
.page-hero p { max-width: 700px; color: var(--muted); font-size: 18px; }
.prose-layout { display: grid; grid-template-columns: 230px minmax(0, 720px); gap: 70px; padding: 60px 0 90px; }
.prose-nav { position: sticky; top: 100px; align-self: start; }
.prose-nav a { display: block; margin-bottom: 11px; color: var(--muted); font-size: 13px; text-decoration: none; }
.prose h2 { margin: 42px 0 12px; font-size: 27px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 24px 0 8px; font-size: 18px; }
.prose p, .prose li { color: #4f5a55; }
.prose a { color: var(--green); }
.prose .updated { color: var(--muted); font-size: 14px; }
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; padding: 60px 0 90px; }
.support-block { padding: 30px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.support-block p { color: var(--muted); }

@media (max-width: 900px) {
  .site-nav { position: fixed; inset: 72px 0 auto; display: none; padding: 22px 20px 28px; border-bottom: 1px solid var(--line); background: var(--paper); flex-direction: column; align-items: stretch; gap: 10px; }
  .site-nav[data-open="true"] { display: flex; }
  .site-nav a { padding: 10px 0; font-size: 16px; }
  .nav-contact { border: 0; }
  .menu-button { display: block; }
  .hero-grid, .product-hero-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 58px; }
  .product-stack { width: min(100%, 580px); margin-inline: auto; }
  .section-head { grid-template-columns: 1fr; gap: 18px; }
  .model-grid { grid-template-columns: 1fr; }
  .roadmap-grid { grid-template-columns: 1fr; gap: 18px; }
  .workflow { grid-template-columns: 1fr 1fr; }
  .product-hero-grid { gap: 36px; }
  .device-shot { max-height: 580px; margin-inline: auto; }
  .product-hero-copy { padding-bottom: 10px; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  h1 { font-size: 48px; }
  .hero { padding: 48px 0 56px; }
  .hero-grid { gap: 40px; }
  .lead { font-size: 18px; }
  .hero .product-stack { display: none; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .trust-item:nth-child(4) { border-top: 1px solid var(--line); }
  .section { padding: 68px 0; }
  .products, .principles, .feature-grid, .privacy-panel, .support-grid { grid-template-columns: 1fr; }
  .principles { border-top: 0; }
  .product-visual { height: 320px; padding: 22px; }
  .product-visual img { height: 276px; }
  .model-grid { gap: 28px; }
  .roadmap-band { padding: 46px 0; }
  .fact-list li { grid-template-columns: 1fr; gap: 3px; }
  .workflow { grid-template-columns: 1fr; }
  .workflow-step { min-height: 165px; }
  .carousel-toolbar { margin-bottom: 14px; }
  .screenshot-item { flex-basis: 88%; }
  .screenshot-stage { height: 370px; padding: 22px; }
  .screenshot-stage img { height: 326px; }
  .screenshot-copy { min-height: 158px; padding: 21px; }
  .privacy-panel { padding: 28px; gap: 22px; }
  .cta-row { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
  .product-title-row { align-items: flex-start; flex-direction: column; }
  .app-icon { width: 62px; height: 62px; }
  .prose-layout { grid-template-columns: 1fr; gap: 20px; }
  .prose-nav { position: static; display: flex; flex-wrap: wrap; gap: 10px 18px; }
  .prose-nav a { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
