::selection {
  background: rgba(15, 118, 110, 0.25);
  color: #10181f;

  @media (prefers-color-scheme: dark) {
    background: rgba(45, 212, 191, 0.3);
    color: #edf3f5;
  }
}

[data-page="kodine"] {
  /* Kodine light theme — warm Mist paper */
  --color-background: #f4f7f8;
  --color-background-weak: #ffffff;
  --color-background-weak-hover: #eef6f5;
  --color-background-strong: #0f766e;
  --color-background-strong-hover: #0d6a62;
  --color-background-interactive: rgba(45, 212, 191, 0.45);
  --color-background-interactive-weaker: #e9f6f4;

  --color-text: #3b4750;
  --color-text-weak: #55606a;
  --color-text-weaker: #8a969e;
  --color-text-strong: #10181f;
  --color-text-inverted: #ffffff;

  --color-border: #d5dfe3;
  --color-border-weak: #e2eaec;

  --color-icon: #0f766e;
  --color-accent: #0f766e;
  --color-accent-bright: #0d9488;

  /* Fixed "Night" surface used for the install card + Aura panel in both themes */
  --color-night: #0b0f14;
  --color-night-raised: #101720;
  --color-night-border: #22303c;
  --color-night-text: #b9c6cd;
  --color-night-text-weak: #5a6b76;
  --color-night-text-strong: #edf3f5;
  --color-teal: #2dd4bf;
}

body {
  background: var(--color-background);
}

[data-page="kodine"] {
  @media (prefers-color-scheme: dark) {
    /* Kodine dark theme — Night ink with a teal cast */
    --color-background: #0b0f14;
    --color-background-weak: #101720;
    --color-background-weak-hover: #16202b;
    --color-background-strong: #2dd4bf;
    --color-background-strong-hover: #5fe3d0;
    --color-background-interactive: rgba(45, 212, 191, 0.3);
    --color-background-interactive-weaker: #0d1b1f;

    --color-text: #b9c6cd;
    --color-text-weak: #8496a1;
    --color-text-weaker: #5a6b76;
    --color-text-strong: #edf3f5;
    --color-text-inverted: #052e29;

    --color-border: #24313d;
    --color-border-weak: #1b2630;

    --color-icon: #2dd4bf;
    --color-accent: #2dd4bf;
    --color-accent-bright: #5fe3d0;
  }
}

@supports (background: -webkit-named-image(i)) {
  [data-page="kodine"] {
    border-top: 1px solid var(--color-border-weak);
  }
}

[data-slot="br"] {
  display: block;

  @media (max-width: 60rem) {
    display: none;
  }
}

[data-page="kodine"] {
  background: var(--color-background);
  --padding: 3rem;
  --vertical-padding: 5rem;

  @media (max-width: 60rem) {
    --padding: 1.25rem;
    --vertical-padding: 3.5rem;
  }

  display: flex;
  gap: 0;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--color-text);

  a {
    color: var(--color-text-strong);
    text-decoration: underline;
    text-underline-offset: var(--space-1);
    text-decoration-thickness: 1px;
  }

  a:hover {
    color: var(--color-accent);
  }

  p {
    line-height: 175%;
  }

  @media (max-width: 60rem) {
    font-size: 15px;
  }

  [data-component="container"] {
    max-width: 72rem;
    width: 100%;
    margin: 0 auto;
  }

  [data-component="content"] {
  }

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

  [data-component="top"] {
    padding: 0 var(--padding);
    height: 72px;
    min-height: 72px;
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: color-mix(in srgb, var(--color-background) 82%, transparent);
    backdrop-filter: blur(14px) saturate(1.5);
    -webkit-backdrop-filter: blur(14px) saturate(1.5);
    border-bottom: 1px solid var(--color-border-weak);

    z-index: 10;

    img {
      height: 34px;
      width: auto;
    }

    [data-component="nav-desktop"] {
      ul {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 30px;

        @media (max-width: 55rem) {
          gap: 22px;
        }

        @media (max-width: 48rem) {
          gap: 18px;
        }
        li {
          display: inline-block;

          a {
            font-size: 14px;
            font-weight: 500;
            color: var(--color-text-weak);
            text-decoration: none;
            transition: color 0.15s ease;
          }
          a:hover {
            color: var(--color-text-strong);
          }
          [data-slot="cta-button"] {
            background: var(--color-background-strong);
            color: var(--color-text-inverted);
            padding: 9px 18px;
            border-radius: 999px;
            font-size: 14px;
            font-weight: 600;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 8px;
            white-space: nowrap;
            box-shadow: 0 1px 2px rgba(11, 15, 20, 0.18);
            transition:
              background 0.15s ease,
              transform 0.15s ease,
              box-shadow 0.15s ease;

            @media (max-width: 55rem) {
              display: none;
            }
          }
          [data-slot="cta-button"]:hover {
            background: var(--color-background-strong-hover);
            color: var(--color-text-inverted);
            transform: translateY(-1px);
            box-shadow: 0 6px 16px -6px rgba(45, 212, 191, 0.55);
          }
        }
      }

      @media (max-width: 40rem) {
        display: none;
      }
    }

    [data-component="nav-mobile"] {
      button > svg {
        color: var(--color-icon);
      }
    }

    [data-component="nav-mobile-toggle"] {
      border: none;
      background: none;
      outline: none;
      height: 40px;
      width: 40px;
      cursor: pointer;
      margin-right: -8px;
      border-radius: 10px;
    }

    [data-component="nav-mobile-toggle"]:hover {
      background: var(--color-background-weak-hover);
    }

    [data-component="nav-mobile"] {
      display: none;

      @media (max-width: 40rem) {
        display: block;

        [data-component="nav-mobile-icon"] {
          cursor: pointer;
          height: 40px;
          width: 40px;
          display: flex;
          align-items: center;
          justify-content: center;
        }

        [data-component="nav-mobile-menu-list"] {
          position: fixed;
          background: var(--color-background);
          top: 72px;
          left: 0;
          right: 0;
          height: 100vh;
          border-top: 1px solid var(--color-border-weak);

          ul {
            list-style: none;
            padding: 20px 0;

            li {
              a {
                text-decoration: none;
                padding: 16px 24px;
                display: block;
                color: var(--color-text-weak);
                font-weight: 500;
              }

              a:hover {
                background: var(--color-background-weak-hover);
                color: var(--color-text-strong);
              }
            }
          }
        }
      }
    }

    [data-slot="logo dark"] {
      display: none;
    }

    @media (prefers-color-scheme: dark) {
      [data-slot="logo light"] {
        display: none;
      }
      [data-slot="logo dark"] {
        display: block;
      }
    }
  }

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

  [data-component="hero"] {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    padding: calc(var(--vertical-padding) * 1.4) var(--padding) var(--vertical-padding);
    overflow: hidden;

    /* teal aurora glow behind the hero copy */
    &::before {
      content: "";
      position: absolute;
      inset: -30% -20% auto;
      height: 130%;
      pointer-events: none;
      background:
        radial-gradient(42% 55% at 30% 35%, rgba(45, 212, 191, 0.16), transparent 70%),
        radial-gradient(38% 50% at 72% 30%, rgba(45, 212, 191, 0.1), transparent 70%);
    }

    @media (prefers-color-scheme: dark) {
      &::before {
        background:
          radial-gradient(45% 60% at 30% 35%, rgba(45, 212, 191, 0.13), transparent 70%),
          radial-gradient(40% 55% at 72% 28%, rgba(45, 212, 191, 0.07), transparent 70%);
      }
    }

    @media (max-width: 30rem) {
      padding: var(--vertical-padding) var(--padding);
    }

    @media (prefers-color-scheme: dark) {
      [data-slot="zen logo light"] {
        display: none;
      }
      [data-slot="zen logo dark"] {
        display: block;
      }
    }
  }

  [data-slot="hero-copy"] {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 3rem;

    h1 {
      font-size: clamp(2.25rem, 1.5rem + 3.2vw, 3.75rem);
      line-height: 1.06;
      letter-spacing: -0.03em;
      color: var(--color-text-strong);
      font-weight: 800;
      margin-bottom: 1.25rem;
      max-width: 20ch;

      @media (max-width: 60rem) {
        font-size: 2rem;
        letter-spacing: -0.02em;
      }
    }

    p {
      color: var(--color-text);
      margin-bottom: 0;
      max-width: 36rem;
      font-size: 1.125rem;
      line-height: 1.7;

      @media (max-width: 50rem) {
        max-width: 100%;
        font-size: 1rem;
      }
    }

    a {
      background: var(--color-background-strong);
      padding: 12px 24px;
      color: var(--color-text-inverted);
      border: none;
      border-radius: 999px;
      font-weight: 600;
      font-size: 15px;
      cursor: pointer;
      display: flex;
      align-items: center;
      width: fit-content;
      gap: 10px;
      text-decoration: none;
      box-shadow: 0 1px 2px rgba(11, 15, 20, 0.2);
      transition:
        background 0.15s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease;
    }

    a:hover {
      background: var(--color-background-strong-hover);
      color: var(--color-text-inverted);
      transform: translateY(-1px);
      box-shadow: 0 10px 24px -8px rgba(45, 212, 191, 0.55);
    }
  }

  /* ------------------------------------------------------------------ */
  /* Install card — always "Night" with Kodine Teal highlights           */
  /* ------------------------------------------------------------------ */

  [data-slot="installation"] {
    position: relative;
    width: 100%;
    max-width: 44rem;
    margin: 0 auto;

    @media (max-width: 550px) {
      width: calc(100vw - 40px);
    }
  }

  [data-component="tabs"] {
    [data-slot="tablist"] {
      display: flex;
      gap: 6px;
      align-items: center;
      border: 1px solid var(--color-night-border);
      border-bottom: none;
      border-top-left-radius: 16px;
      border-top-right-radius: 16px;
      background: var(--color-night-raised);
      padding: 10px 12px 0;

      @media (max-width: 60rem) {
        gap: 4px;
        overflow-x: auto;
        width: 100%;
      }
    }

    [data-slot="tab"] {
      appearance: none;
      background: transparent;
      border: 0;
      border-radius: 8px 8px 0 0;
      padding: 10px 14px;
      margin: 0;
      cursor: pointer;
      color: var(--color-night-text-weak);
      font-family: var(--font-mono);
      font-size: 12px;
      letter-spacing: 0.06em;
      line-height: 1;
      border-bottom: 2px solid transparent;
      transition:
        color 0.15s ease,
        background 0.15s ease;
    }

    [data-slot="tab"]:hover {
      color: var(--color-night-text);
    }

    [data-slot="tab"][aria-selected="true"] {
      color: var(--color-teal);
      background: rgba(45, 212, 191, 0.08);
      border-bottom-color: var(--color-teal);
    }

    [data-slot="panels"] {
      background: var(--color-night);
      border: 1px solid var(--color-night-border);
      border-bottom-left-radius: 16px;
      border-bottom-right-radius: 16px;
      padding: 18px 20px;
      box-shadow:
        0 24px 60px -24px rgba(3, 10, 12, 0.45),
        0 0 90px -30px rgba(45, 212, 191, 0.35);
    }

    [data-slot="panel"] {
      display: block;
      margin: 0;
      overflow: auto;
      white-space: pre-wrap;
      transition: opacity 0.18s ease;
      font-size: 15px;
      font-family: var(--font-mono);
      width: 100%;

      button {
        max-width: 100%;
      }

      [data-slot="command"] {
        all: unset;
        display: flex;
        max-width: 100%;
        cursor: pointer;
        align-items: center;
        gap: 16px;
        color: var(--color-night-text);
        padding: 10px 14px;
        border-radius: 10px;
        transition: background 0.15s ease;

        [data-slot="command-script"] {
          display: inline-block;
          max-width: 100%;
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
          vertical-align: middle;
          color: var(--color-night-text-weak);

          @media (max-width: 35rem) {
            width: calc(100% - 40px) !important;
          }
        }

        [data-slot="protocol"] {
          color: var(--color-night-text-weak);
        }

        [data-slot="highlight"] {
          font-weight: 600;
          color: var(--color-teal);
        }
      }

      [data-slot="command"]:hover {
        background: rgba(255, 255, 255, 0.04);
      }
    }
  }

  [data-component="copy-status"] {
    [data-slot="copy"] {
      display: block;
      width: var(--space-4);
      height: var(--space-4);
      color: var(--color-night-text-weak);

      [data-copied] & {
        display: none;
      }
    }

    [data-slot="check"] {
      display: none;
      width: var(--space-4);
      height: var(--space-4);
      color: var(--color-teal);

      [data-copied] & {
        display: block;
      }
    }
  }

  /* ------------------------------------------------------------------ */
  /* Product video                                                       */
  /* ------------------------------------------------------------------ */

  [data-component="video"] {
    padding: 0 var(--padding);

    video {
      width: 100%;
      height: auto;
      max-width: none;
      max-height: none;
      display: block;
      aspect-ratio: 16 / 9;
      object-fit: cover;
      border-radius: 20px;
      border: 1px solid var(--color-border);
      box-shadow:
        0 30px 80px -40px rgba(11, 15, 20, 0.45),
        0 0 0 6px color-mix(in srgb, var(--color-background-weak) 60%, transparent);

      @media (max-width: 60rem) {
        border-radius: 14px;
      }
    }
  }

  /* ------------------------------------------------------------------ */
  /* Section titles                                                      */
  /* ------------------------------------------------------------------ */

  [data-slot="section-title"] {
    margin-bottom: 2.5rem;
    max-width: 100%;

    div {
      display: flex;
      gap: 12px;
    }

    span {
      color: var(--color-icon);
      line-height: 175%;
    }

    h3 {
      font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
      font-weight: 750;
      letter-spacing: -0.02em;
      color: var(--color-text-strong);
      margin-bottom: 0.75rem;

      /* decorative teal tick */
      &::before {
        content: "";
        display: block;
        width: 28px;
        height: 4px;
        border-radius: 2px;
        background: var(--color-accent-bright);
        margin-bottom: 1rem;

        @media (prefers-color-scheme: dark) {
          background: var(--color-teal);
        }
      }
    }

    p {
      margin-bottom: 0;
      color: var(--color-text);
      max-width: 44rem;
    }

    div > p > strong {
      font-weight: 600;
      color: var(--color-text-strong);
    }
  }

  /* ------------------------------------------------------------------ */
  /* What is Kodine — card grid                                          */
  /* ------------------------------------------------------------------ */

  [data-component="what"] {
    padding: var(--vertical-padding) var(--padding);
    color: var(--color-text);

    a {
      background: var(--color-background-strong);
      padding: 12px 24px;
      color: var(--color-text-inverted);
      border: none;
      border-radius: 999px;
      font-weight: 600;
      font-size: 15px;
      cursor: pointer;
      margin-top: 2.5rem;
      display: flex;
      align-items: center;
      width: fit-content;
      gap: 10px;
      text-decoration: none;
      box-shadow: 0 1px 2px rgba(11, 15, 20, 0.2);
      transition:
        background 0.15s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease;
    }

    a:hover {
      background: var(--color-background-strong-hover);
      color: var(--color-text-inverted);
      transform: translateY(-1px);
      box-shadow: 0 10px 24px -8px rgba(45, 212, 191, 0.55);
    }

    ul {
      padding: 0;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 14px;

      li {
        list-style: none;
        margin-bottom: 0;
        display: flex;
        gap: 14px;
        line-height: 165%;
        background: var(--color-background-weak);
        border: 1px solid var(--color-border-weak);
        border-radius: 16px;
        padding: 22px 24px;
        transition:
          border-color 0.15s ease,
          transform 0.15s ease,
          box-shadow 0.15s ease;

        &:hover {
          border-color: color-mix(in srgb, var(--color-accent-bright) 45%, var(--color-border));
          transform: translateY(-2px);
          box-shadow: 0 18px 44px -28px rgba(11, 15, 20, 0.35);
        }

        span {
          color: var(--color-icon);
          font-family: var(--font-mono);
          font-size: 13px;
          font-weight: 600;
          line-height: 1.7;
        }
        strong {
          font-weight: 650;
          color: var(--color-text-strong);
          margin-right: 6px;
        }
      }
    }
  }

  /* ------------------------------------------------------------------ */
  /* Privacy — tinted panel                                              */
  /* ------------------------------------------------------------------ */

  [data-component="privacy"] {
    padding: 0 var(--padding);

    [data-slot="privacy-title"] {
      background: var(--color-background-interactive-weaker);
      border: 1px solid color-mix(in srgb, var(--color-accent-bright) 25%, var(--color-border-weak));
      border-radius: 20px;
      padding: 2.5rem;

      @media (max-width: 60rem) {
        padding: 1.75rem;
      }

      h3 {
        font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
        font-weight: 750;
        letter-spacing: -0.02em;
        color: var(--color-text-strong);
        margin-bottom: 1rem;
      }

      div {
        display: flex;
        gap: 14px;
      }

      span {
        color: var(--color-icon);
        font-family: var(--font-mono);
        font-size: 13px;
        font-weight: 600;
        line-height: 1.75;
      }

      p {
        color: var(--color-text);
      }
    }
  }

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

  [data-component="faq"] {
    padding: var(--vertical-padding) var(--padding);

    ul {
      padding: 0;
      border-top: 1px solid var(--color-border-weak);

      li {
        list-style: none;
        margin-bottom: 0;
        padding: 22px 0;
        border-bottom: 1px solid var(--color-border-weak);
        line-height: 175%;
      }
    }

    [data-slot="faq-question"] {
      display: flex;
      gap: 16px;
      margin-bottom: 0;
      color: var(--color-text-strong);
      font-weight: 600;
      font-size: 15.5px;
      cursor: pointer;
      background: none;
      border: none;
      padding: 0;
      align-items: start;
      min-height: 24px;
      transition: color 0.15s ease;

      &:hover {
        color: var(--color-accent);
      }

      svg {
        margin-top: 2px;
      }

      [data-slot="faq-icon-plus"] {
        flex-shrink: 0;
        color: var(--color-icon);
        margin-top: 2px;

        [data-closed] & {
          display: block;
        }
        [data-expanded] & {
          display: none;
        }
      }
      [data-slot="faq-icon-minus"] {
        flex-shrink: 0;
        color: var(--color-icon);
        margin-top: 2px;

        [data-closed] & {
          display: none;
        }
        [data-expanded] & {
          display: block;
        }
      }
      [data-slot="faq-question-text"] {
        flex-grow: 1;
        text-align: left;
      }
    }

    [data-slot="faq-answer"] {
      margin-left: 40px;
      margin-top: 10px;
      margin-bottom: 0;
      line-height: 175%;
      color: var(--color-text);
    }
  }

  /* ------------------------------------------------------------------ */
  /* Aura CTA — Night gradient panel                                     */
  /* ------------------------------------------------------------------ */

  [data-component="zen-cta"] {
    display: flex;
    padding: 0 var(--padding);
  }

  [data-slot="zen-cta-copy"] {
    width: 100%;
    border-radius: 24px;
    border: 1px solid var(--color-night-border);
    background:
      radial-gradient(120% 170% at 12% 0%, rgba(45, 212, 191, 0.22), rgba(45, 212, 191, 0) 55%),
      linear-gradient(160deg, #0e151c, var(--color-night));
    padding: 3.5rem 3rem;
    box-shadow: 0 40px 90px -50px rgba(3, 10, 12, 0.6);

    @media (max-width: 60rem) {
      padding: 2.25rem 1.5rem;
      border-radius: 18px;
    }

    strong {
      color: var(--color-night-text-strong);
      font-weight: 750;
      font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
      letter-spacing: -0.02em;
      margin-bottom: 0.75rem;
      display: block;
    }

    p {
      color: var(--color-night-text);
      margin-bottom: 2rem;
      max-width: 90%;

      @media (max-width: 50rem) {
        max-width: 100%;
      }
    }

    a {
      background: transparent;
      padding: 12px 24px;
      color: var(--color-teal);
      border-radius: 999px;
      border: 1px solid rgba(45, 212, 191, 0.5);
      font-weight: 600;
      font-size: 15px;
      cursor: pointer;
      display: flex;
      align-items: center;
      width: fit-content;
      gap: 10px;
      text-decoration: none;
      transition:
        background 0.15s ease,
        border-color 0.15s ease,
        transform 0.15s ease;
    }

    a:hover {
      background: rgba(45, 212, 191, 0.12);
      border-color: var(--color-teal);
      color: var(--color-teal);
      transform: translateY(-1px);
    }
  }

  [data-slot="model-logos"] {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 2.25rem;

    svg {
      color: var(--color-teal);
      opacity: 0.85;
    }
  }

  /* ------------------------------------------------------------------ */
  /* Email signup                                                        */
  /* ------------------------------------------------------------------ */

  [data-component="email"] {
    padding: var(--vertical-padding) var(--padding);
    color: var(--color-text);
    text-align: center;

    [data-slot="section-title"] {
      display: flex;
      flex-direction: column;
      align-items: center;

      h3::before {
        margin-left: auto;
        margin-right: auto;
      }

      p {
        margin-left: auto;
        margin-right: auto;
      }
    }

    [data-slot="dock"] {
      border-radius: 18px;
      border: 1px solid var(--color-border-weak);
      background: var(--color-background-weak);
      margin: 0 auto 32px;
      overflow: hidden;
      height: 64px;
      width: 185px;
      box-shadow:
        0 24px 60px -30px rgba(11, 15, 20, 0.25),
        0 2px 8px rgba(11, 15, 20, 0.06);

      img {
        width: 100%;
        height: auto;
      }
    }

    [data-slot="form"] {
      position: relative;
      max-width: 34rem;
      margin: 0 auto;

      input {
        background: var(--color-background-weak);
        border-radius: 999px;
        border: 1px solid var(--color-border);
        padding: 18px 170px 18px 26px;
        width: 100%;
        color: var(--color-text-strong);
        font-size: 15px;
        transition:
          border-color 0.15s ease,
          box-shadow 0.15s ease;

        @media (max-width: 30rem) {
          padding: 18px 26px 84px;
          border-radius: 24px;
        }

        &:not(:focus) {
          color: var(--color-text-strong);
        }

        &::placeholder {
          color: var(--color-text-weaker);
          opacity: 1;
        }

        &::-moz-placeholder {
          color: var(--color-text-weaker);
          opacity: 1;
        }
      }

      input:focus {
        background: var(--color-background-weak);
        outline: none;
        color: var(--color-text-strong);
        border: 1px solid var(--color-accent-bright);
        box-shadow: 0 0 0 4px var(--color-background-interactive);

        @media (prefers-color-scheme: dark) {
          border: 1px solid var(--color-teal);
        }
      }

      button {
        position: absolute;
        height: 46px;
        right: 8px;
        background: var(--color-background-strong);
        padding: 4px 24px;
        color: var(--color-text-inverted);
        border-radius: 999px;
        border: none;
        outline: none;
        font-weight: 600;
        font-size: 14px;
        cursor: pointer;
        top: 50%;
        margin-top: -23px;
        transition:
          background 0.15s ease,
          transform 0.15s ease;

        &:hover {
          background: var(--color-background-strong-hover);
        }

        @media (max-width: 30rem) {
          left: 16px;
          right: 16px;
          bottom: 14px;
          top: auto;
        }
      }
    }
  }

  /* ------------------------------------------------------------------ */
  /* Footer + legal                                                      */
  /* ------------------------------------------------------------------ */

  [data-component="footer"] {
    border-top: 1px solid var(--color-border-weak);
    display: flex;
    flex-direction: row;

    [data-slot="cell"] {
      flex: 1;
      text-align: center;

      a {
        text-decoration: none;
        padding: 1.75rem 0;
        width: 100%;
        display: block;
        font-size: 14px;
        font-weight: 500;
        transition:
          color 0.15s ease,
          background 0.15s ease;

        span {
          color: var(--color-text-weak);

          @media (max-width: 40rem) {
            display: none;
          }
        }
      }

      a:hover {
        background: var(--color-background-weak-hover);
        color: var(--color-accent);
        text-decoration: none;
      }
    }

    [data-slot="cell"] + [data-slot="cell"] {
      border-left: 1px solid var(--color-border-weak);

      @media (max-width: 40rem) {
        border-left: none;
      }
    }

    /* Mobile: third column on its own row */
    @media (max-width: 25rem) {
      flex-wrap: wrap;

      [data-slot="cell"] {
        flex: 1 0 100%;
        border-left: none;
        border-top: 1px solid var(--color-border-weak);
      }

      [data-slot="cell"]:nth-child(1) {
        border-top: none;
      }
    }
  }

  [data-component="legal"] {
    color: var(--color-text-weak);
    font-size: 13.5px;
    text-align: center;
    display: flex;
    gap: 32px;
    justify-content: center;
    padding-top: 2.5rem;
    padding-bottom: 4rem;

    a {
      color: var(--color-text-weak);
      text-decoration: none;
    }

    a:hover {
      color: var(--color-accent);
      text-decoration: underline;
      text-underline-offset: var(--space-1);
    }
  }

  input:-webkit-autofill,
  input:-webkit-autofill:hover,
  input:-webkit-autofill:focus,
  input:-webkit-autofill:active {
    transition: background-color 5000000s ease-in-out 0s;
  }

  input:-webkit-autofill {
    -webkit-text-fill-color: var(--color-text-strong) !important;
  }

  input:-moz-autofill {
    -moz-text-fill-color: var(--color-text-strong) !important;
  }
}
[data-api] {
  [data-component="content"] {
    display: flex;
    flex-direction: column;
    gap: 48px;
    padding: 64px 0;
  }

  [data-component="api-hero"] {
    display: flex;
    flex-direction: column;
    gap: 16px;

    [data-slot="status"] {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      align-self: flex-start;
      padding: 4px 12px;
      border: 1px solid var(--color-border);
      border-radius: 999px;
      font-size: 13px;
      color: var(--color-text-weak);

      i {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #22c55e;
      }
    }

    h1 {
      font-size: 48px;
      line-height: 1.1;
      color: var(--color-text-strong);
      margin: 0;
    }

    p {
      font-size: 18px;
      color: var(--color-text-weak);
      max-width: 640px;
      margin: 0;
    }

    [data-slot="base-url"] {
      display: flex;
      align-items: center;
      gap: 12px;
      align-self: flex-start;
      margin-top: 8px;
      padding: 10px 16px;
      border: 1px solid var(--color-night-border);
      border-radius: 10px;
      background: var(--color-night-raised);

      span {
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: var(--color-night-text-weak);
      }

      code {
        font-family: ui-monospace, "JetBrains Mono", monospace;
        font-size: 15px;
        color: var(--color-night-text-strong);
      }
    }
  }

  [data-component="api-quickstart"],
  [data-component="api-endpoints"],
  [data-component="api-links"] {
    h2 {
      font-size: 20px;
      color: var(--color-text-strong);
      margin: 0 0 16px;
    }
  }

  [data-component="api-quickstart"] pre {
    margin: 0;
    padding: 20px;
    border: 1px solid var(--color-night-border);
    border-radius: 12px;
    background: var(--color-night);
    overflow-x: auto;

    code {
      font-family: ui-monospace, "JetBrains Mono", monospace;
      font-size: 13.5px;
      line-height: 1.7;
      color: var(--color-night-text);
    }
  }

  [data-component="api-endpoints"] ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;

    li {
      display: flex;
      align-items: center;
      gap: 16px;
      padding: 14px 0;
      border-bottom: 1px solid var(--color-border-weak);

      &:last-child {
        border-bottom: none;
      }

      [data-slot="method"] {
        font-family: ui-monospace, "JetBrains Mono", monospace;
        font-size: 12px;
        font-weight: 600;
        padding: 3px 10px;
        border-radius: 6px;
        background: var(--color-background-interactive-weaker);
        color: var(--color-accent);
        min-width: 48px;
        text-align: center;
      }

      code {
        font-family: ui-monospace, "JetBrains Mono", monospace;
        font-size: 14px;
        color: var(--color-text-strong);
      }

      [data-slot="desc"] {
        margin-left: auto;
        font-size: 13px;
        color: var(--color-text-weaker);
      }
    }
  }

  [data-component="api-links"] [data-slot="grid"] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;

    a {
      display: flex;
      flex-direction: column;
      gap: 6px;
      padding: 20px;
      border: 1px solid var(--color-border);
      border-radius: 12px;
      background: var(--color-background-weak);
      text-decoration: none;
      transition: border-color 0.15s ease;

      &:hover {
        border-color: var(--color-accent);
      }

      strong {
        font-size: 15px;
        color: var(--color-text-strong);
      }

      span {
        font-size: 13px;
        color: var(--color-text-weak);
      }
    }
  }
}
