@layer reset, base, components, utilities;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body, h1, h2, h3, p, ul, ol { margin: 0; }
  button, input, textarea, select { font: inherit; }
  button { border: 0; cursor: pointer; }
  img, svg { display: block; max-width: 100%; }
}

@layer base {
  :root {
    --paper: #f4efe4;
    --paper-deep: #e9e0cf;
    --ink: #201d1a;
    --muted: #706b63;
    --wine: #71243b;
    --wine-deep: #421725;
    --citron: #cedb75;
    --sage: #9eae90;
    --blue: #7c99a3;
    --line: rgba(32, 29, 26, .15);
    --shadow: 0 24px 70px rgba(55, 40, 26, .14);
    --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
    --sans: "Avenir Next", Avenir, "Century Gothic", Futura, sans-serif;
  }
  body {
    min-width: 320px;
    color: var(--ink);
    background: #d8d1c5;
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
  }
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .12;
    z-index: 1000;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.25'/%3E%3C/svg%3E");
    mix-blend-mode: multiply;
  }
  h1, h2, h3 { text-wrap: balance; }
  p { text-wrap: pretty; }
  .site-shell {
    position: relative;
    width: min(100%, 480px);
    min-height: 100vh;
    margin-inline: auto;
    overflow: clip;
    background: var(--paper);
    box-shadow: 0 0 80px rgba(30, 25, 20, .18);
  }
  .section-pad { padding-inline: 24px; }
}

@layer components {
  .topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
  }
  .brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; }
  .brand-mark {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    color: var(--paper);
    background: var(--wine);
    font-family: var(--serif);
    font-size: 17px;
    font-weight: 700;
    font-style: italic;
  }
  .brand-word { font-size: 13px; font-weight: 700; letter-spacing: .24em; }
  .topbar-cta {
    padding: 9px 15px;
    border: 1px solid var(--ink);
    border-radius: 99px;
    color: var(--ink);
    background: rgba(244, 239, 228, .72);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    backdrop-filter: blur(12px);
  }

  .hero {
    position: relative;
    padding-top: 104px;
    padding-bottom: 50px;
    background:
      radial-gradient(circle at 82% 9%, rgba(206, 219, 117, .55), transparent 24%),
      linear-gradient(180deg, #f7f3eb 0%, var(--paper) 84%);
  }
  .hero::after {
    content: "K";
    position: absolute;
    top: 28px;
    right: -23px;
    color: rgba(113, 36, 59, .045);
    font-family: var(--serif);
    font-size: 220px;
    font-style: italic;
    line-height: 1;
    pointer-events: none;
  }
  .hero-kicker, .section-index {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--wine);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
  }
  .hero-kicker span { width: 22px; height: 1px; background: var(--wine); }
  .hero-title {
    position: relative;
    z-index: 1;
    margin-top: 18px;
    font-family: var(--serif);
    font-size: clamp(38px, 11vw, 54px);
    font-weight: 500;
    letter-spacing: -.055em;
    line-height: .98;
  }
  .hero-title em { color: var(--wine); font-weight: 400; }
  .hero-copy, .section-copy {
    margin-top: 19px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.68;
  }

  .signal-stage {
    position: relative;
    height: 330px;
    margin: 32px -24px 24px;
    overflow: hidden;
    border-block: 1px solid rgba(32, 29, 26, .1);
    background: #e8dfd1;
  }
  .stage-grid {
    position: absolute;
    inset: 0;
    opacity: .25;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
  }
  .stage-label {
    position: absolute;
    top: 24px;
    color: rgba(32,29,26,.55);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
  }
  .label-router { left: 26px; }
  .label-room { right: 26px; }
  .router-node {
    position: absolute;
    left: 28px;
    top: 143px;
    width: 69px;
    height: 41px;
    border-radius: 11px;
    background: var(--ink);
    box-shadow: 0 14px 26px rgba(32,29,26,.22);
  }
  .router-node::before, .router-node::after {
    content: "";
    position: absolute;
    bottom: 36px;
    width: 3px;
    height: 44px;
    border-radius: 4px;
    background: var(--ink);
    transform-origin: bottom;
  }
  .router-node::before { left: 12px; transform: rotate(-9deg); }
  .router-node::after { right: 12px; transform: rotate(9deg); }
  .router-node i { position: absolute; bottom: -6px; width: 4px; height: 9px; background: var(--ink); }
  .router-node i:first-of-type { left: 12px; } .router-node i:last-of-type { right: 12px; }
  .router-light { position: absolute; right: 10px; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: var(--citron); box-shadow: 0 0 10px var(--citron); }
  .device-hero {
    position: absolute;
    z-index: 5;
    left: 50%;
    top: 92px;
    width: 104px;
    height: 142px;
    border: 1px solid rgba(32,29,26,.15);
    border-radius: 30px;
    background: linear-gradient(145deg, #fffdf6, #dcd3c4);
    box-shadow: 0 25px 45px rgba(58,43,31,.22), inset -8px -10px 18px rgba(80,60,40,.08), inset 5px 5px 12px rgba(255,255,255,.8);
    transform: translateX(-50%) rotate(-4deg);
    animation: deviceFloat 4s ease-in-out infinite;
  }
  .device-hero::before { content: "AXIS"; position: absolute; top: 14px; left: 14px; color: var(--muted); font-size: 6px; letter-spacing: .2em; }
  .device-antenna { position: absolute; z-index: -1; top: -62px; width: 10px; height: 79px; border-radius: 8px; background: linear-gradient(90deg, #2d2925, #5c5650, #211e1b); transform-origin: bottom; }
  .antenna-left { left: 14px; transform: rotate(-12deg); } .antenna-right { right: 14px; transform: rotate(12deg); }
  .device-logo { position: absolute; left: 50%; top: 54%; transform: translate(-50%,-50%); color: var(--wine); font-family: var(--serif); font-size: 46px; font-style: italic; }
  .device-led { position: absolute; left: 50%; bottom: 17px; width: 5px; height: 5px; transform: translateX(-50%); border-radius: 50%; background: var(--wine); box-shadow: 0 0 9px var(--wine); animation: blink 2s ease-in-out infinite; }
  .phone-node { position: absolute; right: 34px; top: 129px; width: 51px; height: 91px; border: 4px solid var(--ink); border-radius: 15px; background: var(--citron); transform: rotate(6deg); box-shadow: 0 16px 25px rgba(32,29,26,.18); }
  .phone-notch { position: absolute; left: 50%; top: 4px; width: 17px; height: 4px; transform: translateX(-50%); border-radius: 4px; background: var(--ink); }
  .wifi-bars { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 3px; transform: translateY(4px); }
  .wifi-bars i { width: 4px; border-radius: 4px; background: var(--wine); animation: bars 1.6s ease-in-out infinite alternate; }
  .wifi-bars i:nth-child(1) { height: 8px; } .wifi-bars i:nth-child(2) { height: 15px; animation-delay: .2s; } .wifi-bars i:nth-child(3) { height: 23px; animation-delay: .4s; }
  .coverage-ring { position: absolute; z-index: 2; left: 50%; top: 162px; border: 1px solid rgba(113,36,59,.3); border-radius: 50%; transform: translate(-50%,-50%); animation: pulseRing 3s ease-out infinite; }
  .ring-one { width: 150px; height: 150px; } .ring-two { width: 230px; height: 230px; animation-delay: 1s; } .ring-three { width: 315px; height: 315px; animation-delay: 2s; }
  .signal-path { position: absolute; top: 164px; height: 2px; overflow: hidden; background: rgba(113,36,59,.16); }
  .signal-path::after { content: ""; position: absolute; width: 34px; height: 100%; background: linear-gradient(90deg, transparent, var(--wine), transparent); animation: signalMove 2s linear infinite; }
  .path-one { left: 88px; right: calc(50% + 45px); } .path-two { left: calc(50% + 45px); right: 78px; }
  .path-two::after { animation-delay: .8s; }
  .stage-status { position: absolute; left: 50%; bottom: 24px; display: flex; align-items: center; gap: 7px; transform: translateX(-50%); white-space: nowrap; color: var(--wine); font-size: 8px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
  .stage-status span { width: 7px; height: 7px; border-radius: 50%; background: var(--wine); box-shadow: 0 0 0 5px rgba(113,36,59,.12); animation: blink 1.4s ease-in-out infinite; }

  .price-panel { display: flex; align-items: flex-end; justify-content: space-between; padding: 20px 0 18px; border-top: 1px solid var(--line); }
  .price-label { display: block; margin-bottom: 3px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
  .price-panel strong { font-family: var(--serif); font-size: 29px; font-weight: 500; letter-spacing: -.04em; }
  .price-note { color: var(--wine); font-size: 10px; font-weight: 700; line-height: 1.45; text-align: right; text-transform: uppercase; }
  .primary-btn, .submit-order {
    display: flex;
    width: 100%;
    min-height: 56px;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-radius: 4px 18px 4px 18px;
    color: #fffaf0;
    background: var(--wine);
    box-shadow: 0 14px 30px rgba(113,36,59,.2);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: transform .2s ease, background .2s ease;
  }
  .primary-btn:active, .submit-order:active { transform: scale(.98); }
  .primary-btn span { font-size: 18px; }
  .microcopy { margin-top: 13px; color: var(--muted); font-size: 9px; line-height: 1.5; text-align: center; }

  .clarity-card { padding-top: 44px; padding-bottom: 44px; color: #f8f1e4; background: var(--wine-deep); }
  .clarity-card .section-index { color: var(--citron); }
  .clarity-card h2 { margin-top: 18px; font-family: var(--serif); font-size: 30px; font-weight: 500; letter-spacing: -.04em; line-height: 1.08; }
  .clarity-card > p { margin-top: 18px; color: rgba(255,250,240,.68); font-size: 13px; line-height: 1.65; }
  .clarity-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 25px; }
  .clarity-grid > div { min-height: 120px; padding: 16px; border: 1px solid rgba(255,255,255,.13); border-radius: 18px 4px 18px 4px; background: rgba(255,255,255,.05); }
  .clarity-grid strong, .clarity-grid small { display: block; }
  .clarity-grid strong { margin-top: 18px; font-size: 12px; text-transform: uppercase; }
  .clarity-grid small { margin-top: 5px; color: rgba(255,250,240,.58); font-size: 10px; line-height: 1.45; }
  .status-dot { display: block; width: 9px; height: 9px; border-radius: 50%; }
  .status-dot.yes { background: var(--citron); box-shadow: 0 0 0 6px rgba(206,219,117,.12); } .status-dot.no { border: 1px solid #f4a898; box-shadow: 0 0 0 6px rgba(244,168,152,.08); }

  .story-section, .placement-section, .steps-section, .variants-section, .comparison-section, .assurance-section, .faq-section { padding-top: 58px; padding-bottom: 58px; }
  .display-heading { margin-top: 15px; font-family: var(--serif); font-size: 35px; font-weight: 500; letter-spacing: -.045em; line-height: 1.04; }
  .story-list { margin-top: 35px; border-top: 1px solid var(--line); }
  .story-item { display: grid; grid-template-columns: 38px 1fr; gap: 12px; padding: 24px 0; border-bottom: 1px solid var(--line); }
  .story-item > span { color: var(--wine); font-family: var(--serif); font-size: 12px; font-style: italic; }
  .story-item h3 { font-family: var(--serif); font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
  .story-item p { margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.55; }

  .placement-section { background: #e2e9dd; }
  .placement-map { position: relative; height: 250px; margin-top: 30px; overflow: hidden; border: 1px solid rgba(32,29,26,.13); border-radius: 40px 8px 40px 8px; background: rgba(255,255,255,.34); }
  .placement-map svg { position: absolute; inset: 47px 0 0; width: 100%; height: 150px; }
  .placement-map path { fill: none; stroke: var(--wine); stroke-width: 2; stroke-dasharray: 8 7; animation: dash 12s linear infinite; }
  .map-room { position: absolute; z-index: 3; top: 50%; display: grid; width: 70px; justify-items: center; gap: 10px; transform: translateY(-50%); color: var(--muted); font-size: 8px; font-weight: 700; text-transform: uppercase; }
  .room-a { left: 11px; } .room-b { left: 50%; transform: translate(-50%,-50%); color: var(--wine); } .room-c { right: 8px; }
  .map-wall { position: absolute; left: 31%; top: 32px; width: 5px; height: 135px; background: rgba(32,29,26,.17); box-shadow: 3px 0 0 rgba(255,255,255,.5); }
  .wall-two { left: 69%; top: 82px; height: 135px; }
  .router-mini { width: 46px; height: 27px; border-radius: 7px; background: var(--ink); }
  .router-mini::before, .router-mini::after { content: ""; position: absolute; top: 55px; width: 2px; height: 31px; background: var(--ink); }
  .router-mini::before { left: 24px; transform: rotate(-8deg); } .router-mini::after { right: 24px; transform: rotate(8deg); }
  .konevia-mini { display: grid; width: 53px; height: 68px; place-items: center; border-radius: 15px; color: var(--wine); background: #f8f3e9; box-shadow: 0 12px 25px rgba(32,29,26,.16); font-family: var(--serif); font-size: 25px; font-style: italic; }
  .phone-mini { width: 30px; height: 54px; border: 3px solid var(--ink); border-radius: 9px; background: var(--citron); }
  .placement-tip { display: flex; gap: 12px; margin-top: 13px; padding: 14px; border: 1px solid rgba(32,29,26,.12); border-radius: 4px 16px 4px 16px; color: var(--muted); font-size: 10px; line-height: 1.5; }
  .placement-tip span { color: var(--wine); font-weight: 800; text-transform: uppercase; }

  .steps-section { background: var(--paper-deep); }
  .steps-list { margin-top: 32px; padding: 0; list-style: none; }
  .steps-list li { display: grid; grid-template-columns: 50px 1fr; gap: 14px; padding: 20px 0; border-top: 1px solid var(--line); }
  .steps-list li:last-child { border-bottom: 1px solid var(--line); }
  .steps-list li > span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; color: var(--paper); background: var(--wine); font-family: var(--serif); font-style: italic; }
  .steps-list strong { display: block; margin-top: 2px; font-family: var(--serif); font-size: 18px; font-weight: 500; }
  .steps-list p { margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.55; }

  .variants-section { background: #f8f4ec; }
  .variant-stack { display: grid; gap: 18px; margin-top: 34px; }
  .variant-card { position: relative; overflow: hidden; padding: 18px; border: 1px solid var(--line); border-radius: 6px 34px 6px 34px; background: var(--paper); box-shadow: 0 14px 35px rgba(50,40,30,.08); }
  .variant-card.featured { border-color: rgba(113,36,59,.35); }
  .variant-badge { position: absolute; z-index: 4; top: 16px; left: 16px; padding: 7px 10px; border-radius: 30px; color: var(--paper); background: var(--wine); font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
  .variant-visual { position: relative; overflow: visible; background: transparent; }
  .variant-visual img { width: 100%; height: auto; object-fit: contain; }
  .variant-meta { display: grid; grid-template-columns: 1fr auto; align-items: end; margin-top: 22px; }
  .variant-meta > span { grid-column: 1 / -1; color: var(--wine); font-size: 8px; font-weight: 800; letter-spacing: .2em; }
  .variant-meta strong { font-family: var(--serif); font-size: 33px; font-weight: 500; letter-spacing: -.04em; }
  .variant-meta small { padding-bottom: 5px; color: var(--muted); font-size: 9px; text-transform: uppercase; }
  .variant-card > p { margin-top: 10px; color: var(--muted); font-size: 12px; line-height: 1.6; }
  .variant-card ul { margin: 18px 0 0; padding: 0; list-style: none; }
  .variant-card li { padding: 9px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
  .variant-card li::before { content: "↗"; margin-right: 9px; color: var(--wine); }
  .variant-price { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
  .variant-price s, .variant-price strong { display: block; }
  .variant-price s { color: var(--muted); font-size: 10px; } .variant-price strong { margin-top: 2px; font-family: var(--serif); font-size: 23px; font-weight: 500; }
  .variant-price button { padding: 12px 15px; border-radius: 99px; color: var(--paper); background: var(--ink); font-size: 9px; font-weight: 800; text-transform: uppercase; }

  .comparison-section { background: var(--wine-deep); color: #fff9ed; }
  .comparison-section .section-index { color: var(--citron); }
  .comparison-table { margin-top: 30px; border-top: 1px solid rgba(255,255,255,.18); }
  .compare-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 8px; align-items: center; min-height: 55px; border-bottom: 1px solid rgba(255,255,255,.13); }
  .compare-row span { color: rgba(255,249,237,.55); font-size: 9px; text-transform: uppercase; }
  .compare-row strong { font-family: var(--serif); font-size: 13px; font-weight: 500; text-align: center; }
  .compare-row.head strong { color: var(--citron); font-family: var(--sans); font-size: 10px; letter-spacing: .12em; }

  .assurance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 30px; }
  .assurance-grid article { min-height: 175px; padding: 18px; border: 1px solid var(--line); border-radius: 3px 22px 3px 22px; }
  .assurance-grid article > span { color: var(--wine); font-family: var(--serif); font-size: 24px; }
  .assurance-grid h3 { margin-top: 28px; font-family: var(--serif); font-size: 17px; font-weight: 500; }
  .assurance-grid p { margin-top: 7px; color: var(--muted); font-size: 10px; line-height: 1.5; }

  .faq-section { background: #e2e9dd; }
  .faq-list { margin-top: 28px; }
  .faq-list details { border-top: 1px solid rgba(32,29,26,.16); }
  .faq-list details:last-child { border-bottom: 1px solid rgba(32,29,26,.16); }
  .faq-list summary { display: grid; grid-template-columns: 1fr 24px; gap: 10px; align-items: center; padding: 21px 0; font-family: var(--serif); font-size: 17px; list-style: none; cursor: pointer; }
  .faq-list summary::-webkit-details-marker { display: none; }
  .faq-list summary span { color: var(--wine); font-family: var(--sans); font-size: 20px; font-weight: 300; transition: transform .25s ease; }
  .faq-list details[open] summary span { transform: rotate(45deg); }
  .faq-list details p { padding: 0 26px 22px 0; color: var(--muted); font-size: 11px; line-height: 1.65; }

  .closing-section { padding-top: 58px; padding-bottom: 58px; color: var(--paper); background: var(--wine); }
  .closing-eyebrow { color: var(--citron); font-size: 8px; font-weight: 800; letter-spacing: .2em; }
  .closing-section h2 { margin-top: 18px; font-family: var(--serif); font-size: 37px; font-weight: 500; letter-spacing: -.045em; line-height: 1.02; }
  .closing-section p { margin-top: 16px; color: rgba(255,250,240,.68); font-size: 12px; }
  .primary-btn.invert { margin-top: 28px; color: var(--wine); background: var(--citron); box-shadow: none; justify-content: center; }
  .footer { padding-top: 40px; padding-bottom: 120px; color: rgba(255,250,240,.65); background: var(--ink); }
  .footer-brand { display: flex; align-items: center; gap: 10px; color: #fffaf0; font-size: 13px; font-weight: 700; letter-spacing: .2em; }
  .footer p { margin-top: 17px; font-size: 11px; line-height: 1.6; }
  .footer-business { display: grid; gap: 0; margin-top: 26px; border-top: 1px solid rgba(255,255,255,.12); }
  .footer-business > a, .footer-business > div { display: grid; gap: 5px; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.12); color: inherit; text-decoration: none; }
  .footer-business span, .footer-payment > span { color: var(--citron); font-size: 8px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
  .footer-business strong { color: #fffaf0; font-size: 10px; font-weight: 500; line-height: 1.55; }
  .footer-payment { display: grid; gap: 9px; margin-top: 22px; padding: 16px; border: 1px solid rgba(255,255,255,.12); border-radius: 3px 17px 3px 17px; }
  .footer-payment div { display: flex; justify-content: space-between; gap: 12px; color: #fffaf0; font-family: var(--serif); font-size: 11px; }
  .footer-payment b { color: rgba(255,250,240,.55); font-family: var(--sans); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
  .footer-links { display: flex; gap: 16px; margin: 24px 0; }
  .footer-links button { padding: 0; color: var(--citron); background: transparent; font-size: 9px; text-transform: uppercase; }
  .footer small { display: block; margin-top: 10px; font-size: 8px; line-height: 1.55; }

  .sticky-buy {
    position: fixed;
    z-index: 30;
    bottom: max(12px, env(safe-area-inset-bottom));
    left: 50%;
    display: flex;
    width: min(calc(100% - 24px), 456px);
    align-items: center;
    justify-content: space-between;
    padding: 10px 10px 10px 17px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 18px 5px 18px 5px;
    color: #fff9ee;
    background: rgba(32,29,26,.94);
    box-shadow: 0 14px 45px rgba(30,24,20,.28);
    backdrop-filter: blur(14px);
    transform: translate(-50%, 130%);
    opacity: 0;
    transition: transform .45s cubic-bezier(.22,1,.36,1), opacity .3s;
  }
  .sticky-buy.visible { transform: translate(-50%,0); opacity: 1; }
  .sticky-buy small, .sticky-buy strong { display: block; }
  .sticky-buy small { color: rgba(255,255,255,.55); font-size: 7px; text-transform: uppercase; } .sticky-buy strong { margin-top: 2px; font-family: var(--serif); font-size: 18px; font-weight: 500; }
  .sticky-buy button { padding: 13px 15px; border-radius: 3px 13px 3px 13px; color: var(--wine-deep); background: var(--citron); font-size: 9px; font-weight: 800; text-transform: uppercase; }

  dialog { width: min(100%, 480px); max-width: none; margin: auto; padding: 0; border: 0; color: var(--ink); background: transparent; }
  dialog::backdrop { background: rgba(32,29,26,.58); backdrop-filter: blur(7px); }
  .checkout { height: 100%; max-height: 100%; margin: 0 auto; }
  .checkout[open] { display: flex; align-items: flex-end; }
  .checkout-sheet { width: 100%; max-height: 96dvh; overflow-y: auto; padding: 11px 20px calc(26px + env(safe-area-inset-bottom)); border-radius: 30px 30px 0 0; background: #f8f4ec; box-shadow: 0 -30px 80px rgba(35,28,22,.25); animation: sheetUp .45s cubic-bezier(.22,1,.36,1); }
  .sheet-handle { width: 44px; height: 4px; margin: 0 auto 18px; border-radius: 5px; background: rgba(32,29,26,.18); }
  .checkout-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
  .checkout-header span { color: var(--wine); font-size: 8px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
  .checkout-header h2 { margin-top: 4px; font-family: var(--serif); font-size: 28px; font-weight: 500; }
  .icon-btn { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: transparent; font-size: 22px; }
  .form-section { margin-top: 22px; }
  .field-label, .form-field > span { display: block; margin-bottom: 9px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
  .model-options, .payment-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .model-option, .payment-options button { min-height: 86px; padding: 13px; border: 1px solid var(--line); border-radius: 4px 17px 4px 17px; color: var(--ink); background: transparent; text-align: left; transition: border .2s, background .2s, transform .2s; }
  .model-option.active, .payment-options button.active { border-color: var(--wine); background: rgba(113,36,59,.07); box-shadow: inset 0 0 0 1px var(--wine); }
  .model-option span, .model-option b, .model-option small, .model-option strong, .payment-options span, .payment-options small { display: block; }
  .model-option b { font-family: var(--serif); font-size: 18px; font-weight: 500; }
  .model-option small, .payment-options small { margin-top: 3px; color: var(--muted); font-size: 8px; }
  .model-option strong { margin-top: 10px; color: var(--wine); font-size: 11px; }
  .cart-options { display: grid; gap: 9px; }
  .cart-product { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 94px; padding: 14px; border: 1px solid var(--line); border-radius: 4px 18px 4px 18px; background: rgba(255,255,255,.3); transition: border .2s, background .2s; }
  .cart-product.active { border-color: var(--wine); background: rgba(113,36,59,.06); box-shadow: inset 0 0 0 1px rgba(113,36,59,.35); }
  .cart-product-info { display: flex; align-items: center; gap: 11px; min-width: 0; }
  .cart-product-image { flex: 0 0 62px; width: 62px; height: 62px; object-fit: contain; }
  .cart-product b, .cart-product small, .cart-product strong { display: block; }
  .cart-product b { font-family: var(--serif); font-size: 19px; font-weight: 500; }
  .cart-product small { margin-top: 2px; color: var(--muted); font-size: 8px; }
  .cart-product strong { margin-top: 9px; color: var(--wine); font-size: 10px; }
  .qty-stepper { display: grid; grid-template-columns: 34px 31px 34px; align-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 99px; background: var(--paper); }
  .qty-stepper button { display: grid; width: 34px; height: 36px; place-items: center; color: var(--wine); background: transparent; font-size: 18px; }
  .qty-stepper button:active { background: rgba(113,36,59,.1); }
  .qty-stepper output { color: var(--ink); font-family: var(--serif); font-size: 16px; text-align: center; }
  .payment-options button { min-height: 70px; }
  .payment-options span { font-family: var(--serif); font-size: 15px; }
  .transfer-details { display: grid; gap: 9px; margin-top: 12px; padding: 15px; border: 1px solid rgba(113,36,59,.2); border-radius: 3px 17px 3px 17px; background: rgba(113,36,59,.05); }
  .transfer-details[hidden] { display: none; }
  .transfer-details > span { color: var(--wine); font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
  .transfer-details div { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
  .transfer-details b { color: var(--muted); font-size: 8px; text-transform: uppercase; }
  .transfer-details strong { font-family: var(--serif); font-size: 12px; font-weight: 500; }
  .transfer-details button { padding: 7px 9px; border: 1px solid var(--line); border-radius: 99px; color: var(--wine); background: transparent; font-size: 7px; font-weight: 800; text-transform: uppercase; }
  .transfer-details > small { min-height: 12px; color: var(--wine); font-size: 8px; }
  .cod-promise { margin-top: 12px; padding: 14px; border: 1px solid rgba(113,36,59,.25); border-radius: 3px 17px 3px 17px; background: rgba(113,36,59,.06); }
  .cod-promise[hidden] { display: none; }
  .cod-promise label { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; color: var(--wine-deep); font-size: 9px; font-weight: 600; line-height: 1.55; cursor: pointer; }
  .cod-promise input { width: 17px; height: 17px; accent-color: var(--wine); }
  .notice-box { display: grid; gap: 4px; margin-top: 18px; padding: 14px; border-left: 3px solid var(--wine); color: var(--muted); background: var(--paper-deep); font-size: 9px; line-height: 1.5; }
  .notice-box strong { color: var(--wine); font-size: 10px; text-transform: uppercase; }
  .form-grid { display: grid; gap: 16px; margin-top: 22px; }
  .form-field input, .form-field select, .form-field textarea {
    width: 100%;
    min-height: 49px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 3px 14px 3px 14px;
    outline: none;
    color: var(--ink);
    background: rgba(255,255,255,.45);
    font-size: 12px;
    transition: border .2s, box-shadow .2s;
  }
  .form-field textarea { resize: vertical; }
  .form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--wine); box-shadow: 0 0 0 3px rgba(113,36,59,.08); }
  .form-field small, .field-error { display: block; min-height: 0; margin-top: 5px; color: #a93232; font-size: 9px; }
  .form-field.invalid input, .form-field.invalid select, .form-field.invalid textarea { border-color: #a93232; }
  .consent { display: grid; grid-template-columns: 18px 1fr; gap: 10px; margin-top: 22px; align-items: start; color: var(--muted); font-size: 9px; line-height: 1.5; }
  .consent input { width: 17px; height: 17px; accent-color: var(--wine); }
  .order-summary { display: grid; gap: 10px; margin-top: 22px; padding: 17px; border: 1px solid var(--line); border-radius: 4px 18px 4px 18px; background: var(--paper); }
  .order-summary > div { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 10px; }
  .order-summary strong { color: var(--ink); text-align: right; }
  .order-summary .summary-total { margin-top: 2px; padding-top: 12px; border-top: 1px solid var(--line); align-items: flex-end; }
  .summary-total strong { color: var(--wine); font-family: var(--serif); font-size: 22px; font-weight: 500; }
  .submit-order { margin-top: 16px; border: 0; }
  .submit-order[disabled] { opacity: .65; cursor: wait; }
  .checkout-footnote { margin-top: 10px; color: var(--muted); font-size: 8px; line-height: 1.45; text-align: center; }

  .success-dialog[open], .legal-dialog[open] { display: grid; place-items: center; padding: 18px; }
  .success-card, .legal-dialog article { position: relative; width: 100%; padding: 27px 22px; border-radius: 8px 30px 8px 30px; background: #f8f4ec; box-shadow: var(--shadow); animation: scaleIn .35s ease-out; }
  .success-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 50%; color: var(--wine); background: var(--citron); font-size: 20px; }
  .success-card > span { display: block; margin-top: 20px; color: var(--wine); font-size: 8px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
  .success-card h2 { margin-top: 7px; font-family: var(--serif); font-size: 29px; font-weight: 500; }
  .success-card h2 b { font-weight: 500; }
  .success-card > p { margin-top: 10px; color: var(--muted); font-size: 11px; line-height: 1.6; }
  .success-summary { margin: 18px 0; padding: 14px; border: 1px solid var(--line); border-radius: 3px 15px 3px 15px; font-size: 10px; line-height: 1.65; }
  .success-card .primary-btn { justify-content: center; }
  .text-btn { display: block; margin: 16px auto 0; padding: 5px; color: var(--muted); background: transparent; font-size: 9px; text-decoration: underline; }
  .legal-dialog article { max-height: 78dvh; overflow-y: auto; }
  .legal-dialog .icon-btn { position: absolute; top: 14px; right: 14px; }
  .legal-dialog h2 { padding-right: 45px; font-family: var(--serif); font-size: 28px; font-weight: 500; }
  .legal-dialog h3 { margin-top: 20px; font-family: var(--serif); font-size: 16px; font-weight: 500; }
  .legal-dialog p { margin-top: 8px; color: var(--muted); font-size: 10px; line-height: 1.65; }

  .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,1,.36,1); }
  .reveal.in-view { opacity: 1; transform: translateY(0); }
}

@layer utilities {
  @keyframes deviceFloat { 0%,100% { transform: translateX(-50%) rotate(-4deg) translateY(0); } 50% { transform: translateX(-50%) rotate(-2deg) translateY(-9px); } }
  @keyframes blink { 0%,100% { opacity: .35; } 50% { opacity: 1; } }
  @keyframes bars { from { opacity: .4; transform: scaleY(.7); } to { opacity: 1; transform: scaleY(1); } }
  @keyframes pulseRing { 0% { opacity: 0; transform: translate(-50%,-50%) scale(.65); } 35% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%,-50%) scale(1.1); } }
  @keyframes signalMove { from { left: -38px; } to { left: 100%; } }
  @keyframes dash { to { stroke-dashoffset: -180; } }
  @keyframes sheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
  @keyframes scaleIn { from { opacity: 0; transform: scale(.94) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
  }
  @media (min-width: 700px) {
    body { padding-block: 24px; }
    .site-shell { border-radius: 28px; }
    .sticky-buy { bottom: 30px; }
  }
}
