/*
  Visual system aligned with skills/DESIGN.md (Apple web).
  SF Pro unavailable on the web for all users — use system stack per Apple fallbacks.
*/

:root {
  --apple-black: #ffffff;
  --apple-gray: #f5f5f7;
  --apple-text: #1d1d1f;
  --apple-blue: #2BCFFC;
  --apple-link: #2BCFFC;
  --apple-link-on-dark: #2BCFFC;
  --apple-focus: #2BCFFC;
  --brand-accent-soft: rgba(43, 207, 252, 0.14);
  --apple-dark-1: #272729;
  --apple-dark-2: #262628;
  --apple-text-secondary: rgba(0, 0, 0, 0.8);
  --apple-text-tertiary: rgba(0, 0, 0, 0.48);
  --apple-white-80: rgba(255, 255, 255, 0.8);
  --apple-white-48: rgba(255, 255, 255, 0.48);
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wrap: min(980px, calc(100% - 48px));
  --radius-btn: 8px;
  --radius-card: 8px;
  --radius-pill: 980px;
  --shadow-card: 3px 5px 30px rgba(0, 0, 0, 0.22);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.47;
  letter-spacing: -0.374px;
  color: var(--apple-text);
  background: #ffffff;
}

.page-home {
  background: var(--apple-black);
}

:focus-visible {
  outline: 2px solid var(--apple-focus);
  outline-offset: 2px;
}

a {
  color: var(--apple-link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

/* —— Navigation (translucent dark glass) —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 48px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.lang-switch {
  display: flex;
  flex-shrink: 0;
  border: 1px solid rgba(43, 207, 252, 0.45);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.lang-switch__btn {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: -0.08px;
  color: var(--apple-text);
  text-decoration: none;
}

.lang-switch__btn:hover {
  background: var(--brand-accent-soft);
  text-decoration: none;
  color: var(--apple-text);
}

.lang-switch__btn.is-active {
  background: var(--brand-accent-soft);
  color: var(--apple-text);
}

.logo {
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: -0.12px;
  color: var(--apple-text);
  text-decoration: none;
}

.logo:hover {
  color: var(--apple-text);
  text-decoration: none;
  opacity: 0.85;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a:not(.btn) {
  color: var(--apple-text);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.12px;
}

.nav a:not(.btn):hover {
  text-decoration: underline;
  color: var(--apple-text);
}

@media (max-width: 768px) {
  :root {
    --wrap: min(980px, calc(100% - 24px));
  }

  .site-header {
    height: auto;
    min-height: 48px;
    padding: 10px 0;
    align-items: stretch;
  }

  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding-inline: 16px;
  }

  .header-left {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-width: 0;
  }

  .lang-switch {
    flex-shrink: 0;
  }

  .logo {
    flex: 1;
    min-width: 0;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 10px;
    width: 100%;
    padding-top: 10px;
    margin: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
  }

  .nav a:not(.btn) {
    padding: 8px 6px;
    text-align: center;
    justify-content: center;
    border-radius: 6px;
  }

  .nav a:not(.btn):active {
    background: var(--brand-accent-soft);
  }

  .nav .btn--nav-cta {
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
    padding: 10px 12px;
    font-size: 11px;
    letter-spacing: 0.02em;
    justify-self: stretch;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
    width: 100%;
    padding-inline: 8px;
    box-sizing: border-box;
  }

  .hero__actions .btn {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    padding-inline: 16px;
  }

  .footer-inner .btn {
    align-self: stretch;
    text-align: center;
    justify-content: center;
  }
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-text);
  font-size: 17px;
  font-weight: 400;
  line-height: 2.41;
  letter-spacing: normal;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn--sm {
  font-size: 14px;
  line-height: 1.43;
  letter-spacing: -0.224px;
  padding: 6px 14px;
}

.btn--lg {
  font-size: 18px;
  font-weight: 300;
  line-height: 1;
  padding: 10px 18px;
}

.btn--block {
  width: 100%;
}

.btn--primary {
  background: var(--apple-blue);
  color: #ffffff;
  border-radius: var(--radius-btn);
  padding: 8px 15px;
  line-height: 1.47;
  font-size: 17px;
  font-weight: 400;
}

.btn--primary:hover {
  background: #23bee8;
  color: #ffffff;
}

.btn--primary:active {
  background: #1aa7cc;
  color: #ffffff;
}

.btn--brand {
  background: var(--apple-blue);
  color: #ffffff;
  border-radius: var(--radius-btn);
  padding: 8px 15px;
  line-height: 1.47;
  font-size: 17px;
  font-weight: 400;
}

.btn--brand:hover {
  background: #23bee8;
  color: #ffffff;
}

.btn--nav-cta {
  background: var(--apple-blue);
  color: #ffffff;
  border-radius: var(--radius-btn);
  padding: 4px 12px;
  font-size: 12px;
  line-height: 1.33;
  letter-spacing: -0.12px;
}

.btn--nav-cta:hover {
  background: #23bee8;
  color: #ffffff;
}

.btn--pill-outline {
  background: transparent;
  color: var(--apple-blue);
  border: 1px solid var(--apple-blue);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.47;
}

.btn--pill-outline:hover {
  background: var(--brand-accent-soft);
  color: var(--apple-blue);
}

.btn--link-pill {
  display: inline-flex;
  align-items: center;
  color: var(--apple-link);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.43;
  letter-spacing: -0.224px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--apple-link);
  background: transparent;
}

.btn--link-pill:hover {
  text-decoration: underline;
  color: var(--apple-link);
}

.btn--link-pill--on-dark {
  color: var(--apple-link-on-dark);
  border-color: var(--apple-link-on-dark);
}

.btn--link-pill--on-dark:hover {
  color: var(--apple-link-on-dark);
}

.btn--outline {
  background: transparent;
  color: var(--apple-text);
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-btn);
  padding: 8px 15px;
}

.btn--outline:hover {
  background: #fafafc;
}

.btn--dark {
  background: var(--apple-blue);
  color: #ffffff;
  border-radius: var(--radius-btn);
  padding: 8px 15px;
}

.btn--dark:hover {
  background: #23bee8;
  color: #ffffff;
}

/* —— Surfaces (binary rhythm) —— */
.section--surface-light {
  background: var(--apple-gray);
  color: var(--apple-text);
}

.section--surface-light a:not(.btn) {
  color: var(--apple-link);
}

.section--surface-dark {
  background: #ffffff;
  color: var(--apple-text);
}

.section--surface-dark .section__title,
.section--surface-dark .hero__title {
  color: var(--apple-text);
}

.section--surface-dark .eyebrow {
  color: var(--apple-text-secondary);
}

.section--surface-dark .lede,
.section--surface-dark .feature-card__body,
.section--surface-dark .ingredient-card p,
.section--surface-dark .compare-card ul {
  color: var(--apple-text-secondary);
}

.section--surface-dark a:not(.btn) {
  color: var(--apple-link);
}

.section--surface-cta {
  background: #ffffff;
  color: var(--apple-text);
  padding: 80px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.section--surface-cta a {
  color: inherit;
}

/* —— Hero —— */
.hero {
  padding: 80px 0 88px;
  text-align: center;
}

.hero__inner {
  max-width: 720px;
  margin-inline: auto;
  padding-inline: 24px;
}

.eyebrow {
  font-family: var(--font-text);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.33;
  letter-spacing: -0.12px;
  color: var(--apple-text-tertiary);
  text-transform: none;
  margin: 0 0 12px;
}

.section--surface-dark .eyebrow {
  color: var(--apple-text-secondary);
}

.eyebrow--muted {
  color: var(--apple-text-tertiary);
}

.section--surface-light .eyebrow--muted {
  color: var(--apple-text-secondary);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.28px;
  margin: 0 0 16px;
  color: var(--apple-text);
}

.hero__subtitle {
  margin: 0 0 32px;
  font-size: 21px;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.19;
  letter-spacing: 0.231px;
  color: var(--apple-text-secondary);
  text-align: center;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

/* —— Sections —— */
.section {
  padding: 88px 0;
}

.section--quote {
  padding-top: 64px;
}

.quote-card {
  background: #ffffff;
  border-radius: var(--radius-card);
  padding: 40px 48px;
  box-shadow: var(--shadow-card);
  border: none;
  max-width: 820px;
  margin-inline: auto;
}

.quote-card__text {
  margin: 0;
  font-family: var(--font-text);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.47;
  letter-spacing: -0.374px;
  font-style: normal;
  color: var(--apple-text);
  text-align: left;
}

.quote-card__meta {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  line-height: 1.29;
  letter-spacing: -0.224px;
  color: var(--apple-text-secondary);
  text-align: left;
}

.quote-card__author {
  font-weight: 600;
  color: var(--apple-text);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: normal;
  margin: 0 0 40px;
  text-align: center;
  color: var(--apple-text);
}

.section__title--narrow {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.section__actions {
  text-align: center;
  margin-top: 40px;
}

/* —— Flavors —— */
.flavor-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 16px;
  scrollbar-width: thin;
}

.flavor-card {
  flex: 0 0 min(240px, 78vw);
  scroll-snap-align: start;
  background: #ffffff;
  border-radius: var(--radius-card);
  padding: 24px;
  border: none;
  box-shadow: none;
}

.flavor-card__visual {
  height: 140px;
  border-radius: var(--radius-card);
  background: var(--apple-gray);
  margin-bottom: 16px;
}

.flavor-card__name {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.19;
  letter-spacing: 0.231px;
  color: var(--apple-text);
}

.flavor-card__note {
  margin: 0;
  font-size: 14px;
  line-height: 1.29;
  letter-spacing: -0.224px;
  color: var(--apple-text-secondary);
}

/* —— Features —— */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.feature-card {
  background: #ffffff;
  border-radius: var(--radius-card);
  padding: 32px;
  border: 1px solid rgba(43, 207, 252, 0.35);
}

.feature-card__title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.19;
  letter-spacing: 0.231px;
  color: var(--apple-text);
}

.feature-card__body {
  margin: 0 0 20px;
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.374px;
  color: var(--apple-text-secondary);
}

/* —— Testimonials —— */
.testimonial-slider {
  max-width: 900px;
  margin-inline: auto;
}

.testimonial-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 12px;
}

.testimonial-card {
  flex: 0 0 min(100%, 400px);
  scroll-snap-align: center;
  background: #ffffff;
  border-radius: var(--radius-card);
  padding: 32px;
  border: none;
  box-shadow: var(--shadow-card);
}

.testimonial-card__quote {
  margin: 0 0 16px;
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.374px;
  color: var(--apple-text);
  text-align: left;
}

.testimonial-card__name {
  margin: 0;
  font-weight: 600;
  font-size: 17px;
  color: var(--apple-text);
  text-align: left;
}

.testimonial-card__role {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.29;
  letter-spacing: -0.224px;
  color: var(--apple-text-secondary);
  text-align: left;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.slider-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.2);
  padding: 0;
  cursor: pointer;
}

.slider-dots button[aria-current="true"] {
  background: var(--apple-blue);
}

.slider-dots button:focus-visible {
  outline: 2px solid var(--apple-focus);
}

/* —— Two column —— */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

@media (max-width: 834px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.two-col .section__title {
  text-align: left;
  margin-bottom: 20px;
}

.section--surface-dark .two-col .section__title {
  color: var(--apple-text);
}

.pill-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-list li {
  background: var(--brand-accent-soft);
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.29;
  letter-spacing: -0.224px;
  color: var(--apple-text);
}

.section--surface-light .pill-list li {
  background: #ffffff;
  color: var(--apple-text);
}

.lede {
  color: var(--apple-text-secondary);
  margin: 0;
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.374px;
  text-align: left;
}

.section--surface-dark .lede {
  color: var(--apple-text-secondary);
}

/* —— Compare —— */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 700px) {
  .compare-grid {
    grid-template-columns: 1fr;
  }
}

.compare-card {
  border-radius: var(--radius-card);
  padding: 32px;
  border: none;
}

.compare-card--them {
  background: #e8e8ed;
}

.compare-card--us {
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.compare-card__label {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.19;
  color: var(--apple-text);
}

.compare-card ul {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.374px;
  color: var(--apple-text-secondary);
}

.compare-card li {
  margin-bottom: 8px;
}

/* —— Ingredients —— */
.ingredient-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.ingredient-card {
  background: #ffffff;
  border: 1px solid rgba(43, 207, 252, 0.35);
  border-radius: var(--radius-card);
  padding: 28px;
}

.ingredient-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.19;
  color: var(--apple-text);
}

.ingredient-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.29;
  letter-spacing: -0.224px;
  color: var(--apple-text-secondary);
}

/* —— CTA strip —— */
.cta-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-inline: 24px;
}

.cta-banner__badge {
  font-weight: 600;
  font-size: 12px;
  line-height: 1.33;
  letter-spacing: -0.12px;
  color: var(--apple-text-tertiary);
  margin: 0 0 8px;
  text-transform: none;
}

.cta-banner__tagline {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 600;
  line-height: 1.14;
  color: var(--apple-text);
  max-width: 520px;
  text-align: left;
}

/* —— Footer —— */
.site-footer {
  border-top: none;
  padding: 24px 0 40px;
  background: var(--apple-gray);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  line-height: 1.33;
  letter-spacing: -0.12px;
  color: var(--apple-text-secondary);
  padding-inline: 24px;
  max-width: var(--wrap);
  margin-inline: auto;
}

/* —— Admin (neutral, readable) —— */
.page-admin {
  background: var(--apple-gray);
  min-height: 100vh;
  color: var(--apple-text);
}

.page-admin a {
  color: var(--apple-link);
}

.admin-shell {
  width: min(640px, calc(100% - 32px));
  margin: 40px auto 64px;
}

.admin-shell--wide {
  width: min(920px, calc(100% - 32px));
}

.admin-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.admin-bar__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.14;
}

.admin-card {
  background: #ffffff;
  border-radius: var(--radius-card);
  padding: 28px;
  border: none;
  box-shadow: var(--shadow-card);
}

.admin-card--narrow {
  margin-top: 80px;
}

.admin-links {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-form .field,
.admin-form--stack .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.admin-form .field span {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.29;
  letter-spacing: -0.224px;
}

.admin-form input,
.admin-form textarea {
  font: inherit;
  font-family: var(--font-text);
  padding: 10px 12px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  background: #ffffff;
}

.admin-form textarea {
  resize: vertical;
  min-height: 80px;
}

.font-mono {
  font-family: ui-monospace, monospace;
  font-size: 13px;
}

.admin-fieldset {
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
  border-radius: var(--radius-card);
  padding: 0;
  margin: 0 0 28px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.admin-fieldset legend {
  display: block;
  width: 100%;
  padding: 18px 22px 14px;
  margin: 0;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: var(--apple-text);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
}

.admin-fieldset .field {
  padding-left: 22px;
  padding-right: 22px;
}

.admin-fieldset .field:first-of-type {
  margin-top: 18px;
}

.admin-fieldset .field:last-child {
  padding-bottom: 22px;
}

.admin-lang-tabs {
  display: inline-flex;
  gap: 0;
  margin: 14px 0 0;
  padding: 3px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 10px;
}

.admin-lang-tabs__link {
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--apple-text-secondary);
  text-decoration: none;
  border-radius: 8px;
}

.admin-lang-tabs__link:hover {
  color: var(--apple-text);
  text-decoration: none;
}

.admin-lang-tabs__link.is-active {
  background: #fff;
  color: var(--apple-text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.admin-page-header__hint {
  margin-top: 14px;
  margin-bottom: 8px;
  max-width: 52em;
  line-height: 1.55;
}

.admin-muted--light {
  color: var(--apple-text-tertiary);
}

.admin-form__actions {
  margin-top: 12px;
  padding-top: 8px;
}

.admin-form--marketing {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.admin-form--marketing .admin-fieldset {
  margin: 0;
}

.admin-form--marketing .admin-fieldset legend {
  padding: 16px 22px;
}

.admin-form--marketing .admin-fieldset__title {
  margin: 0;
  padding: 16px 22px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: var(--apple-text);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
}

.admin-form--marketing .admin-fieldset .field:first-of-type {
  margin-top: 14px;
}

.admin-form--marketing .admin-fieldset .field:last-child {
  padding-bottom: 18px;
}

.inline-form {
  display: inline;
}

.admin-hint {
  font-size: 12px;
  line-height: 1.33;
  letter-spacing: -0.12px;
  color: var(--apple-text-secondary);
  margin-top: 20px;
}

.flash-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.flash {
  padding: 10px 14px;
  border-radius: var(--radius-btn);
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.29;
  letter-spacing: -0.224px;
}

.flash--error {
  background: #fde8e8;
  color: #8b1c1c;
}

.flash--success {
  background: #e6f4ea;
  color: #1e5f32;
}

/* —— Shop page —— */
.page-shop {
  background: var(--apple-gray);
  color: var(--apple-text);
}

.page-shop .site-header {
  margin-bottom: 0;
}

.shop-main {
  padding: 48px 0 80px;
}

.shop-intro {
  text-align: center;
  margin-bottom: 48px;
  padding-inline: 24px;
}

.shop-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 12px;
  color: var(--apple-text);
}

.shop-lede {
  margin: 0;
  font-size: 19px;
  line-height: 1.47;
  letter-spacing: -0.374px;
  color: var(--apple-text-secondary);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  padding-inline: 24px;
}

.shop-card {
  background: #ffffff;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.shop-card__visual {
  height: 200px;
  background: var(--apple-gray);
}

.shop-card__body {
  padding: 24px;
}

.shop-card__badge {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.12px;
  color: var(--apple-text-tertiary);
  display: block;
  margin-bottom: 8px;
}

.shop-card__title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.19;
  margin: 0 0 10px;
  color: var(--apple-text);
}

.shop-card__desc {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.29;
  letter-spacing: -0.224px;
  color: var(--apple-text-secondary);
}

.shop-card__price {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--apple-text);
}

.shop-card__price-label {
  font-weight: 400;
  color: var(--apple-text-secondary);
  margin-right: 6px;
}

.shop-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--apple-text-secondary);
}

/* —— Admin extras —— */
.admin-subtitle {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  margin: 0 0 16px;
}

.admin-card--stats {
  margin-bottom: 20px;
}

.admin-muted {
  font-size: 14px;
  line-height: 1.43;
  color: var(--apple-text-secondary);
  margin: 0 0 16px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat-tile {
  background: var(--apple-gray);
  border-radius: var(--radius-card);
  padding: 20px;
}

.stat-tile__label {
  display: block;
  font-size: 12px;
  color: var(--apple-text-secondary);
  margin-bottom: 8px;
}

.stat-tile__value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.14;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.admin-table th {
  font-weight: 600;
  color: var(--apple-text-secondary);
}

.admin-table--kv th {
  width: 180px;
  vertical-align: top;
}

.admin-table__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.admin-table--dense {
  font-size: 12px;
}

.admin-table--dense th,
.admin-table--dense td {
  padding: 8px 10px;
  vertical-align: top;
}

.admin-table__cell-muted code {
  color: var(--apple-text-tertiary);
}

.admin-table__detail {
  max-width: 420px;
  word-break: break-word;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-form__row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 700px) {
  .admin-form__row-2 {
    grid-template-columns: 1fr;
  }
}

.admin-fieldset--compact {
  margin: 12px 0;
  padding: 12px 16px;
}

.admin-fieldset--compact legend {
  font-size: 13px;
  padding: 0 6px;
}

.admin-perm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px 16px;
}

.admin-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
}

.admin-user-block {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-card);
  margin-bottom: 12px;
  overflow: hidden;
}

.admin-user-block__summary {
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.03);
}

.admin-user-block__summary::-webkit-details-marker {
  display: none;
}

.admin-user-block__body {
  padding: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.admin-user-block__perms {
  margin: 0 0 12px;
}

.admin-user-block__delete {
  margin-top: 16px;
  display: block;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

.danger-form {
  display: inline;
}

.admin-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 700px) {
  .admin-form-row {
    grid-template-columns: 1fr;
  }
}

.field--check {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.field--check input {
  width: auto;
}

.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
}

.tag--on {
  background: #e6f4ea;
  color: #1e5f32;
}

.tag--off {
  background: #f5f5f7;
  color: var(--apple-text-tertiary);
}

.shop-admin-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shop-admin-item {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-card);
  padding: 12px 16px;
  background: var(--apple-gray);
}

.shop-admin-item summary {
  cursor: pointer;
  font-size: 15px;
}

.shop-admin-item__body {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.shop-admin-item__danger {
  margin-top: 16px;
}

/* —— Hero background (homepage media) —— */
.hero--with-bg {
  background-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.55),
      rgba(0, 0, 0, 0.82)
    ),
    var(--hero-bg),
    var(--hero-bg);
  /* Layer 2 keeps full image visible; layer 3 fills side gaps. */
  background-size: 100% 100%, contain, cover;
  background-position: center, center, center;
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-color: #0f0f10;
}

.hero--with-bg .hero__title,
.hero--with-bg .hero__subtitle,
.hero--with-bg .eyebrow {
  color: #ffffff;
}

/* —— Shop list → detail —— */
.shop-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.shop-card-link:hover .shop-card {
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.14);
  transform: translateY(-2px);
}

.shop-card {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.shop-card__more {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--apple-link);
}

.shop-card-link:hover .shop-card__more {
  text-decoration: underline;
}

/* —— Product detail —— */
.product-detail {
  padding: 32px 0 80px;
}

.product-detail__breadcrumb {
  margin-bottom: 24px;
}

.product-detail__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  padding-inline: 24px;
}

@media (max-width: 834px) {
  .product-detail__grid {
    grid-template-columns: 1fr;
  }
}

.product-detail__img {
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  border-radius: var(--radius-card);
  background: var(--apple-gray);
}

.product-detail__placeholder {
  aspect-ratio: 1;
  border-radius: var(--radius-card);
  background: var(--apple-gray);
}

.product-detail__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: 1.1;
  margin: 12px 0 16px;
  color: var(--apple-text);
}

.product-detail__excerpt {
  font-size: 17px;
  line-height: 1.47;
  color: var(--apple-text-secondary);
  margin: 0 0 20px;
}

.product-detail__price {
  font-size: 24px;
  font-weight: 600;
  margin: 0;
  color: var(--apple-text);
}

.product-detail__long {
  margin-top: 56px;
  padding-inline: 24px;
}

.product-detail__section-title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  margin: 0 0 16px;
}

.product-detail__body p {
  margin: 0 0 12px;
  font-size: 17px;
  line-height: 1.47;
  color: var(--apple-text-secondary);
}

.contact-us {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 320px);
  gap: 24px;
  align-items: center;
}

#about-us {
  background: #ffffff;
}

.contact-us .section__title {
  text-align: left;
  margin-bottom: 14px;
}

.contact-us__text .lede {
  margin: 0 0 8px;
}

.contact-us__logo-wrap {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.contact-us__logo {
  width: 100%;
  max-width: 320px;
  height: auto;
  display: block;
}

@media (max-width: 834px) {
  .contact-us {
    grid-template-columns: 1fr;
  }

  .contact-us .section__title {
    text-align: center;
  }

  .contact-us__logo-wrap {
    justify-content: center;
  }
}

/* —— Admin app shell —— */
.page-admin-app {
  background: #f7fcfe;
}

.admin-app {
  display: grid;
  grid-template-columns: 248px 1fr;
  min-height: 100vh;
}

@media (max-width: 900px) {
  .admin-app {
    grid-template-columns: 1fr;
  }
}

.admin-sidebar {
  background: #ffffff;
  color: var(--apple-text);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
}

.admin-sidebar__brand a {
  color: var(--apple-text);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.admin-sidebar__brand a:hover {
  text-decoration: none;
  opacity: 0.9;
}

.admin-sidebar__sub {
  display: block;
  font-size: 12px;
  color: var(--apple-text-tertiary);
  margin-top: 4px;
}

.admin-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 20px;
  flex: 1;
}

.admin-nav__link {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--apple-text-secondary);
  text-decoration: none;
}

.admin-nav__link:hover {
  background: var(--brand-accent-soft);
  color: var(--apple-text);
  text-decoration: none;
}

.admin-nav__link.is-active {
  background: var(--brand-accent-soft);
  color: var(--apple-text);
}

.admin-nav__link--quiet {
  font-size: 13px;
  font-weight: 400;
  color: var(--apple-text-tertiary);
}

.admin-sidebar__user {
  font-size: 12px;
  margin: 0;
  padding: 0 4px 4px;
  color: var(--apple-text-tertiary);
}

.admin-sidebar__footer {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-sidebar__logout {
  margin-top: 8px;
}

.admin-sidebar__logout .btn {
  border-color: rgba(43, 207, 252, 0.5);
  color: var(--apple-text);
}

.admin-main {
  padding: 24px 28px 80px;
  overflow-x: auto;
}

.admin-main__inner {
  max-width: 1120px;
}

.flash-list--app {
  max-width: 1120px;
  margin-bottom: 16px;
}

.admin-page-header {
  margin-bottom: 28px;
}

.admin-page-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-lede {
  margin: 8px 0 0;
  font-size: 15px;
  color: var(--apple-text-secondary);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.kpi-card {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 20px 22px;
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 3px 8px 36px rgba(0, 0, 0, 0.18);
  text-decoration: none;
  color: inherit;
}

.kpi-card__label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--apple-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.kpi-card__value {
  display: block;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.1;
  margin: 8px 0;
  color: var(--apple-text);
}

.kpi-card__hint {
  font-size: 13px;
  color: var(--apple-link);
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 540px) {
  .quick-actions {
    flex-direction: column;
  }

  .quick-actions .btn {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
}

.admin-card--flat {
  margin-bottom: 20px;
}

.admin-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 800px) {
  .admin-grid-2 {
    grid-template-columns: 1fr;
  }
}

.admin-tips {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--apple-text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

.admin-tips li {
  margin-bottom: 8px;
}

.admin-mini-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
}

.admin-mini-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.media-preview {
  margin: 12px 0;
  max-width: 480px;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--apple-gray);
}

.media-preview img {
  display: block;
  width: 100%;
  height: auto;
}

.media-preview--sm {
  max-width: 200px;
}

.flavor-upload-block {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-card);
  padding: 16px;
  margin-bottom: 16px;
  background: #fafafa;
}

.flavor-upload-block__title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
}

.shop-admin-thumb {
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  overflow: hidden;
  background: #ddd;
}

.shop-admin-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tag--sku {
  background: #e8f0fe;
  color: #1967d2;
  margin-left: 6px;
}

.table-scroll {
  overflow-x: auto;
}

.order-status {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

.order-status--pending {
  background: #fff3cd;
  color: #856404;
}

.order-status--paid,
.order-status--shipped {
  background: #e6f4ea;
  color: #1e5f32;
}

.admin-table__note-row td {
  font-size: 13px;
  color: var(--apple-text-secondary);
  background: #fafafa;
}

.order-line {
  font-size: 13px;
  margin-bottom: 4px;
}
