/* NasalFlow core styles. Mobile first; wider layouts are added in media queries. */

@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand palette: night (sleep) moving into daylight (fresh air) */
  --night: #0f2b46;
  --night-soft: #1a3a5a;
  --blue: #1b75bc;       /* logo blue (from the brand artwork): buttons and links */
  --blue-dark: #155e97;
  --sky: #00aeef;        /* logo cyan: glow and accents */
  --air: #eef6fc;        /* pale section background */
  --ink: #17222e;
  --muted: #4a5968;
  --line: #d6e4ef;
  --white: #ffffff;

  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 14px;
  --radius-small: 10px;
  --container: 1160px;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --space-section: clamp(3.5rem, 9vw, 6.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 { margin: 0 0 0.6em; line-height: 1.12; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.5rem, 8.5vw, 4.4rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 4.6vw, 2.6rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol, dl { margin: 0; padding: 0; }

a { color: var(--blue); text-underline-offset: 0.18em; }
a:hover { color: var(--blue-dark); }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible { outline-color: var(--white); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.small { font-size: 0.925rem; color: var(--muted); }

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: 0.75rem 1rem; background: var(--white); color: var(--ink); border-radius: var(--radius-small); }
.skip-link:focus { top: 1rem; }

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: 0.8rem 1.6rem;
  font: inherit; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none;
  border: 2px solid transparent; border-radius: 999px;
  cursor: pointer; transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-dark); color: var(--white); }
.btn--secondary { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn--secondary:hover { background: var(--air); color: var(--blue-dark); }
.btn--small { min-height: 2.6rem; padding: 0.5rem 1.15rem; font-size: 0.95rem; }
.btn--block { display: flex; width: 100%; }
.btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }

.on-dark .btn--primary { background: var(--white); color: var(--night); }
.on-dark .btn--primary:hover { background: var(--air); }
.on-dark .btn--secondary { color: var(--white); border-color: rgba(255, 255, 255, 0.7); }
.on-dark .btn--secondary:hover { background: rgba(255, 255, 255, 0.1); color: var(--white); }

.text-link { font-weight: 700; }

/* ---------- Header ---------- */

.announce { margin: 0; background: var(--night); text-align: center; font-size: 0.9rem; font-weight: 600; }
.announce a { display: block; padding: 0.5rem 1rem; color: var(--white); text-decoration: none; }
.announce a:hover { text-decoration: underline; color: var(--white); }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; min-height: 4.25rem; }
.site-header__logo { margin-right: auto; }
.site-header__logo img { width: 140px; }

.nav-toggle { display: none; }

.site-nav { width: 100%; order: 3; }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; padding-bottom: 0.75rem; }
.site-nav a { display: block; padding: 0.4rem 0; color: var(--ink); font-weight: 600; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--blue); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }

/* With JavaScript, the mobile menu collapses behind a toggle */
.js .nav-toggle {
  display: inline-flex; align-items: center; min-height: 2.6rem; padding: 0.5rem 0.9rem;
  font: inherit; font-weight: 700; font-size: 0.95rem; color: var(--ink);
  background: var(--white); border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer;
}
.js .site-nav { display: none; }
.js .site-nav.is-open { display: block; }
.js .site-nav.is-open ul { flex-direction: column; gap: 0; padding-bottom: 1rem; }
.js .site-nav.is-open a { padding: 0.8rem 0; border-top: 1px solid var(--line); font-size: 1.1rem; }

/* ---------- Hero ---------- */

.on-dark { background: var(--night); color: var(--white); }
.on-dark a:not(.btn) { color: var(--white); }

.hero { overflow: hidden; }
.hero__inner { display: grid; gap: 2.5rem; padding-block: clamp(2.5rem, 8vw, 5.5rem); }
.hero__lead { font-size: clamp(1.1rem, 2.6vw, 1.3rem); color: #d7e6f3; max-width: 34em; }
.hero__price { font-size: 1.05rem; margin-bottom: 1.5rem; }
.hero__price strong { font-size: 1.35rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1rem; }
.hero__actions .btn { flex: 1 1 11rem; }
.hero__small { font-size: 0.925rem; color: #b8cde0; margin: 0; }

/* The product sits on a moonlit disc: the one bold element on the page */
.hero__moon {
  justify-self: center;
  display: grid; place-items: center;
  width: min(72vw, 440px); aspect-ratio: 1;
  background: var(--white); border-radius: 50%;
  box-shadow: 0 0 0 14px rgba(255, 255, 255, 0.06), 0 0 0 30px rgba(255, 255, 255, 0.03), 0 0 90px 10px rgba(0, 174, 239, 0.3);
}
.hero__moon img { width: 64%; }

/* ---------- Facts strip ---------- */

.facts { background: var(--air); border-bottom: 1px solid var(--line); }
.facts__list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; }
.facts__list li { padding: 1.25rem 0.75rem 1.25rem 0; font-size: 0.925rem; color: var(--muted); line-height: 1.45; }
.facts__list li:nth-child(n + 3) { border-top: 1px solid var(--line); }
.facts__list strong { display: block; color: var(--ink); font-size: 1rem; }

/* ---------- Sections ---------- */

.section { padding-block: var(--space-section); }
.section--air { background: var(--air); }
.section__head { max-width: 40rem; margin-bottom: 2.5rem; }
.section__head p { color: var(--muted); font-size: 1.1rem; }

.split { display: grid; gap: 2.5rem; align-items: center; }
.split__text > p { max-width: 36em; }
.split__media img { width: 100%; border-radius: var(--radius); }
.split__media--plain { max-width: min(62vw, 360px); justify-self: center; }
.split__media--plain img { border-radius: 0; mix-blend-mode: multiply; }

.benefits { list-style: none; margin: 1.5rem 0 1.75rem; border-top: 1px solid var(--line); }
.benefits li { padding: 0.9rem 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.benefits strong { color: var(--ink); }

/* How to apply: a real four-step sequence, so the numbers carry meaning */
/* The step photos carry their own step numbers, so no extra numbering is drawn */
.steps { list-style: none; display: grid; gap: 1.5rem; }
.step { display: grid; grid-template-columns: 7.5rem 1fr; grid-template-rows: auto 1fr; gap: 0 1rem; align-items: start; }
.step img { grid-row: span 2; width: 100%; border-radius: var(--radius-small); }
.step h3 { margin-bottom: 0.3rem; font-size: 1.1rem; }
.step p { color: var(--muted); margin: 0; font-size: 0.975rem; }

.uses { margin: 1.5rem 0; }
.uses dt { font-weight: 700; font-size: 1.1rem; margin-top: 1.1rem; }
.uses dt:first-child { margin-top: 0; }
.uses dd { margin: 0.2rem 0 0; color: var(--muted); }

.guarantee__inner { max-width: 44rem; text-align: center; }
.guarantee h2 { font-size: clamp(2rem, 6vw, 3.1rem); }
.guarantee p { font-size: 1.15rem; color: var(--muted); }

/* ---------- FAQ ---------- */

.faq { margin: 1.5rem 0 2rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative; padding: 1.1rem 2.5rem 1.1rem 0;
  font-weight: 700; font-size: 1.075rem; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; font-weight: 400; color: var(--blue); line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); padding-right: 2.5rem; }

/* ---------- Closing call to action ---------- */

.closing__inner { display: grid; gap: 2.5rem; align-items: center; }
.closing__copy p { color: #d7e6f3; font-size: 1.15rem; max-width: 30em; }

/* ---------- Buy box ---------- */

.buybox { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.25rem); box-shadow: 0 20px 50px rgba(5, 25, 45, 0.25); }
.buybox__name { font-weight: 700; margin-bottom: 0.25rem; }
.buybox__price { font-size: 2.2rem; font-weight: 800; line-height: 1.1; margin-bottom: 1.25rem; }
.buybox__price span { display: block; font-size: 0.95rem; font-weight: 500; color: var(--muted); margin-top: 0.35rem; }
.buybox__note { font-size: 0.9rem; color: var(--muted); margin: 0.6rem 0 0; }
.on-dark .buybox .btn--primary { background: var(--blue); color: var(--white); }
.on-dark .buybox .btn--primary:hover { background: var(--blue-dark); }
.on-dark .buybox .btn--secondary { color: var(--blue); border-color: var(--blue); }
.on-dark .buybox .btn--secondary:hover { background: var(--air); }

/* ---------- Footer ---------- */

.site-footer { background: var(--air); border-top: 1px solid var(--line); padding-top: 3rem; font-size: 0.95rem; }
.site-footer__grid { display: grid; gap: 2rem; grid-template-columns: 1fr 1fr; }
.site-footer__brand { grid-column: 1 / -1; max-width: 22rem; }
.site-footer__brand img { width: 130px; margin-bottom: 0.75rem; }
.site-footer__brand p { color: var(--muted); }
.site-footer__heading { font-size: 1rem; margin-bottom: 0.6rem; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer a { color: var(--ink); }
.site-footer a:hover { color: var(--blue); }
.site-footer address { font-style: normal; color: var(--muted); }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; margin-top: 2.5rem; padding-block: 1.25rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.875rem; }
.site-footer__legal p { margin: 0; }
.site-footer__legal ul { display: flex; gap: 1.25rem; }
.site-footer__legal li { margin: 0; }

/* ---------- Tablet ---------- */

@media (min-width: 600px) {
  .facts__list { grid-template-columns: repeat(4, 1fr); }
  .facts__list li { padding: 1.5rem 1.25rem; border-left: 1px solid var(--line); }
  .facts__list li:first-child { border-left: 0; padding-left: 0; }
  .facts__list li:nth-child(n + 3) { border-top: 0; }
  .steps { grid-template-columns: 1fr 1fr; gap: 2.5rem 1.75rem; }
  .step { display: block; }
  .step img { border-radius: var(--radius); margin-bottom: 1rem; }
  .step h3 { font-size: 1.2rem; }
  .site-footer__grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Desktop ---------- */

@media (min-width: 900px) {
  .js .nav-toggle { display: none; }
  .site-nav, .js .site-nav { display: block; width: auto; order: 0; }
  .site-nav ul { padding-bottom: 0; gap: 0 1.6rem; }
  .site-header__logo { margin-right: 1rem; }
  .site-nav { margin-right: auto; }

  .hero__inner { grid-template-columns: 1.15fr 0.85fr; align-items: center; }
  .hero__actions .btn { flex: 0 0 auto; }
  .hero__moon { width: min(38vw, 440px); }

  .split { grid-template-columns: 1fr 1fr; gap: clamp(3rem, 6vw, 5.5rem); }
  .split--reverse .split__media { order: -1; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .closing__inner { grid-template-columns: 1fr minmax(360px, 440px); gap: 4rem; }
  .site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .site-footer__brand { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ================= Product page ================= */

.breadcrumb { padding-block: 1rem 0; font-size: 0.9rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.4rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a[aria-current="page"] { color: var(--ink); text-decoration: none; }

.product { display: grid; gap: 2rem; padding-block: 1.25rem 3.5rem; }

.gallery { min-width: 0; }
.gallery__track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  border-radius: var(--radius); background: var(--white); border: 1px solid var(--line);
  scrollbar-width: none;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; }
.gallery__slide img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery__thumbs { list-style: none; display: flex; gap: 0.5rem; margin-top: 0.75rem; overflow-x: auto; padding: 3px; }
.gallery__thumbs a { display: block; width: 3.6rem; border: 2px solid var(--line); border-radius: var(--radius-small); overflow: hidden; }
.gallery__thumbs a[aria-current="true"] { border-color: var(--blue); }
.gallery__thumbs img { width: 100%; }

.product__title { font-size: clamp(1.9rem, 5vw, 2.6rem); line-height: 1.1; letter-spacing: -0.02em; }
.product__lead { font-size: 1.1rem; color: var(--muted); }
.product__facts { list-style: none; margin: 0 0 1.5rem; }
.product__facts li { position: relative; padding: 0.3rem 0 0.3rem 1.25rem; }
.product__facts li::before { content: ""; position: absolute; left: 0; top: 0.85em; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--sky); }
.product .buybox { box-shadow: none; border: 1px solid var(--line); }

.split--top { align-items: start; }
.sub-heading { margin-top: 2rem; }

.specs { border-top: 1px solid var(--line); margin-bottom: 2rem; }
.specs div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.specs dt { font-weight: 700; }
.specs dd { margin: 0; color: var(--muted); }

.notice { background: var(--air); border-radius: var(--radius); padding: 1.25rem 1.5rem; }
.notice h3 { font-size: 1.05rem; }
.notice ul { padding-left: 1.1rem; color: var(--muted); font-size: 0.95rem; }
.notice li + li { margin-top: 0.35rem; }

.text-steps { list-style: none; display: grid; gap: 1.5rem; margin-bottom: 2rem; counter-reset: tstep; }
.text-steps li { counter-increment: tstep; }
.text-steps h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.text-steps h3::before { content: counter(tstep) ". "; color: var(--blue); }
.text-steps p { color: var(--muted); margin: 0; }

.assurances { list-style: none; display: grid; gap: 1.5rem; margin: 1.5rem 0; }
.assurances li { border-top: 3px solid var(--blue); padding-top: 1rem; }
.assurances h3 { font-size: 1.15rem; }
.assurances p { color: var(--muted); margin: 0; }

.buy-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.7rem var(--gutter) calc(0.7rem + env(safe-area-inset-bottom));
  background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(5, 25, 45, 0.08);
}
.buy-bar[hidden] { display: none; }
.buy-bar p { margin: 0; line-height: 1.2; }
.buy-bar strong { font-size: 1.25rem; }
.buy-bar span { display: block; font-size: 0.85rem; color: var(--muted); }

@media (min-width: 600px) {
  .text-steps { grid-template-columns: 1fr 1fr; }
  .assurances { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}

@media (min-width: 900px) {
  .product { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 3.5rem; align-items: start; padding-block: 1.5rem 5rem; }
  .product__info { position: sticky; top: 6rem; }
  .gallery__thumbs a { width: 4.5rem; }
  .text-steps { grid-template-columns: repeat(4, 1fr); }
  .buy-bar { display: none !important; }
}

@media (max-width: 899px) {
  body:has(.buy-bar:not([hidden])) { padding-bottom: 4.75rem; }
}

/* ================= Buy box: delivery options ================= */

.buybox__secure { text-align: center; font-size: 0.875rem; color: var(--muted); margin: 0.5rem 0 0; }
.delivery { margin-top: 1.25rem; padding: 1rem 1.1rem; background: var(--air); border-radius: var(--radius-small); }
.delivery__title { font-weight: 700; font-size: 0.95rem; margin-bottom: 0.5rem; }
.delivery__options div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-top: 1px solid var(--line); }
.delivery__options dt { font-size: 0.95rem; }
.delivery__options dd { margin: 0; text-align: right; font-size: 0.95rem; }
.delivery__options dd span { display: block; font-size: 0.85rem; color: var(--muted); }
.delivery__note { font-size: 0.85rem; color: var(--muted); margin: 0.4rem 0 0; }
.buybox__amazon { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.guarantee-note { background: var(--air); border-left: 4px solid var(--blue); padding: 1rem 1.25rem; border-radius: 0 var(--radius-small) var(--radius-small) 0; max-width: 36em; }

/* ================= Content pages ================= */

.page-head { background: var(--air); border-bottom: 1px solid var(--line); padding-block: clamp(2.5rem, 7vw, 4.5rem); }
.page-head h1 { font-size: clamp(2.2rem, 6.5vw, 3.4rem); margin-bottom: 0.4em; }
.page-head p { color: var(--muted); font-size: 1.15rem; max-width: 38em; margin: 0; }
.page-head .breadcrumb { padding: 0 0 1.25rem; }

.page-body { padding-block: clamp(2.5rem, 7vw, 4.5rem) var(--space-section); }
/* Content pages: text column stays aligned with the page title rather than centred */
.container.prose, .page-body .container.narrow { max-width: var(--container); }
.prose > *, .page-body .narrow > * { max-width: 48rem; }
.prose h2 { font-size: clamp(1.4rem, 3.4vw, 1.8rem); margin-top: 2.25rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5rem; }
.prose ul, .prose ol { padding-left: 1.25rem; margin-bottom: 1em; }
.prose li + li { margin-top: 0.35rem; }
.prose address { font-style: normal; margin-bottom: 1em; }

.faq-group + .faq-group { margin-top: 3rem; }
.faq-group h2 { font-size: 1.5rem; margin-bottom: 0.25rem; }

.cta-panel { margin-top: 3rem; padding: clamp(1.5rem, 4vw, 2.25rem); background: var(--night); color: var(--white); border-radius: var(--radius); display: grid; gap: 1rem; }
.cta-panel h2 { font-size: 1.6rem; margin: 0; }
.cta-panel p { margin: 0; color: #d7e6f3; }
.cta-panel .btn { justify-self: start; }

/* ================= Forms ================= */

.contact-grid { display: grid; gap: 3rem; }
.form { display: grid; gap: 1.25rem; max-width: 36rem; }
.field label { display: block; font-weight: 700; margin-bottom: 0.35rem; }
.field .hint { font-weight: 400; color: var(--muted); font-size: 0.9rem; }
.field input, .field textarea {
  width: 100%; padding: 0.8rem 0.9rem; font: inherit; color: var(--ink);
  background: var(--white); border: 1.5px solid #b9cbda; border-radius: var(--radius-small);
}
.field textarea { min-height: 10rem; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--blue); outline: 3px solid rgba(27, 117, 188, 0.25); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: #b3261e; }
.field-error { color: #b3261e; font-size: 0.9rem; margin: 0.35rem 0 0; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; }
.form-privacy { font-size: 0.875rem; color: var(--muted); margin: 0; }

.alert { padding: 1rem 1.25rem; border-radius: var(--radius-small); margin-bottom: 1.5rem; }
.alert--success { background: #e7f5ec; border: 1px solid #9fd3b0; color: #14532d; }
.alert--error { background: #fdecea; border: 1px solid #f1b2ab; color: #7f1d1d; }
.alert h2 { font-size: 1.15rem; margin-bottom: 0.25rem; }
.alert p { margin: 0; }

.contact-details h2 { font-size: 1.3rem; margin-top: 1.75rem; }
.contact-details h2:first-child { margin-top: 0; }
.contact-details address { font-style: normal; color: var(--muted); }

@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1.4fr 1fr; gap: 5rem; }
  .cta-panel { grid-template-columns: 1fr auto; align-items: center; }
  .cta-panel .btn { justify-self: end; }
}
.plain-links { list-style: none; } .plain-links li { margin-bottom: 0.4rem; }
.spaced { margin-top: 2rem; }
.split__lead { font-size: 1.15rem; line-height: 1.55; }
.prose h3 { font-size: 1.1rem; }
.toc { background: var(--air); border-radius: var(--radius-small); padding: 1.25rem 1.5rem; margin-bottom: 2rem; }
.toc h2 { font-size: 1.1rem; margin: 0 0 0.5rem; }
.toc ol { margin: 0; columns: 2 14rem; column-gap: 2rem; }
.placeholder { background: #fff0b3; color: #5b4300; padding: 0 0.25em; border-radius: 3px; }

/* ================= Video ================= */

.how-to-video { display: block; width: 100%; height: auto; background: var(--night); }
.video-feature { display: grid; gap: 2rem; align-items: center; }
.video-feature__text p { max-width: 30em; }
.video-frame { justify-self: center; width: min(100%, 340px); border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 50px rgba(5, 25, 45, 0.18); }
.video-frame .how-to-video { aspect-ratio: 9 / 16; }

.gallery__slide--video { position: relative; align-self: start; background: var(--night); aspect-ratio: 1; }
.gallery__slide--video .how-to-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.thumb--video { position: relative; }
.thumb--video::after {
  content: ""; position: absolute; inset: 50% auto auto 50%; transform: translate(-40%, -50%);
  border-style: solid; border-width: 0.5rem 0 0.5rem 0.8rem; border-color: transparent transparent transparent var(--white);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
}

@media (min-width: 900px) {
  .video-feature { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .video-frame { width: 360px; }
}
.closing__product { margin-top: 2rem; width: min(70vw, 420px); background: var(--white); border-radius: var(--radius); padding: 1rem; box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.05), 0 0 70px 6px rgba(0, 174, 239, 0.25); }
.closing__product img { width: 100%; }

/* ================= Blog ================= */

.post-list { list-style: none; display: grid; gap: 1.5rem; }
.post-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); display: flex; flex-direction: column; }
.post-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-card__body { padding: 1.4rem 1.5rem 1.6rem; }
.post-card h2 { font-size: 1.35rem; margin-bottom: 0.4rem; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover { color: var(--blue); text-decoration: underline; }
.post-card p:last-child { margin: 0; color: var(--muted); }
.post-meta { font-size: 0.9rem; color: var(--muted); margin-bottom: 0.5rem; }
.page-head .post-meta { margin-top: 0.5rem; }
.badge { display: inline-block; margin-right: 0.5rem; padding: 0.1rem 0.55rem; border-radius: 999px; background: #fff0b3; color: #5b4300; font-weight: 700; font-size: 0.8rem; }
.post-body { font-size: 1.075rem; }
.post-body img { border-radius: var(--radius); margin-block: 1.5rem; }
.post-body blockquote { margin: 1.5rem 0; padding-left: 1.25rem; border-left: 4px solid var(--blue); color: var(--muted); }
.post-hero { margin-top: 0 !important; }
.post-disclaimer { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--muted); }

@media (min-width: 700px) { .post-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .post-list { grid-template-columns: repeat(3, 1fr); } }
