/* Onirel — single stylesheet. Palette from the logo (sky blue + warm orange) and the product photo (deep teal). */
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/plus-jakarta-sans-latin-var.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  /* Two tones from the logo: sky blue (wordmark) + warm orange (dot). Darker shades only for readable text/buttons. */
  --blue: #379dce; --blue-ink: #1d6f9a; --blue-deep: #134a68; --blue-soft: #eaf5fb; --blue-mist: #f5fafd;
  --orange: #f3aa76; --orange-ink: #a4521b; --orange-soft: #fdf0e6;
  --teal: var(--blue-ink); --teal-2: var(--blue-deep); --teal-soft: var(--blue-soft);
  --ink: #0f2e40; --text: #24404f; --muted: #4d6676; --line: #d6e8f2; --bg: #ffffff; --bg-2: var(--blue-mist); --white: #fff;
  /* Fibonacci spacing + radii, golden ratio */
  --f1: 8px; --f2: 13px; --f3: 21px; --f4: 34px; --f5: 55px; --f6: 89px; --phi: 1.618;
  --radius: 21px; --radius-sm: 13px; --shadow: 0 34px 55px -34px rgba(19, 74, 104, .45);
  --display: "Plus Jakarta Sans", system-ui, sans-serif; --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px; --gutter: clamp(16px, 4vw, 34px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font: 400 1.0625rem/1.68 var(--body); color: var(--text); background: var(--bg); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-ink); text-underline-offset: 3px; }
a:hover { color: var(--teal); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, .h3, .h4 { font-family: var(--display); color: var(--ink); line-height: 1.15; margin: 0 0 .55em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
h3, .h3 { font-size: 1.2rem; font-weight: 700; }
.h4 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.center { text-align: center; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--teal); color: var(--white); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }
main:focus { outline: none; }
.icon { width: 22px; height: 22px; flex: none; }
.icon-sm { width: 18px; height: 18px; }
.icon-xs { width: 14px; height: 14px; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 60ch; }
.fine { font-size: .875rem; color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 700 .8rem/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--teal); background: var(--teal-soft); padding: 8px 12px; border-radius: 999px; margin-bottom: 18px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--f1); min-height: 50px; padding: 12px 22px; border-radius: var(--radius-sm); border: 2px solid transparent; font: 700 1rem/1.1 var(--display); text-decoration: none; cursor: pointer; transition: transform .15s, background-color .15s, color .15s, border-color .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-sm { min-height: 42px; padding: 8px 16px; font-size: .94rem; border-radius: var(--radius-sm); }
.btn-primary { background: var(--teal); color: var(--white); box-shadow: 0 10px 22px -12px rgba(8, 87, 94, .7); }
.btn-primary:hover { background: var(--teal-2); color: var(--white); }
.btn-outline { border-color: var(--teal); color: var(--teal); background: var(--white); }
.btn-outline:hover { background: var(--teal-soft); color: var(--teal); }
.btn-light { background: var(--white); color: var(--teal); }
.btn-light:hover { background: var(--blue-soft); color: var(--teal); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .55); color: var(--white); }
.btn-ghost-light:hover { border-color: var(--white); color: var(--white); background: rgba(255, 255, 255, .1); }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

/* top bar + header */
.topbar { background: var(--blue-deep); color: rgba(255, 255, 255, .92); font-size: .86rem; }
.topbar-inner { display: flex; flex-wrap: wrap; gap: 6px 22px; padding-top: 8px; padding-bottom: 8px; }
.topbar a, .topbar span { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }
.topbar a:hover { color: var(--white); text-decoration: underline; }
@media (max-width: 640px) { .topbar-loc { display: none !important; } }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.5) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--f2); min-height: 76px; }
.brand-link { display: inline-flex; }
.logo { width: 132px; height: auto; }
.menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; }
.menu-toggle .when-open, .menu-toggle[aria-expanded="true"] .when-closed { display: none; }
.menu-toggle[aria-expanded="true"] .when-open { display: inline-flex; }
.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 22px; max-height: calc(100vh - 76px); overflow-y: auto; box-shadow: var(--shadow); }
.site-nav.open { display: block; }
html:not(.js) .site-nav { display: block; position: static; box-shadow: none; padding: 0 0 12px; border: 0; }
html:not(.js) .menu-toggle { display: none; }
html:not(.js) .header-inner { flex-wrap: wrap; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav li a { display: flex; align-items: center; gap: var(--f2); padding: 13px 6px; color: var(--ink); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); }
.site-nav li a .icon { color: var(--blue); }
.site-nav li a:hover, .site-nav li a[aria-current="page"] { color: var(--teal); }
.site-nav .nav-cta { margin-top: 16px; width: 100%; }
@media (min-width: 1040px) {
  .menu-toggle { display: none; }
  .site-nav, html:not(.js) .site-nav { display: flex; align-items: center; gap: var(--f3); position: static; padding: 0; background: none; border: 0; box-shadow: none; max-height: none; overflow: visible; }
  .site-nav ul { display: flex; gap: 2px; }
  .site-nav li a { padding: 9px 12px; border: 0; border-radius: 10px; font-size: .95rem; }
  .site-nav li a .icon { display: none; }
  .site-nav li a[aria-current="page"] { background: var(--teal-soft); }
  .site-nav .nav-cta { margin: 0; width: auto; }
}

/* hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(1000px 520px at 85% 10%, var(--blue-soft), transparent 60%), linear-gradient(180deg, #fff, var(--bg-2)); }
.hero-grid { display: grid; gap: var(--f4); align-items: center; padding-top: clamp(40px, 7vw, 89px); padding-bottom: clamp(55px, 8vw, 89px); }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.618fr 1fr; gap: var(--f6); } }
.hero h1 { max-width: 15ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--f2); margin: 26px 0 28px; }
.center-actions { justify-content: center; }
.hero-points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--f1) 18px; color: var(--muted); font-weight: 600; font-size: .95rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .icon { color: var(--blue); }
.hero-art { position: relative; justify-self: center; width: min(100%, 420px); }
.hero-card { border-radius: var(--f4); overflow: hidden; background: var(--blue-deep); box-shadow: var(--shadow), 0 0 0 10px rgba(55, 157, 206, .12); }
.hero-card img { width: 100%; height: auto; }
.hero-dot { position: absolute; top: -14px; right: -14px; width: 54px; height: 54px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 10px rgba(243, 170, 118, .25); }

/* sections */
.section { padding: clamp(55px, 8vw, 89px) 0; }
.section-tint { background: var(--bg-2); }
.section-head { max-width: 700px; margin-bottom: var(--f4); }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head p:last-child { color: var(--muted); }
.more-link { margin: 26px 0 0; }
.more-link a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }
.split { display: grid; gap: var(--f4); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.618fr 1fr; gap: var(--f5); } .split-rev { grid-template-columns: 1fr 1.618fr; } }
.split-top { align-items: start; }
.wide-img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* uses */
.uses { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--f2); grid-template-columns: 1fr; }
@media (min-width: 600px) { .uses { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .uses { grid-template-columns: repeat(3, 1fr); } }
.uses li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--f3); transition: border-color .15s, transform .15s, box-shadow .15s; scroll-margin-top: 110px; }
.uses li:hover { border-color: var(--blue); transform: translateY(-3px); box-shadow: var(--shadow); }
.uses li > .icon { width: 48px; height: 48px; padding: 11px; border-radius: var(--radius-sm); background: var(--blue-soft); color: var(--blue-ink); margin-bottom: 14px; }
.uses li:nth-child(even) > .icon { background: var(--orange-soft); color: var(--orange-ink); }
.uses h3 { margin-bottom: 6px; }
.uses p { margin: 0; color: var(--muted); font-size: .97rem; }
.uses-large li { padding: var(--f4); }

/* pillars */
.pillars { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--f2); }
@media (min-width: 900px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillars li { display: flex; gap: var(--f2); align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--f3); }
.pillars li > .icon { width: 44px; height: 44px; padding: 10px; border-radius: var(--radius-sm); background: var(--blue-ink); color: var(--white); }
.pillars li:nth-child(even) > .icon { background: var(--orange); color: var(--ink); }
.pillars h3 { margin-bottom: 4px; }
.pillars p { margin: 0; color: var(--muted); font-size: .97rem; }

/* product */
.product-media { max-width: 440px; justify-self: center; width: 100%; }
.checks { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: var(--f1); }
.checks li { display: flex; gap: var(--f1); align-items: flex-start; }
.checks .icon { color: var(--teal); background: var(--teal-soft); border-radius: 50%; padding: 3px; margin-top: 2px; }
.note { display: flex; gap: var(--f1); background: #fdf3ea; border: 1px solid #f6d3b8; color: #6b3a14; border-radius: var(--radius-sm); padding: 14px 16px; }
.note p { margin: 0; }
.note .icon { color: var(--orange-ink); margin-top: 3px; }

/* faq */
.faq { display: grid; gap: var(--f2); }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: var(--f2); padding: 18px 20px; font-weight: 700; font-family: var(--display); color: var(--ink); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--blue-ink); transition: transform .2s; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--muted); }

/* cta */
.cta-band { background: linear-gradient(120deg, var(--blue-deep), var(--blue-ink) 61.8%, var(--blue)); color: var(--white); position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; background: var(--orange); opacity: .9; display: none; }
@media (min-width: 900px) { .cta-band::after { display: block; } }
.cta-inner { position: relative; z-index: 1; display: grid; gap: 22px; padding-top: var(--f5); padding-bottom: var(--f5); align-items: center; }
.cta-band h2 { color: var(--white); margin-bottom: 8px; max-width: 22ch; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .9); }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--f2); }
@media (min-width: 900px) { .cta-inner { grid-template-columns: 1.618fr 1fr; } .cta-actions { justify-content: flex-end; padding-right: 60px; } }

/* page head */
.page-head { background: radial-gradient(800px 400px at 90% 0%, var(--blue-soft), transparent 60%), var(--bg-2); border-bottom: 1px solid var(--line); padding: 30px 0 55px; }
.page-head-sm { padding-bottom: 34px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 22px; font-size: .88rem; color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; gap: 6px; }

/* prose */
.prose h2 { margin-top: 1.3em; font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .45em; }

/* contact + forms */
.contact-grid { display: grid; gap: var(--f3); align-items: start; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1.618fr 1fr; } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 34px); }
.contact-card { background: var(--blue-deep); border-color: var(--blue-deep); color: rgba(255, 255, 255, .9); }
.contact-card h2 { color: var(--white); }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--f3); }
.contact-list li { display: flex; gap: 14px; }
.contact-list .icon { color: var(--orange); margin-top: 2px; }
.contact-list .label { display: block; font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.contact-card a { color: var(--white); overflow-wrap: anywhere; }
.form-grid { display: grid; gap: var(--f3); }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .span-2 { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.req { color: #b42318; }
.opt { color: var(--muted); font-weight: 400; font-size: .9rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid #b9cfd7; border-radius: var(--radius-sm); background: var(--white); font: inherit; color: var(--text); }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); outline: 3px solid rgba(55, 157, 206, .35); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: #b42318; background: #fff7f6; }
.error { color: #b42318; font-weight: 600; font-size: .92rem; margin: 6px 0 0; }
.hint { color: var(--muted); font-size: .9rem; margin: 6px 0 0; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.form-actions .fine { margin: 0; }
.alert { padding: 14px 16px; border-radius: var(--radius-sm); font-weight: 600; }
.alert-success { background: #e7f6ec; color: #135a2c; border: 1px solid #9fd8b2; }
.alert-error { background: #fdecec; color: #8e1117; border: 1px solid #f2b0b3; }

/* footer */
.site-footer { background: var(--blue-deep); color: rgba(255, 255, 255, .78); }
.footer-grid { display: grid; gap: 34px; padding-top: 55px; padding-bottom: 34px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1.4fr 1fr; } }
.footer-logo { background: var(--white); border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 16px; }
.footer-logo .logo { width: 120px; }
.footer-about p { max-width: 40ch; }
.footer-about .fine { color: rgba(255, 255, 255, .7); }
.footer-about .fine a { color: var(--white); }
.footer-h { font-family: var(--display); font-size: 1rem; color: var(--white); margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--f1); }
.footer-col a, .footer-col .as-link { display: inline-flex; align-items: flex-start; gap: var(--f1); color: rgba(255, 255, 255, .82); text-decoration: none; overflow-wrap: anywhere; }
.footer-col a:hover { color: var(--orange); }
.footer-col .icon { margin-top: 3px; color: var(--blue); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 18px; padding-bottom: 18px; font-size: .88rem; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: rgba(255, 255, 255, .82); }

/* restored sections */
.muted { color: var(--muted); }
.eyebrow-light { background: rgba(255, 255, 255, .14); color: var(--white); }
.contact-card p { color: rgba(255, 255, 255, .88); }
.contact-card .btn-light, .contact-card .btn-light:hover { margin-top: 6px; color: var(--teal); }
.section-features { padding-top: 0; margin-top: -34px; position: relative; z-index: 2; }
.section-features .pillars li { box-shadow: var(--shadow); }
.pillars-stack { grid-template-columns: 1fr !important; }
.help-box { display: flex; flex-wrap: wrap; align-items: center; gap: var(--f2) 20px; margin-top: 28px; padding: var(--f3); border-radius: var(--radius); background: var(--blue-soft); border: 1px solid var(--line); }
.help-box > .icon { width: 44px; height: 44px; padding: 10px; border-radius: var(--radius-sm); background: var(--white); color: var(--blue-ink); }
.help-box > div { flex: 1; min-width: 200px; }
.help-box h2 { margin-bottom: 4px; }
.help-box p { margin: 0; color: var(--muted); }

/* error pages */
.error-page { padding: clamp(55px, 10vw, 110px) 0; }
.error-code { font: 800 clamp(4.5rem, 16vw, 8rem)/1 var(--display); color: var(--blue); margin: 0 0 10px; }
.error-page .lead { margin: 0 auto; }

@media (max-width: 400px) { .btn { width: 100%; } .logo { width: 112px; } }
@media print { .topbar, .site-header, .cta-band, .site-footer { display: none; } }

/* ---- orange (second tone) actions ---- */
.btn-accent { background: var(--orange); color: var(--ink); box-shadow: 0 13px 21px -13px rgba(164, 82, 27, .7); }
.btn-accent:hover { background: #f6bb90; color: var(--ink); }
.nav-cta.btn-primary { background: var(--orange); color: var(--ink); box-shadow: none; }
.nav-cta.btn-primary:hover { background: #f6bb90; color: var(--ink); }

/* ---- golden spiral motif (Fibonacci squares 89/55/34/21/13/8 in a 144x89 golden rectangle) ---- */
.fib { position: absolute; pointer-events: none; color: var(--blue); opacity: .22; }
.fib .sq { fill: none; stroke: currentColor; stroke-width: .6; }
.fib .arc { fill: none; stroke: var(--orange); stroke-width: 1.4; stroke-linecap: round; }
.hero { position: relative; }
.hero .fib { width: min(61.8vw, 890px); right: -13%; top: -21%; }
.page-head { position: relative; overflow: hidden; }
.page-head .fib { width: 550px; right: -89px; bottom: -144px; opacity: .3; }
.hero-grid, .page-head .container { position: relative; z-index: 1; }
@media (max-width: 700px) { .hero .fib { width: 144vw; right: -55%; top: -8%; opacity: .12; } .page-head .fib { width: 340px; right: -144px; bottom: -89px; } }
