/* ShelfSense website. Same colors and type as the app. */
:root {
  --bg: #F4F4EF; --card: #FFFFFF; --ink: #1B2A1F; --muted: #5E6B61; --line: #E3E6DE; --edge: #D5DBD0;
  --accent: #2E6B3F; --deep: #24472D; --tint: #DCEAD7; --soft: #EAF2E8; --gold: #E8C66A; --red: #A6321F;
  --radius: 22px; --max: 1120px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(38px, 6vw, 64px); font-weight: 800; }
h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.lead { font-size: clamp(18px, 2.1vw, 21px); color: #3F4B42; max-width: 60ch; }
.muted { color: var(--muted); }
section { padding-block: clamp(64px, 9vw, 112px); }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(244,244,239,.9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.logo img { width: 32px; height: 32px; border-radius: 8px; }
.nav nav { display: flex; gap: 26px; align-items: center; }
.nav nav a { color: #3F4B42; text-decoration: none; font-weight: 600; font-size: 15px; }
.nav nav a:hover { color: var(--accent); }
.nav nav a.btn, .nav nav a.btn:hover { color: #fff; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 22px; border-radius: 14px; border: none; background: var(--accent); color: #fff; font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--deep); }
.btn.ghost { background: #fff; color: var(--deep); border: 1.5px solid var(--edge); }
.nav .btn { height: 42px; padding: 0 16px; font-size: 15px; }
@media (max-width: 860px) { .nav nav a:not(.btn) { display: none; } }

/* hero */
.hero { background: var(--tint); border-radius: 0 0 40px 40px; padding-block: clamp(48px, 7vw, 88px) 0; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: end; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; padding-bottom: clamp(48px, 7vw, 96px); min-width: 0; }
.hero-phones { position: relative; height: clamp(440px, 52vw, 600px); min-width: 0; }
.hero-phones .phone { position: absolute; bottom: -40px; width: 54%; }
.hero-phones .phone.a { left: 4%; z-index: 2; transform: rotate(-4deg); }
.hero-phones .phone.b { right: 2%; bottom: -10px; transform: rotate(5deg); }
.badges { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 14px; color: #3F4B42; }
.badge { display: inline-flex; align-items: center; gap: 8px; background: #fff; border-radius: 999px; padding: 8px 14px; font-weight: 600; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding-bottom: 8px; }
  .hero-phones { height: 420px; }
  .hero-phones .phone { width: 52%; max-width: 240px; }
}

/* phone frame */
.phone { background: #111; border-radius: 38px; padding: 9px; box-shadow: 0 24px 50px rgba(27,42,31,.22); }
.phone img { border-radius: 30px; width: 100%; aspect-ratio: 390 / 664; object-fit: cover; object-position: top; }

/* forms */
.signup { display: flex; gap: 10px; flex-wrap: wrap; max-width: 520px; }
.signup input[type=email] { flex: 1 1 220px; }
.signup input[type=email], .field input, .field textarea, .field select { width: 100%; min-width: 0; height: 50px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--edge); background: #fff; font: inherit; font-size: 16px; color: var(--ink); }
.field textarea { height: 140px; padding: 12px 16px; resize: vertical; }
.signup input:focus, .field input:focus, .field textarea:focus { outline: 3px solid rgba(46,107,63,.25); border-color: var(--accent); }
.hidden { position: absolute; left: -9999px; }
.fine { font-size: 13px; color: var(--muted); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.step { background: var(--card); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.step .num { width: 36px; height: 36px; border-radius: 18px; background: var(--soft); color: var(--accent); font-weight: 800; display: flex; align-items: center; justify-content: center; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* features */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 40px; }
.feature { background: var(--card); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.feature .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--soft); display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.feature .ic svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature p { font-size: 15px; color: var(--muted); }
@media (max-width: 980px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }

/* screens */
.screens { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 28px; margin-top: 36px; scrollbar-width: thin; }
.screens figure { flex: none; width: 250px; margin: 0; scroll-snap-align: start; display: flex; flex-direction: column; gap: 12px; }
.screens figcaption { font-size: 15px; font-weight: 600; text-align: center; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 40px; max-width: 860px; }
.plan { background: var(--card); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; border: 2px solid transparent; }
.plan.best { border-color: var(--accent); }
.plan .price { display: flex; gap: 22px; flex-wrap: wrap; }
.plan .price b { font-size: 40px; font-weight: 800; letter-spacing: -.02em; }
.plan .price span { color: var(--muted); font-size: 15px; display: block; }
.plan ul { margin: 0; padding-left: 20px; color: #3F4B42; }
.plan ul li + li { margin-top: 4px; }
.pill { display: inline-block; align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--soft); color: var(--deep); border-radius: 999px; padding: 5px 10px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* ShelfSense Home */
.home-sec { background: var(--deep); color: #fff; border-radius: 40px; }
.home-sec .eyebrow { color: var(--gold); }
.home-sec .lead { color: #D6E4D3; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 44px; align-items: start; margin-top: 40px; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; min-width: 0; }
.gallery img { border-radius: 18px; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: #EEF0EA; }
.gallery img:first-child { grid-column: 1 / -1; }
.home-list { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 0; list-style: none; }
.home-list li { display: flex; gap: 12px; } .home-list b { display: block; }
.home-list span { color: #C9D8C6; font-size: 15px; }
.home-list .ck { width: 26px; height: 26px; border-radius: 13px; background: rgba(232,198,106,.18); color: var(--gold); flex: none; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; margin-top: 2px; }
.reserve { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }
.reserve .row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.reserve .row b { font-size: 22px; }
.reserve .sub b { color: var(--accent); }
.tag { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; background: #FBF0DC; color: #7A4700; border-radius: 999px; padding: 4px 9px; margin-left: 6px; vertical-align: 3px; }
.radios { display: flex; gap: 16px; flex-wrap: wrap; font-size: 15px; }
.radios label { display: flex; gap: 6px; align-items: center; }
@media (max-width: 900px) { .home-grid { grid-template-columns: minmax(0, 1fr); } }
.home-grid > * { min-width: 0; }

/* hub pillars */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pillars div { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.pillars b { font-size: 19px; color: #fff; } .pillars span { font-size: 15px; color: #C9D8C6; }
@media (max-width: 700px) { .pillars { grid-template-columns: 1fr; } }

/* faq */
.faq { max-width: 820px; margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--card); border-radius: 18px; padding: 18px 22px; }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin-top: 10px; color: #3F4B42; }

/* footer */
footer { padding-block: 40px 56px; background: var(--deep); margin-top: 56px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; font-size: 15px; color: #A9BBA6; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { color: #fff; text-decoration: none; font-weight: 600; }
footer a:hover { text-decoration: underline; }

/* text pages (privacy, terms, support) */
.doc { max-width: 760px; margin: 0 auto; padding-block: 56px 24px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 8px; }
.doc h2 { font-size: 22px; margin: 34px 0 8px; letter-spacing: -.01em; }
.doc p, .doc ul { margin: 0 0 12px; color: #2B3A2F; }
.doc ul { padding-left: 22px; }
.doc li + li { margin-top: 4px; }
.doc .eff { color: var(--muted); font-size: 15px; margin-bottom: 24px; }
.card { background: var(--card); border-radius: var(--radius); padding: 26px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; font-weight: 600; font-size: 15px; }

/* app launch signup */
.getapp { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.store { display: inline-flex; align-self: flex-start; align-items: center; gap: 10px; background: #111; color: #fff; border-radius: 12px; padding: 8px 16px 8px 12px; }
.store svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.6; }
.store small { display: block; font-size: 11px; opacity: .8; line-height: 1.1; }
.store b { display: block; font-size: 19px; line-height: 1.15; letter-spacing: -.01em; }
.getapp .signup .btn { flex: 0 0 auto; }

/* support page */
.support { padding-block: 56px 24px; }
.support-head { max-width: 640px; margin-bottom: 28px; }
.support-head h1 { font-size: clamp(34px, 5vw, 48px); margin: 8px 0 8px; }
.support-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.support-form { background: var(--card); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.support-form .field { margin: 0; }
.support-form .field input, .support-form .field select { height: 48px; }
.support-form .field textarea { height: auto; min-height: 120px; }
.support-form .btn { align-self: flex-start; }
.answers h2 { font-size: 22px; margin: 0 0 12px; }
.answers details { background: var(--card); border-radius: 14px; padding: 14px 18px; margin-bottom: 10px; }
.answers summary { font-weight: 700; cursor: pointer; }
.answers details p { margin: 8px 0 0; color: #2B3A2F; }
@media (max-width: 760px) { .support-grid { grid-template-columns: minmax(0, 1fr); } }
