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

    :root {
      --navy:      #0F1B2D;
      --navy2:     #152033;
      --navy3:     #1C2D42;
      --navy4:     #243348;
      --teal:      #00C9A7;
      --teal-dim:  rgba(0,201,167,0.12);
      --teal-glow: rgba(0,201,167,0.06);
      --off-white: #F0F4F8;
      --muted:     #8899AA;
      --dimmer:    #556070;
      --divider:   rgba(255,255,255,0.07);
      --error:     #FC8181;
      --warn:      #F6C06A;
      --success:   #68D391;
      --mono: 'JetBrains Mono', monospace;
      --sans: 'Space Grotesk', sans-serif;
      --radius: 12px;
    }

    html { font-size: 16px; scroll-behavior: smooth; }

    body {
      background: var(--navy);
      color: var(--off-white);
      font-family: var(--sans);
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      -webkit-font-smoothing: antialiased;
    }

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

    /* ── HEADER ── */
    header {
      padding: 1rem 2rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-bottom: 1px solid var(--divider);
      position: sticky;
      top: 0;
      background: rgba(15,27,45,0.96);
      backdrop-filter: blur(12px);
      z-index: 100;
    }

    .logo {
      display: flex;
      align-items: center;
      gap: 0.55rem;
      text-decoration: none;
    }

    .logo-mark {
      width: 30px; height: 30px;
      background: var(--teal);
      border-radius: 7px;
      display: grid;
      place-items: center;
      font-family: var(--mono);
      font-size: 0.7rem;
      font-weight: 700;
      color: var(--navy);
    }

    .logo-text {
      font-size: 1.05rem;
      font-weight: 600;
      color: var(--off-white);
      letter-spacing: -0.02em;
    }

    .logo-text span { color: var(--teal); }

    .header-right {
      display: flex;
      align-items: center;
      gap: 1rem;
    }

    .header-right a {
      color: var(--muted);
      text-decoration: none;
      font-size: 0.85rem;
      font-weight: 500;
      transition: color 0.15s;
    }

    .header-right a:hover { color: var(--off-white); }

    .btn {
      border: none;
      border-radius: 8px;
      font-family: var(--sans);
      font-weight: 600;
      cursor: pointer;
      transition: opacity 0.15s, transform 0.1s;
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      white-space: nowrap;
    }

    .btn:hover { opacity: 0.85; }
    .btn:active { transform: scale(0.97); }

    .btn-primary {
      background: var(--teal);
      color: var(--navy);
      padding: 0.45rem 1rem;
      font-size: 0.85rem;
    }

    .btn-ghost {
      background: var(--navy3);
      color: var(--off-white);
      padding: 0.45rem 0.9rem;
      font-size: 0.82rem;
      border: 1px solid var(--divider);
    }

    .btn-sm {
      padding: 0.3rem 0.75rem;
      font-size: 0.78rem;
      border-radius: 6px;
    }

    .btn-icon {
      background: var(--navy3);
      border: 1px solid var(--divider);
      color: var(--muted);
      padding: 0.35rem 0.65rem;
      font-size: 0.8rem;
      border-radius: 7px;
    }

    .btn-icon:hover { color: var(--off-white); }

    /* ── HERO ── */
    .hero {
      text-align: center;
      padding: 2.75rem 1.5rem 1.75rem;
    }

    .hero-eyebrow {
      font-family: var(--mono);
      font-size: 0.72rem;
      color: var(--teal);
      letter-spacing: 0.14em;
      text-transform: uppercase;
      margin-bottom: 0.9rem;
    }

    .hero h1 {
      font-size: clamp(1.75rem, 4vw, 2.85rem);
      font-weight: 700;
      letter-spacing: -0.035em;
      line-height: 1.1;
      margin-bottom: 0.75rem;
    }

    .hero h1 em { font-style: normal; color: var(--teal); }

    .hero p {
      color: var(--muted);
      font-size: 0.97rem;
      max-width: 500px;
      margin: 0 auto;
      line-height: 1.6;
    }

    /* ── CONTROLS BAR ── */
    .controls {
      display: flex;
      align-items: center;
      justify-content: center;
      flex-wrap: wrap;
      gap: 0.6rem;
      padding: 1.25rem 1.5rem;
      border-bottom: 1px solid var(--divider);
    }

    .control-group {
      display: flex;
      align-items: center;
      gap: 0.4rem;
      background: var(--navy2);
      border: 1px solid var(--divider);
      border-radius: 10px;
      padding: 0.35rem 0.6rem;
    }

    .control-label {
      font-size: 0.74rem;
      color: var(--dimmer);
      white-space: nowrap;
      font-weight: 500;
      padding: 0 0.2rem;
    }

    /* ── UNIT SELECTOR ── */
    .unit-selector-wrap {
      position: relative;
    }

    .unit-search {
      background: var(--navy3);
      border: 1px solid var(--divider);
      border-radius: 7px;
      color: var(--off-white);
      font-family: var(--mono);
      font-size: 0.82rem;
      padding: 0.32rem 2rem 0.32rem 0.65rem;
      outline: none;
      width: 148px;
      transition: border-color 0.15s, width 0.2s;
      cursor: pointer;
    }

    .unit-search:focus {
      border-color: var(--teal);
      width: 180px;
      cursor: text;
    }

    .unit-search::placeholder { color: var(--dimmer); }

    .unit-caret {
      position: absolute;
      right: 0.55rem;
      top: 50%;
      transform: translateY(-50%);
      color: var(--dimmer);
      font-size: 0.65rem;
      pointer-events: none;
      transition: opacity 0.15s;
    }

    .unit-clear {
      position: absolute;
      right: 0.5rem;
      top: 50%;
      transform: translateY(-50%);
      background: var(--navy4);
      border: none;
      border-radius: 50%;
      width: 18px;
      height: 18px;
      display: none;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      color: var(--muted);
      font-size: 0.65rem;
      line-height: 1;
      transition: background 0.15s, color 0.15s;
      padding: 0;
    }

    .unit-clear:hover { background: var(--error); color: #fff; }

    /* When a unit is selected: hide caret, show clear */
    .unit-selector-wrap.has-selection .unit-caret { display: none; }
    .unit-selector-wrap.has-selection .unit-clear  { display: flex; }

    .unit-dropdown {
      position: absolute;
      top: calc(100% + 4px);
      left: 0;
      background: var(--navy3);
      border: 1px solid rgba(0,201,167,0.25);
      border-radius: 10px;
      min-width: 220px;
      max-height: 320px;
      overflow-y: auto;
      z-index: 200;
      display: none;
      box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    }

    .unit-dropdown.open { display: block; }

    .unit-group-label {
      padding: 0.55rem 0.85rem 0.2rem;
      font-size: 0.65rem;
      color: var(--dimmer);
      letter-spacing: 0.1em;
      text-transform: uppercase;
      font-weight: 600;
      font-family: var(--sans);
      border-top: 1px solid var(--divider);
    }

    .unit-group-label:first-child { border-top: none; }

    .unit-option {
      padding: 0.42rem 0.85rem;
      font-family: var(--mono);
      font-size: 0.8rem;
      color: var(--muted);
      cursor: pointer;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 1rem;
      transition: background 0.1s, color 0.1s;
    }

    .unit-option:hover,
    .unit-option.highlighted { background: var(--teal-dim); color: var(--off-white); }

    .unit-option.selected { color: var(--teal); }

    .unit-option-desc {
      font-size: 0.68rem;
      color: var(--dimmer);
    }

    .unit-option.selected .unit-option-desc { color: rgba(0,201,167,0.6); }

    /* ── YIELD INPUTS ── */
    .yield-input {
      width: 50px;
      background: var(--navy3);
      border: 1px solid var(--divider);
      border-radius: 6px;
      color: var(--off-white);
      font-family: var(--mono);
      font-size: 0.85rem;
      font-weight: 600;
      text-align: center;
      padding: 0.3rem 0.2rem;
      outline: none;
      transition: border-color 0.15s;
    }

    .yield-input:focus { border-color: var(--teal); }
    .yield-sep { font-size: 0.75rem; color: var(--dimmer); }

    /* ── SPLIT LAYOUT ── */
    .split {
      flex: 1;
      display: grid;
      grid-template-columns: 1fr 1fr;
      min-height: calc(100vh - 300px);
    }

    /* ── PANE SHARED ── */
    .pane-left  { display: flex; flex-direction: column; border-right: 1px solid var(--divider); }
    .pane-right { display: flex; flex-direction: column; background: var(--navy2); }

    .pane-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0.75rem 1.25rem;
      border-bottom: 1px solid var(--divider);
      background: var(--navy2);
      gap: 0.5rem;
      flex-wrap: wrap;
    }

    .pane-title {
      font-family: var(--mono);
      font-size: 0.68rem;
      color: var(--muted);
      letter-spacing: 0.1em;
      text-transform: uppercase;
      font-weight: 500;
    }

    .pane-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; }

    /* ── INPUT TEXTAREA ── */
    .recipe-input {
      flex: 1;
      background: transparent;
      border: none;
      outline: none;
      resize: none;
      color: var(--off-white);
      font-family: var(--mono);
      font-size: 0.875rem;
      line-height: 1.85;
      padding: 1.25rem;
      caret-color: var(--teal);
      min-height: 380px;
    }

    .recipe-input::placeholder { color: var(--dimmer); line-height: 1.7; }

    .char-count {
      padding: 0.45rem 1.25rem;
      font-family: var(--mono);
      font-size: 0.68rem;
      color: var(--dimmer);
      border-top: 1px solid var(--divider);
      text-align: right;
    }

    .char-count.warn { color: var(--warn); }

    .examples-bar {
      padding: 0.55rem 1.1rem;
      border-top: 1px solid var(--divider);
      display: flex;
      align-items: center;
      gap: 0.45rem;
      flex-wrap: wrap;
      background: var(--navy2);
    }

    .examples-label {
      font-size: 0.7rem;
      color: var(--dimmer);
      font-weight: 500;
    }

    .example-chip {
      background: transparent;
      border: 1px solid var(--divider);
      border-radius: 100px;
      padding: 0.25rem 0.7rem;
      font-size: 0.72rem;
      color: var(--muted);
      cursor: pointer;
      transition: all 0.15s;
      font-family: var(--mono);
    }

    .example-chip:hover {
      background: var(--teal-dim);
      border-color: rgba(0,201,167,0.3);
      color: var(--teal);
    }

    /* ── OUTPUT ── */
    .output-wrap {
      flex: 1;
      overflow-y: auto;
      padding: 1rem;
    }

    .empty-state {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      height: 100%;
      min-height: 280px;
      text-align: center;
      padding: 2rem;
      gap: 0.65rem;
    }

    .empty-icon { font-size: 2.25rem; opacity: 0.2; }

    .empty-state h3 { font-size: 0.92rem; font-weight: 600; color: var(--muted); }

    .empty-heading {
      font-size: 0.92rem;
      font-weight: 600;
      color: var(--muted);
    }

    .empty-state p {
      font-size: 0.8rem;
      color: var(--dimmer);
      max-width: 240px;
      line-height: 1.5;
    }

    .scale-notice {
      background: rgba(246,192,106,0.07);
      border: 1px solid rgba(246,192,106,0.2);
      border-radius: 8px;
      padding: 0.55rem 0.85rem;
      font-size: 0.76rem;
      color: var(--warn);
      margin-bottom: 0.8rem;
      font-family: var(--mono);
    }

    /* ── INGREDIENT CARDS ── */
    .ing-card {
      background: var(--navy3);
      border: 1px solid var(--divider);
      border-radius: var(--radius);
      margin-bottom: 0.5rem;
      overflow: hidden;
      transition: border-color 0.15s;
    }

    .ing-card:hover { border-color: rgba(0,201,167,0.22); }
    .ing-card.matched   { border-left: 3px solid var(--teal); }
    .ing-card.unmatched { border-left: 3px solid var(--dimmer); }

    .ing-main {
      display: flex;
      align-items: center;
      padding: 0.7rem 0.9rem;
      gap: 0.7rem;
    }

    .ing-original {
      flex: 1;
      font-size: 0.8rem;
      color: var(--muted);
      font-family: var(--mono);
      min-width: 0;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .ing-arrow { color: var(--dimmer); font-size: 0.72rem; flex-shrink: 0; }

    .ing-result {
      display: flex;
      align-items: baseline;
      gap: 0.28rem;
      flex-shrink: 0;
    }

    .ing-number {
      font-family: var(--mono);
      font-size: 1rem;
      font-weight: 700;
      color: var(--off-white);
    }

    .ing-unit {
      font-family: var(--mono);
      font-size: 0.76rem;
      font-weight: 500;
      color: var(--teal);
    }

    .ing-passthrough { font-size: 0.78rem; color: var(--dimmer); font-style: italic; font-family: var(--mono); }

    .ing-meta {
      padding: 0 0.9rem 0.6rem;
      display: flex;
      align-items: center;
      gap: 0.4rem;
      flex-wrap: wrap;
    }

    .meta-tag {
      background: rgba(255,255,255,0.04);
      border: 1px solid var(--divider);
      border-radius: 5px;
      padding: 0.17rem 0.45rem;
      font-family: var(--mono);
      font-size: 0.66rem;
      color: var(--dimmer);
    }

    .meta-tag.density { color: var(--teal); border-color: rgba(0,201,167,0.15); background: var(--teal-glow); }
    .meta-tag.alt     { color: var(--muted); }

    .line-passthrough {
      padding: 0.38rem 0.85rem;
      font-family: var(--mono);
      font-size: 0.76rem;
      color: var(--dimmer);
      border-radius: 7px;
      margin-bottom: 0.25rem;
    }

    .line-section {
      font-size: 0.7rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--dimmer);
      padding: 0.8rem 0 0.35rem;
      font-weight: 600;
    }

    /* ── OUTPUT FOOTER ── */
    .output-footer {
      border-top: 1px solid var(--divider);
      padding: 0.7rem 1rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: var(--navy2);
      gap: 0.5rem;
      flex-wrap: wrap;
    }

    .rl-note { font-family: var(--mono); font-size: 0.67rem; color: var(--dimmer); }

    .footer-btns { display: flex; gap: 0.4rem; flex-wrap: wrap; }

    /* ── GROCERY MODAL ── */
    .modal-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(5,12,22,0.85);
      backdrop-filter: blur(6px);
      z-index: 300;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 1rem;
    }

    .modal-backdrop.open { display: flex; }

    .modal {
      background: var(--navy2);
      border: 1px solid rgba(0,201,167,0.2);
      border-radius: 16px;
      width: 100%;
      max-width: 480px;
      max-height: 88vh;
      display: flex;
      flex-direction: column;
      box-shadow: 0 24px 64px rgba(0,0,0,0.6);
    }

    .modal-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 1.1rem 1.35rem;
      border-bottom: 1px solid var(--divider);
    }

    .modal-title {
      font-size: 1rem;
      font-weight: 700;
      letter-spacing: -0.02em;
    }

    .modal-close {
      background: var(--navy3);
      border: 1px solid var(--divider);
      color: var(--muted);
      border-radius: 7px;
      width: 30px; height: 30px;
      font-size: 1rem;
      cursor: pointer;
      display: grid;
      place-items: center;
      transition: color 0.15s;
    }

    .modal-close:hover { color: var(--off-white); }

    .modal-body {
      flex: 1;
      overflow-y: auto;
      padding: 1.1rem 1.35rem;
    }

    .grocery-intro {
      font-size: 0.8rem;
      color: var(--muted);
      margin-bottom: 1rem;
      line-height: 1.5;
    }

    .grocery-list {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 0.45rem;
    }

    .grocery-item {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      padding: 0.6rem 0.85rem;
      background: var(--navy3);
      border: 1px solid var(--divider);
      border-radius: 9px;
      cursor: pointer;
      transition: background 0.15s;
      user-select: none;
    }

    .grocery-item:hover { background: var(--navy4); }
    .grocery-item.checked { opacity: 0.45; }
    .grocery-item.checked .grocery-name { text-decoration: line-through; }

    .grocery-check {
      width: 20px; height: 20px;
      border: 2px solid var(--dimmer);
      border-radius: 5px;
      flex-shrink: 0;
      display: grid;
      place-items: center;
      transition: background 0.15s, border-color 0.15s;
    }

    .grocery-item.checked .grocery-check {
      background: var(--teal);
      border-color: var(--teal);
    }

    .grocery-check-icon { font-size: 0.7rem; color: var(--navy); display: none; }
    .grocery-item.checked .grocery-check-icon { display: block; }

    .grocery-qty {
      font-family: var(--mono);
      font-size: 0.82rem;
      font-weight: 700;
      color: var(--teal);
      min-width: 60px;
      flex-shrink: 0;
    }

    .grocery-name {
      font-size: 0.88rem;
      font-weight: 500;
      flex: 1;
    }

    .modal-footer {
      padding: 1rem 1.35rem;
      border-top: 1px solid var(--divider);
      display: flex;
      gap: 0.5rem;
      flex-wrap: wrap;
    }

    /* ── HOW IT WORKS MODAL ── */
    .hiw-steps {
      display: flex;
      flex-direction: column;
      gap: 0;
    }

    .hiw-step {
      display: flex;
      gap: 1rem;
      padding: 1.1rem 0;
      border-bottom: 1px solid var(--divider);
      position: relative;
    }

    .hiw-step:last-child { border-bottom: none; }

    .hiw-num {
      flex-shrink: 0;
      width: 32px;
      height: 32px;
      background: var(--teal-dim);
      border: 1px solid rgba(0,201,167,0.25);
      border-radius: 8px;
      display: grid;
      place-items: center;
      font-family: var(--mono);
      font-size: 0.78rem;
      font-weight: 700;
      color: var(--teal);
      margin-top: 0.1rem;
    }

    .hiw-content h3 {
      font-size: 0.92rem;
      font-weight: 600;
      margin-bottom: 0.3rem;
      letter-spacing: -0.01em;
    }

    .hiw-step-title {
      font-size: 0.92rem;
      font-weight: 600;
      margin-bottom: 0.3rem;
      letter-spacing: -0.01em;
      color: var(--off-white);
    }

    .hiw-content p {
      font-size: 0.8rem;
      color: var(--muted);
      line-height: 1.55;
    }

    .hiw-content code {
      font-family: var(--mono);
      font-size: 0.75rem;
      background: var(--navy3);
      border: 1px solid var(--divider);
      border-radius: 4px;
      padding: 0.1rem 0.35rem;
      color: var(--teal);
    }

    .hiw-note {
      margin-top: 1.1rem;
      padding: 0.75rem 1rem;
      background: var(--teal-glow);
      border: 1px solid rgba(0,201,167,0.15);
      border-radius: 9px;
      font-size: 0.78rem;
      color: var(--muted);
      line-height: 1.55;
    }

    .hiw-note strong { color: var(--off-white); }

    /* ── TOAST ── */
    .toast {
      position: fixed;
      bottom: 1.5rem;
      left: 50%;
      transform: translateX(-50%) translateY(80px);
      background: var(--navy3);
      border: 1px solid var(--divider);
      border-radius: 10px;
      padding: 0.6rem 1.2rem;
      font-size: 0.84rem;
      color: var(--off-white);
      font-weight: 500;
      transition: transform 0.25s ease;
      z-index: 999;
      white-space: nowrap;
      box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    }

    .toast.show { transform: translateX(-50%) translateY(0); }

    /* ── SEO CONTENT ── */
    .seo-content {
      border-top: 1px solid var(--divider);
      padding: 3.5rem 2rem;
    }

    .seo-inner {
      max-width: 760px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 2.5rem 3rem;
    }

    .seo-block h2 {
      font-size: 1rem;
      font-weight: 700;
      letter-spacing: -0.02em;
      margin-bottom: 0.6rem;
      color: var(--off-white);
    }

    .seo-block p {
      font-size: 0.875rem;
      color: var(--muted);
      line-height: 1.7;
    }

    .seo-list {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 0.4rem;
    }

    .seo-list li {
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 0.85rem;
      padding: 0.4rem 0;
      border-bottom: 1px solid var(--divider);
      gap: 1rem;
    }

    .seo-list li:last-child { border-bottom: none; }

    .seo-qty { color: var(--muted); }

    .seo-approx {
      font-family: var(--mono);
      font-size: 0.82rem;
      font-weight: 700;
      color: var(--teal);
      flex-shrink: 0;
    }

    @media (max-width: 720px) {
      .seo-content { padding: 2.5rem 1rem; }
      .seo-inner { grid-template-columns: 1fr; gap: 2rem; }
    }

    /* ── FAQ SECTION ── */
    .faq-section {
      border-top: 1px solid var(--divider);
      padding: 3.5rem 2rem 3rem;
      max-width: 760px;
      margin: 0 auto;
      width: 100%;
    }

    .faq-eyebrow {
      font-family: var(--mono);
      font-size: 0.7rem;
      color: var(--teal);
      letter-spacing: 0.14em;
      text-transform: uppercase;
      margin-bottom: 0.75rem;
      font-weight: 500;
    }

    .faq-heading {
      font-size: 1.35rem;
      font-weight: 700;
      letter-spacing: -0.025em;
      margin-bottom: 2rem;
    }

    .faq-list {
      display: flex;
      flex-direction: column;
      gap: 0;
    }

    .faq-item {
      border-top: 1px solid var(--divider);
    }

    .faq-item:last-child {
      border-bottom: 1px solid var(--divider);
    }

    .faq-question {
      width: 100%;
      background: none;
      border: none;
      text-align: left;
      padding: 1.1rem 0;
      font-family: var(--sans);
      font-size: 0.95rem;
      font-weight: 600;
      color: var(--off-white);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      transition: color 0.15s;
    }

    .faq-question:hover { color: var(--teal); }

    .faq-chevron {
      font-size: 0.7rem;
      color: var(--dimmer);
      flex-shrink: 0;
      transition: transform 0.2s ease, color 0.15s;
    }

    .faq-item.open .faq-chevron {
      transform: rotate(180deg);
      color: var(--teal);
    }

    .faq-answer {
      font-size: 0.875rem;
      color: var(--muted);
      line-height: 1.65;
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.25s ease, padding 0.2s ease;
      padding: 0;
    }

    .faq-item.open .faq-answer {
      max-height: 300px;
      padding-bottom: 1.1rem;
    }

    @media (max-width: 720px) {
      .faq-section { padding: 2.5rem 1rem 2rem; }
      .faq-heading { font-size: 1.15rem; }
      .faq-question { font-size: 0.88rem; }
    }

    /* ── FOOTER ── */
    footer {
      border-top: 1px solid var(--divider);
      padding: 1rem 2rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 0.5rem;
    }

    .footer-note { font-size: 0.74rem; color: var(--dimmer); }

    .footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }

    .footer-links a {
      font-size: 0.74rem;
      color: var(--dimmer);
      text-decoration: none;
      transition: color 0.15s;
    }

    .footer-links a:hover { color: var(--muted); }

    .footer-link-btn {
      background: none;
      border: none;
      font-family: var(--sans);
      font-size: 0.74rem;
      color: var(--dimmer);
      cursor: pointer;
      padding: 0;
      transition: color 0.15s;
    }

    .footer-link-btn:hover { color: var(--muted); }

    /* ── MOBILE ── */
    @media (max-width: 720px) {
      header { padding: 0.8rem 1rem; }
      .hero { padding: 1.75rem 1rem 1.25rem; }
      .hero h1 { font-size: 1.65rem; }
      .split { grid-template-columns: 1fr; }
      .pane-left { border-right: none; border-bottom: 1px solid var(--divider); }
      .recipe-input { min-height: 200px; font-size: 0.82rem; }
      footer { padding: 0.85rem 1rem; }
    }

    @media (prefers-reduced-motion: reduce) {
      .toast, .ing-card { transition: none; }
    }