@layer reset, tokens, base, layout, components, states;

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

  html {
    min-height: 100%;
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
  }

  body {
    min-height: 100%;
    margin: 0;
  }

  button,
  input,
  textarea,
  select {
    font: inherit;
  }

  button {
    cursor: pointer;
  }

  img,
  svg,
  video {
    display: block;
    max-width: 100%;
  }

  h1,
  h2,
  h3,
  p,
  figure,
  fieldset {
    margin: 0;
  }
}

@layer tokens {
  :root {
    color-scheme: light;
    --font-primary: "Helvetica Now Text", Helvetica, Arial, sans-serif;
    --font-size-xs: 10px;
    --font-size-sm: 12px;
    --font-size-md: 14px;
    --font-size-lg: 16px;
    --font-size-xl: 18px;
    --font-size-2xl: 30px;
    --font-size-3xl: 44px;
    --text-primary: #212121;
    --text-tertiary: #fff;
    --surface-page: #fff;
    --surface-soft: #f7f7f5;
    --surface-card: #f8f8f6;
    --border-soft: #d8d8d2;
    --brand-green: #006039;
    --brand-green-dark: #00452c;
    --sale-red: #c01822;
    --shell-width: 420px;
    --motion-instant: 300ms;
  }
}

@layer base {
  body {
    background: #e6e6e2;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: var(--font-size-sm);
    font-weight: 300;
    line-height: 16.5px;
    text-rendering: geometricPrecision;
  }

  a {
    color: inherit;
  }

  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

@layer layout {
  .mobile-shell {
    width: min(100%, var(--shell-width));
    min-height: 100dvh;
    margin-inline: auto;
    overflow: clip;
    background: var(--surface-page);
    box-shadow: 0 0 0 1px rgb(0 0 0 / 8%);
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr) 72px;
    align-items: center;
    min-height: 64px;
    padding: max(9px, env(safe-area-inset-top)) 8px 6px 8px;
    background: rgb(255 255 255 / 96%);
    border-bottom: 1px solid var(--border-soft);
    backdrop-filter: blur(18px);
    transition: transform 260ms ease, box-shadow 260ms ease;
    will-change: transform;
  }

  body.nav-hidden .site-header {
    transform: translateY(calc(-100% - 2px));
  }

  .hero-video {
    overflow: hidden;
    background: #111;
  }

  .hero-video video {
    width: 100%;
    aspect-ratio: 4 / 5;
    height: auto;
    object-fit: cover;
    object-position: center center;
  }

  .sale-countdown {
    display: grid;
    gap: 18px;
    padding: 22px 20px 24px;
    background: var(--surface-page);
    border-bottom: 1px solid var(--border-soft);
  }

  .sale-countdown-copy {
    display: grid;
    gap: 5px;
    text-align: center;
  }

  .sale-countdown-copy p {
    color: var(--brand-green);
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: 0.22em;
  }

  .sale-countdown-copy h1 {
    color: var(--text-primary);
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 36px;
  }

  .sale-countdown-copy span {
    color: #555550;
    font-size: var(--font-size-sm);
    font-weight: 500;
  }

  .countdown-timer {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .countdown-timer div {
    display: grid;
    gap: 4px;
    min-height: 74px;
    place-items: center;
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    background: #f8f8f6;
  }

  .countdown-timer strong {
    color: var(--sale-red);
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 34px;
  }

  .countdown-timer span {
    color: #555550;
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 12px;
    text-transform: uppercase;
  }

  .collection-list {
    padding: 0 10px 30px;
  }

  .section-title {
    display: grid;
    gap: 5px;
    padding: 34px 10px 20px;
  }

  .section-title p {
    color: var(--brand-green);
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  .section-title h2 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 44px;
  }

  .section-title span {
    color: #686864;
    font-size: var(--font-size-sm);
  }

  .watch-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: stretch;
  }
}

@layer components {
  .menu-button,
  .header-actions button {
    min-width: 22px;
    min-height: 36px;
    border: 0;
    background: transparent;
    color: var(--text-primary);
  }

  .menu-button {
    display: inline-flex;
    width: 78px;
    gap: 5px;
    align-items: center;
    justify-self: start;
    padding: 0;
    font-size: var(--font-size-sm);
    font-weight: 400;
  }

  .menu-button > span:first-child {
    position: relative;
    width: 18px;
    height: 12px;
  }

  .menu-button > span:first-child::before,
  .menu-button > span:first-child::after {
    position: absolute;
    left: 0;
    width: 18px;
    height: 1px;
    background: currentColor;
    content: "";
  }

  .menu-button > span:first-child::before {
    top: 2px;
  }

  .menu-button > span:first-child::after {
    bottom: 2px;
  }

  .brand-lockup {
    display: grid;
    place-items: center;
    text-decoration: none;
  }

  .brand-lockup img {
    width: 66px;
    height: auto;
    object-fit: contain;
  }

  .header-actions {
    display: flex;
    width: 72px;
    justify-content: flex-end;
    gap: 0;
    transform: translateX(-16px);
  }

  .header-actions button {
    display: grid;
    place-items: center;
    padding: 0;
  }

  .header-actions svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.65;
  }

  .watch-card {
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr;
    min-width: 0;
    height: 100%;
    overflow: clip;
    background: #f8f8f6;
  }

  .watch-media {
    position: relative;
    display: grid;
    height: 282px;
    place-items: center;
    background: #f8f8f6;
  }

  .watch-media img {
    width: min(100%, 190px);
    height: 266px;
    object-fit: contain;
    filter: drop-shadow(0 20px 12px rgb(0 0 0 / 9%));
  }

  .favorite-button {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: grid;
    width: 32px;
    min-height: 32px;
    place-items: center;
    border: 0;
    background: transparent;
    color: var(--brand-green);
  }

  .favorite-button svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
  }

  .watch-copy {
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    gap: 6px;
    min-height: 248px;
    padding: 0 18px 18px;
  }

  .watch-copy .collection {
    color: var(--brand-green);
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
  }

  .watch-copy h3 {
    color: var(--text-primary);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 24px;
    text-wrap: balance;
  }

  .watch-copy .spec {
    color: #686864;
    font-size: 15px;
    font-weight: 300;
    line-height: 20px;
  }

  .price-action {
    display: grid;
    align-items: center;
    gap: 10px;
    margin-top: auto;
  }

  .price-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
  }

  .price-row strong {
    color: var(--sale-red);
    font-size: 25px;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 26px;
  }

  .info-button {
    display: grid;
    grid-column: 3;
    width: 19px;
    height: 19px;
    min-height: 19px;
    place-items: center;
    border: 1.5px solid var(--text-primary);
    border-radius: 50%;
    background: transparent;
    color: var(--text-primary);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 13px;
    font-style: italic;
    font-weight: 700;
    line-height: 1;
  }

  .order-button {
    width: 100%;
    min-height: 42px;
    margin-top: auto;
    border: 1px solid var(--brand-green);
    border-radius: 999px;
    background: var(--brand-green);
    color: var(--text-tertiary);
    font-size: var(--font-size-sm);
    font-weight: 700;
  }

  .watch-card.is-out-of-stock .watch-media img {
    opacity: 0.48;
    filter: grayscale(1) drop-shadow(0 20px 12px rgb(0 0 0 / 7%));
  }

  .order-button:disabled {
    border-color: #b9b9b3;
    background: #d8d8d4;
    color: #686864;
  }

  .promo-panel {
    position: relative;
    isolation: isolate;
    grid-column: 1 / -1;
    display: grid;
    min-height: 388px;
    overflow: clip;
    align-content: end;
    padding: 252px 20px 24px;
    background: #f3f4f3;
  }

  .promo-panel::after {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(to bottom, rgb(243 244 243 / 0%) 0%, rgb(243 244 243 / 0%) 43%, rgb(243 244 243 / 68%) 64%, rgb(243 244 243 / 98%) 100%);
    content: "";
    pointer-events: none;
  }

  .promo-panel--watch::after,
  .promo-panel--video::after {
    background: none;
  }

  .promo-panel--watch {
    min-height: 252px;
    padding: 0;
  }

  .promo-visual {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
  }

  .promo-visual img,
  .promo-visual video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--promo-position, center top);
  }

  .promo-copy {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 6px;
    max-width: 300px;
  }

  .promo-copy h3 {
    max-width: 10ch;
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 26px;
    text-wrap: balance;
  }

  .promo-copy span {
    color: #555550;
    font-size: var(--font-size-md);
    line-height: 19px;
  }

  .promo-copy a {
    display: inline-grid;
    grid-auto-flow: column;
    gap: 7px;
    align-items: center;
    width: fit-content;
    margin-top: 12px;
    color: var(--brand-green);
    font-size: var(--font-size-sm);
    font-weight: 700;
    text-decoration: none;
  }

  .promo-copy a::after {
    width: 7px;
    height: 7px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    content: "";
    rotate: 45deg;
  }

  .site-footer {
    display: grid;
    justify-items: center;
    gap: 0;
    padding: 38px 0 calc(24px + env(safe-area-inset-bottom));
    background: #111;
    color: var(--text-tertiary);
    text-align: left;
  }

  .footer-brand {
    display: grid;
    place-items: center;
    width: 100%;
    margin-bottom: 28px;
    text-decoration: none;
  }

  .footer-brand img {
    width: 112px;
    height: auto;
    filter: invert(1);
  }

  .footer-shortcuts,
  .footer-nav,
  .footer-legal {
    width: 100%;
    padding-inline: 28px;
  }

  .footer-shortcuts {
    display: grid;
    gap: 13px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgb(255 255 255 / 18%);
  }

  .footer-shortcuts h2,
  .footer-nav summary {
    font-size: var(--font-size-lg);
    font-weight: 700;
    letter-spacing: -0.02em;
  }

  .footer-shortcuts a,
  .footer-nav a,
  .footer-legal a {
    color: rgb(255 255 255 / 78%);
    font-size: var(--font-size-sm);
    line-height: 22px;
    text-decoration: none;
  }

  .footer-nav {
    display: grid;
  }

  .footer-nav details {
    border-bottom: 1px solid rgb(255 255 255 / 18%);
    padding-block: 18px;
  }

  .footer-nav summary {
    cursor: pointer;
    list-style: none;
  }

  .footer-nav summary::-webkit-details-marker {
    display: none;
  }

  .footer-nav details a {
    display: block;
    margin-top: 10px;
  }

  .footer-legal {
    display: grid;
    gap: 8px;
    padding-top: 24px;
  }

  .order-dialog,
  .info-dialog {
    width: min(100%, var(--shell-width));
    max-width: var(--shell-width);
    max-height: 100dvh;
    margin: auto;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .order-dialog::backdrop,
  .info-dialog::backdrop {
    background: rgb(39 37 14 / 75%);
  }

  .order-form {
    position: relative;
    display: grid;
    gap: 14px;
    min-height: 100dvh;
    max-height: 100dvh;
    overflow-y: auto;
    padding: 16px 16px calc(28px + env(safe-area-inset-bottom));
    background: var(--surface-page);
    border-radius: 22px 22px 0 0;
  }

  .dialog-close,
  .info-close {
    position: sticky;
    top: 0;
    z-index: 5;
    justify-self: end;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #f1f1f0;
    color: var(--text-primary);
    font-size: 30px;
    font-weight: 300;
    line-height: 1;
  }

  .dialog-handle {
    width: 44px;
    height: 4px;
    margin: -42px auto 10px;
    border-radius: 999px;
    background: #d0d0ca;
  }

  .dialog-header {
    display: grid;
    gap: 4px;
    text-align: center;
  }

  .dialog-header p {
    color: var(--brand-green);
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  .dialog-header h2 {
    font-size: 27px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 30px;
  }

  .dialog-product {
    display: grid;
    grid-template-columns: 42% 1fr;
    gap: 14px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--border-soft);
    border-radius: 24px;
    background: #f8f8f6;
  }

  .dialog-product-visual {
    display: grid;
    min-height: 180px;
    place-items: center;
    border-radius: 18px;
    background: #fff;
  }

  .dialog-product-visual img {
    width: 100%;
    height: 196px;
    object-fit: contain;
    filter: drop-shadow(0 18px 12px rgb(0 0 0 / 10%));
  }

  .dialog-product-copy {
    display: grid;
    gap: 8px;
    min-width: 0;
  }

  .dialog-product-copy p {
    color: var(--brand-green);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 23px;
  }

  .dialog-product-copy h3 {
    color: var(--text-primary);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 24px;
    text-transform: uppercase;
  }

  .dialog-product-copy span,
  .dialog-product-copy em,
  .dialog-product-copy small {
    color: #666;
    font-size: var(--font-size-sm);
    font-style: normal;
    font-weight: 700;
    line-height: 16px;
    text-transform: uppercase;
  }

  .dialog-product-copy strong {
    color: var(--sale-red);
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 40px;
  }

  .dialog-benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .dialog-benefits span {
    display: grid;
    min-height: 54px;
    place-items: center;
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    color: #555550;
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 15px;
    text-align: center;
    text-transform: uppercase;
  }

  .order-form label,
  .qty-options {
    display: grid;
    gap: 7px;
  }

  .order-form label span,
  .qty-options legend {
    color: #666;
    font-size: var(--font-size-xs);
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
  }

  .order-form input,
  .order-form textarea,
  .order-form select {
    width: 100%;
    min-height: 52px;
    border: 1px solid #b8b8b2;
    border-radius: 18px;
    background: #fff;
    color: var(--text-primary);
    font-size: var(--font-size-lg);
    padding: 0 15px;
  }

  .order-form textarea {
    min-height: 86px;
    padding-block: 14px;
    resize: vertical;
  }

  .location-grid {
    display: grid;
    grid-template-columns: 1fr 112px;
    gap: 10px;
  }

  .qty-options {
    border: 0;
    padding: 0;
  }

  .qty-options legend {
    margin-bottom: 8px;
  }

  .qty-options {
    grid-template-columns: 1fr 1fr;
  }

  .qty-options legend {
    grid-column: 1 / -1;
  }

  .qty-options label {
    position: relative;
    min-height: 60px;
    align-content: center;
    padding: 0 14px 0 48px;
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    background: #fff;
  }

  .qty-options input {
    position: absolute;
    left: 15px;
    top: 50%;
    width: 20px;
    min-height: 20px;
    height: 20px;
    translate: 0 -50%;
    accent-color: var(--brand-green);
  }

  .qty-options label span {
    color: var(--text-primary);
    font-size: 13px;
    letter-spacing: 0;
    line-height: 16px;
  }

  .confirm-order,
  .primary-link,
  .secondary-link {
    display: grid;
    min-height: 58px;
    place-items: center;
    border-radius: 999px;
    font-size: var(--font-size-lg);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
  }

  .confirm-order,
  .primary-link {
    border: 1px solid var(--brand-green);
    background: var(--brand-green);
    color: var(--text-tertiary);
  }

  .confirm-order:disabled {
    opacity: 0.65;
  }

  .secondary-link {
    border: 1px solid var(--brand-green);
    color: var(--brand-green);
  }

  .form-status {
    min-height: 18px;
    color: #555550;
    font-size: var(--font-size-sm);
    font-weight: 700;
    text-align: center;
  }

  .info-sheet {
    position: relative;
    min-height: 100dvh;
    overflow-y: auto;
    background: var(--surface-page);
  }

  .info-content {
    display: grid;
    gap: 18px;
    padding: 176px 48px 78px;
  }

  .info-content h2 {
    margin-top: 64px;
    color: var(--text-primary);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 30px;
  }

  .info-content h2:first-child {
    margin-top: 0;
  }

  .info-content p {
    color: #555550;
    font-size: 16px;
    font-weight: 300;
    line-height: 22px;
  }

  .thank-shell {
    min-height: 100dvh;
  }

  .thank-header {
    position: relative;
  }

  .thank-back {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    text-decoration: none;
  }

  .thank-back svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
  }

  .thank-hero {
    display: grid;
    gap: 16px;
    padding: 68px 30px 32px;
    text-align: center;
  }

  .thank-hero p:first-child {
    color: var(--brand-green);
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }

  .thank-hero h1 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 44px;
  }

  .thank-hero p:last-child {
    color: #555550;
    font-size: var(--font-size-lg);
    line-height: 24px;
  }

  .thank-card,
  .concierge-card {
    margin: 0 20px 20px;
    padding: 20px;
    border: 1px solid var(--border-soft);
    background: var(--surface-soft);
  }

  .thank-label {
    color: var(--brand-green);
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  #thankOrderId {
    display: block;
    margin-top: 8px;
    font-size: var(--font-size-lg);
    font-weight: 700;
    letter-spacing: 0.04em;
  }

  .thank-product {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 16px;
    align-items: center;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--border-soft);
  }

  .thank-product img {
    width: 96px;
    height: 128px;
    object-fit: contain;
  }

  .thank-product p {
    font-size: var(--font-size-md);
    font-weight: 700;
    line-height: 20px;
  }

  .thank-product span {
    display: block;
    margin-top: 8px;
    color: var(--sale-red);
    font-size: var(--font-size-xl);
    font-weight: 700;
  }

  .concierge-card h2 {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 32px;
  }

  .concierge-card p {
    margin-top: 12px;
    color: #555550;
    font-size: var(--font-size-md);
    line-height: 22px;
  }

  .concierge-card ol {
    display: grid;
    gap: 12px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: steps;
  }

  .concierge-card li {
    counter-increment: steps;
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 10px;
    align-items: center;
    min-height: 38px;
    font-size: var(--font-size-sm);
    font-weight: 700;
  }

  .concierge-card li::before {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    background: var(--brand-green);
    color: var(--text-tertiary);
    content: counter(steps);
    font-size: var(--font-size-xs);
  }

  .thank-actions {
    display: grid;
    gap: 12px;
    padding: 0 20px 34px;
  }
}

@layer states {
  button,
  a,
  input,
  textarea,
  select,
  summary {
    -webkit-tap-highlight-color: transparent;
  }

  button:active {
    transform: scale(0.98);
  }

  button:focus-visible,
  a:focus-visible,
  input:focus-visible,
  textarea:focus-visible,
  select:focus-visible,
  summary:focus-visible {
    outline: 2px solid #0000ee;
    outline-offset: 3px;
  }

  .order-dialog[open],
  .info-dialog[open] {
    animation: dialog-rise var(--motion-instant) ease both;
  }

  @keyframes dialog-rise {
    from {
      opacity: 0;
      translate: 0 24px;
    }

    to {
      opacity: 1;
      translate: 0 0;
    }
  }
}
