/* Posturelia website. No external fonts, no scripts, light and dark mode. */
:root {
  color-scheme: light dark;
  --bg: #fbf8fb;
  --bg-alt: #f3edf4;
  --fg: #2b2330;
  --muted: #645a69;
  --card: #ffffff;
  --line: #e6dce5;
  --accent: #b3236f;
  --accent-soft: #fbe3ef;
  --blue: #2563c9;
  --green: #1f7a45;
  --green-soft: #e3f3e8;
  --shadow: 0 1px 2px rgba(40, 20, 40, .05), 0 8px 28px rgba(40, 20, 40, .07);
  --radius: 18px;
  --max: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #19161c;
    --bg-alt: #201b24;
    --fg: #f4ecf2;
    --muted: #b6a8b3;
    --card: #262029;
    --line: #3a3240;
    --accent: #f08cc2;
    --accent-soft: #3a2232;
    --blue: #8fb4ff;
    --green: #7fd3a0;
    --green-soft: #1f3327;
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 8px 28px rgba(0, 0, 0, .25);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--card); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { inset-inline-start: 8px; }

/* ------------------------------------------------------------ header -- */
.site-head { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-head .wrap { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 700; font-size: 1.2rem; letter-spacing: -.01em; }
.brand img { width: 52px; height: 52px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-sub { font-size: .78rem; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.brand-sub { white-space: nowrap; }
@media (max-width: 440px) {
  .site-head nav > a { display: none; }   /* Support stays in the footer */
  .brand { gap: 8px; }
  .brand img { width: 46px; height: 46px; }
  .brand-name { font-size: 1.1rem; }
  .brand-sub { font-size: .72rem; }
}
.site-head nav { margin-inline-start: auto; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
.site-head nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.site-head nav a:hover, .site-head nav a[aria-current] { color: var(--fg); }
/* language menu: a <details> list, no script */
.lang-menu { position: relative; background: none; box-shadow: none; border-radius: 0; margin: 0; }
.lang-menu summary {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; list-style: none;
  border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--fg);
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after { content: ""; width: 6px; height: 6px; border: solid var(--muted); border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
.lang-menu[open] summary { background: var(--bg-alt); }
.lang-menu ul {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 30; margin: 0; padding: 6px; list-style: none;
  min-width: 180px; max-height: min(70vh, 520px); overflow: auto;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
}
.site-head .lang-menu a { display: block; padding: 6px 12px; border-radius: 8px; color: var(--fg); font-size: .95rem; }
.site-head .lang-menu a:hover { background: var(--bg-alt); }
.site-head .lang-menu a[aria-current] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
@media (max-width: 560px) { .site-head nav .opt { display: none; } }

/* -------------------------------------------------------------- hero -- */
.hero { padding: 56px 0 24px; background: radial-gradient(1000px 520px at 85% 30%, var(--accent-soft), transparent 70%); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; }
.hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.hero .wrap { grid-template-columns: 1fr 1.05fr; }

/* ------------------------------------------------ hero video: desk scene -- */
.scene { margin: 0; width: 100%; }
.scene-video, .scene-still { display: block; width: 100%; height: auto; border-radius: 18px; box-shadow: var(--shadow); background: var(--bg-alt); }
.scene-still { display: none; }
.scene figcaption { margin-top: 10px; text-align: center; color: var(--muted); font-size: .92rem; }
@media (prefers-reduced-motion: reduce) {
  .scene-video { display: none; }
  .scene-still { display: block; }
}

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 12px; }
.store {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-width: 200px; padding: 10px 20px; border-radius: 14px;
  background: var(--fg); color: var(--bg); text-decoration: none; line-height: 1.25;
}
.store small { font-size: .75rem; opacity: .8; }
.store strong { font-size: 1.05rem; }
.store.soon { background: transparent; color: var(--fg); border: 1.5px dashed var(--line); }
.store.soon small { color: var(--muted); opacity: 1; }
.note { color: var(--muted); font-size: .92rem; }
@media (max-width: 820px) {
  .hero { padding-top: 32px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .scene { grid-row: 1; max-width: 520px; justify-self: center; }
}

/* ----------------------------------------------------------- sections -- */
section { padding: 72px 0; }
section.alt { background: var(--bg-alt); }
.section-intro { max-width: 46em; color: var(--muted); font-size: 1.08rem; margin-bottom: 36px; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--accent); margin-bottom: .6em; }

.states { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; list-style: none; padding: 0; margin: 0; }
.states li { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px 20px; }
.states img { width: 70%; margin: 0 auto 8px; }
.states h3 { margin-bottom: .25em; }
.states p { margin: 0; color: var(--muted); font-size: .97rem; }
@media (max-width: 860px) { .states { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .states { grid-template-columns: 1fr; } .states img { width: 55%; } }

.gallery { display: grid; gap: 10px; list-style: none; padding: 0; margin: 0 0 12px; text-align: center; }
.gallery.flowers { grid-template-columns: repeat(6, 1fr); }
.gallery.pots { grid-template-columns: repeat(8, 1fr); }
.gallery.pots img { width: 72%; margin: 0 auto; }
.gallery figcaption, .gallery span { display: block; font-size: .9rem; color: var(--muted); margin-top: 4px; }
@media (max-width: 820px) {
  .gallery.flowers { grid-template-columns: repeat(3, 1fr); }
  .gallery.pots { grid-template-columns: repeat(4, 1fr); }
}
h3.sub { margin-top: 40px; }

.dash { display: grid; grid-template-columns: 1.5fr 1fr; gap: 36px; align-items: center; }
.dash picture img { border-radius: 14px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-inline-start: 30px; margin-bottom: .7em; }
.ticks li::before {
  content: ""; position: absolute; inset-inline-start: 2px; top: .45em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--green-soft); box-shadow: inset 0 0 0 2px var(--green);
}
.ticks li::after {
  content: ""; position: absolute; inset-inline-start: 7px; top: calc(.45em + 4px); width: 4px; height: 7px;
  border: solid var(--green); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
@media (max-width: 860px) { .dash { grid-template-columns: 1fr; } }

.privacy-box {
  background: var(--card); border-radius: 24px; box-shadow: var(--shadow); padding: 40px;
  display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: start;
  border-top: 5px solid var(--green);
}
.privacy-box .shield { width: 72px; height: 72px; color: var(--green); }
.privacy-box ul { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 28px; }
@media (max-width: 760px) {
  .privacy-box { grid-template-columns: 1fr; padding: 26px 22px; gap: 12px; }
  .privacy-box ul { grid-template-columns: 1fr; }
}

/* setup steps */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps li { counter-increment: step; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 22px 20px; }
.steps li::before {
  content: counter(step); display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 12px;
  border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700;
}
.steps h3 { margin-bottom: .3em; }
.steps p { margin: 0; color: var(--muted); font-size: .97rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* privacy proof */
.proof { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin: 18px 0 20px; }
.proof p { margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--green-soft); font-size: .95rem; }
@media (max-width: 760px) { .proof { grid-template-columns: 1fr; } }

/* research citation */
.cite { font-size: .9rem; color: var(--muted); border-inline-start: 4px solid var(--accent-soft); padding-inline-start: 14px; }
.cite cite { font-style: italic; }

/* home FAQ */
.faq details, .faq .more { max-width: 780px; }
.faq .more { margin-top: 18px; }

.research { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
@media (max-width: 760px) { .research { grid-template-columns: 1fr; } }
.disclaimer { border-inline-start: 4px solid var(--line); padding-block: 4px; padding-inline: 16px 0; color: var(--muted); font-size: .95rem; }

/* ---------------------------------------------------------- text pages -- */
.page { padding: 48px 0 72px; }
.page .wrap { max-width: 780px; }
.page h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); }
.page h2 { font-size: 1.4rem; margin-top: 2em; }
.page h3 { margin-top: 1.4em; }
.page .meta { color: var(--muted); }
.page address { font-style: normal; }
.contact-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 26px; margin: 28px 0; }
.contact-card p:last-child { margin: 0; }
.big-link { font-size: 1.25rem; font-weight: 700; }
details { background: var(--card); border-radius: 14px; box-shadow: var(--shadow); margin: 0 0 12px; }
summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style-position: inside; }
summary::marker { color: var(--accent); }
details > div { padding: 0 20px 16px; }
details > div p:last-child { margin: 0; }
.ph { background: #fff3b0; color: #4a3b00; padding: 0 .25em; border-radius: 4px; }

/* ------------------------------------------------------------ footer -- */
.site-foot { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--muted); font-size: .92rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--fg); }
.site-foot p { margin: 0; }
.site-foot .copy { margin-inline-start: auto; }
@media (max-width: 560px) { .site-foot .copy { margin-inline-start: 0; width: 100%; } }
.site-foot .langs { width: 100%; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .85rem; padding-top: 14px; border-top: 1px solid var(--line); }
.site-foot .langs a { text-decoration: none; }
.site-foot .langs a[aria-current] { color: var(--fg); font-weight: 600; }

/* ---------------------------------------------------------- instagram -- */
.follow { padding: 48px 0; }
.follow .wrap { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.follow .wrap > div { flex: 1 1 320px; }
.follow h2 { margin-bottom: .3em; }
.follow p { margin: 0; color: var(--muted); max-width: 40em; }
.follow .insta { width: 56px; height: 56px; flex: none; color: var(--accent); }
.follow-btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px; background: var(--accent); color: #fff;
  font-weight: 700; text-decoration: none; white-space: nowrap;
}
.follow-btn:hover { filter: brightness(1.08); }
@media (prefers-color-scheme: dark) { .follow-btn { color: #19161c; } }

/* app terms: no italics in scripts without them */
:lang(zh) em, :lang(ja) em, :lang(ko) em, :lang(ar) em { font-style: normal; font-weight: 600; }
.notfound p { margin-bottom: .6em; }
