:root {
  --bg: #020604;
  --panel: #07120c;
  --panel-strong: #0b1c12;
  --panel-soft: #102418;
  --line: rgba(152, 212, 104, 0.28);
  --text: #f7faf3;
  --muted: #aebba8;
  --green: #9beb18;
  --green-strong: #5f8f3f;
  --leaf: #7fa65c;
  --cream: #f4f0df;
  --soft: rgba(155, 235, 24, 0.12);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  padding-bottom: 74px;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  background:
    linear-gradient(180deg, rgba(2, 6, 4, 0.08), rgba(2, 6, 4, 0.92)),
    linear-gradient(135deg, #050b07 0%, #102116 46%, #020604 100%);
}

body.share-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

.app-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.78fr);
  min-height: clamp(570px, 82vh, 760px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(3, 8, 5, 0.96) 0%, rgba(7, 18, 12, 0.9) 50%, rgba(17, 31, 18, 0.68) 100%),
    url("assets/hydro-tower-photo.jpeg") center / cover no-repeat;
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 36%;
  background: linear-gradient(0deg, rgba(2, 6, 4, 0.95), transparent);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 26px;
  padding: clamp(24px, 5vw, 56px);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-icon {
  width: 74px;
  height: 74px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(155, 235, 24, 0.36), 0 18px 48px rgba(0, 0, 0, 0.44);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.brand-line {
  display: block;
  color: var(--muted);
  font-weight: 700;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 0;
  font-size: clamp(3rem, 7vw, 6.3rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-text {
  max-width: 590px;
  margin-bottom: 0;
  color: #dce8d5;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.hero-actions,
.companion-actions,
.ad-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 164px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: var(--text);
  font-weight: 950;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.34);
  line-height: 1;
  text-align: center;
}

button.action-link {
  appearance: none;
  cursor: pointer;
}

.action-link:hover,
.action-link:focus-visible {
  border-color: var(--green);
  color: var(--green);
}

.top-button-row .action-link {
  flex: 0 1 164px;
}

.attention-link {
  animation: buttonBounce 2.6s ease-in-out infinite;
}

.attention-link:nth-child(2) {
  animation-delay: 0.18s;
}

@keyframes buttonBounce {
  0%,
  72%,
  100% {
    transform: translateY(0);
  }
  78% {
    transform: translateY(-4px);
  }
  84% {
    transform: translateY(0);
  }
  90% {
    transform: translateY(-2px);
  }
}

.primary-link {
  border-color: transparent;
  color: #06120b;
  background: linear-gradient(135deg, var(--green), #d7ff8b);
}

.primary-link:hover,
.primary-link:focus-visible {
  color: #06120b;
  filter: brightness(1.08);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 610px;
}

.hero-stats div {
  min-height: 92px;
  padding: 16px;
  border: 1px solid rgba(244, 240, 223, 0.14);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.42);
}

.hero-stats span,
.companion-copy span,
.ad-copy span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-stats strong {
  display: block;
  color: var(--cream);
  font-size: 1.05rem;
  line-height: 1.15;
}

.product-stage {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 520px;
  padding: 22px;
}

.product-stage::before {
  content: "";
  position: absolute;
  right: 6%;
  bottom: 5%;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(155, 235, 24, 0.12);
  filter: blur(26px);
}

.product-image {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  max-height: 720px;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  background: rgba(2, 6, 4, 0.58);
  box-shadow: 0 36px 70px rgba(0, 0, 0, 0.48);
}

.calculator-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 18px;
  margin-top: -54px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(11, 28, 18, 0.98), rgba(4, 10, 7, 0.99));
  box-shadow: var(--shadow);
}

.input-card,
.result-card {
  padding: 22px;
}

.section-heading {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.section-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 8px;
  color: #06120b;
  font-weight: 950;
  background: linear-gradient(135deg, var(--green), #d7ff8b);
}

h2 {
  margin-bottom: 4px;
  font-size: 1.35rem;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--muted);
}

.field {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.field > span,
.mode-title {
  color: var(--text);
  font-weight: 850;
}

.input-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 66px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
}

.input-wrap:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 4px var(--soft);
}

.input-wrap input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 14px 16px;
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 850;
  background: transparent;
}

textarea {
  width: 100%;
  resize: vertical;
  min-height: 92px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  outline: 0;
  padding: 14px 16px;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.35);
}

textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px var(--soft);
}

.input-wrap span {
  padding: 0 16px;
  color: var(--green);
  font-weight: 900;
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 18px;
}

.mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px;
  border: 1px solid rgba(155, 235, 24, 0.22);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
}

.mode-tab {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  color: var(--text);
  font-weight: 950;
  background: transparent;
  cursor: pointer;
}

.mode-tab.is-active {
  color: #06120b;
  background: linear-gradient(135deg, var(--green), #d7ff8b);
}

body.beginner-mode .advanced-only {
  display: none !important;
}

.chip {
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: var(--text);
  font-weight: 900;
  background: rgba(0, 0, 0, 0.28);
  cursor: pointer;
}

.chip:hover,
.chip:focus-visible,
.chip.is-active {
  border-color: var(--green);
  color: #06120b;
  background: linear-gradient(135deg, var(--green), #d7ff8b);
}

.presets {
  margin-top: -8px;
}

.tool-block {
  margin-bottom: 18px;
}

.tool-label {
  display: block;
  margin-bottom: 10px;
  font-weight: 850;
}

.mode-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 8px 0 18px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: var(--panel-soft);
}

.mode-title,
.mode-copy {
  display: block;
}

.mode-copy {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.92rem;
}

.switch {
  position: relative;
  flex: 0 0 auto;
  width: 66px;
  height: 38px;
}

.switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.switch span {
  position: absolute;
  inset: 0;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  transition: 180ms ease;
}

.switch span::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #d9e4d6;
  transition: 180ms ease;
}

.switch input:checked + span {
  border-color: var(--green);
  background: rgba(155, 235, 24, 0.24);
}

.switch input:checked + span::after {
  transform: translateX(28px);
  background: var(--green);
}

.split-dose-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.split-dose-panel .field {
  margin-bottom: 18px;
}

.reset-button {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: var(--text);
  font-weight: 900;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  cursor: pointer;
}

.copy-button {
  width: 100%;
  min-height: 50px;
  margin-top: 14px;
  border: 0;
  border-radius: 8px;
  color: #06120b;
  font-weight: 950;
  background: linear-gradient(135deg, var(--green), #d7ff8b);
  cursor: pointer;
}

.copy-button:hover,
.copy-button:focus-visible {
  filter: brightness(1.08);
}

.copy-status,
.last-saved,
.warning {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
}

.warning {
  margin: -4px 0 16px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 239, 186, 0.35);
  border-radius: 8px;
  color: #ffefba;
  background: rgba(255, 239, 186, 0.08);
}

.reset-button:hover,
.reset-button:focus-visible {
  border-color: var(--green);
  color: var(--green);
}

.result-card {
  display: flex;
  flex-direction: column;
}

.result-box {
  display: grid;
  gap: 8px;
  min-height: 178px;
  align-content: center;
  padding: 24px;
  border: 1px solid rgba(155, 235, 24, 0.38);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(155, 235, 24, 0.2), rgba(5, 18, 10, 0.88)),
    radial-gradient(circle at 80% 10%, rgba(199, 255, 100, 0.28), transparent 34%);
}

.result-box span,
.mini-result span,
.reminder span {
  color: var(--muted);
  font-weight: 750;
}

.result-box strong {
  color: var(--green);
  font-size: clamp(2.8rem, 9vw, 5.2rem);
  line-height: 0.95;
  word-break: break-word;
}

.split-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.top-up-result {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 16px;
  border: 1px solid rgba(155, 235, 24, 0.26);
  border-radius: 8px;
  background: rgba(155, 235, 24, 0.08);
}

.top-up-result span {
  color: var(--muted);
  font-weight: 750;
}

.top-up-result strong {
  color: var(--green);
  font-size: 2rem;
  line-height: 1;
}

.next-steps {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(155, 235, 24, 0.32);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(155, 235, 24, 0.12), rgba(0, 0, 0, 0.22));
}

.next-steps span {
  color: var(--green);
  font-weight: 950;
}

.next-steps ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: var(--text);
  line-height: 1.4;
}

.mini-result,
.reminder {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
}

.mini-result strong {
  color: var(--green);
  font-size: 1.8rem;
  line-height: 1;
}

.reminder-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
}

.reminder strong {
  color: var(--text);
  font-size: 1.05rem;
}

.companion-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(12, 28, 18, 0.98), rgba(2, 7, 4, 0.98));
  box-shadow: var(--shadow);
}

.companion-art {
  min-height: 360px;
}

.companion-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.companion-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: clamp(22px, 4vw, 44px);
}

.companion-copy h2,
.ad-copy h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.95;
}

.companion-copy p,
.ad-copy p {
  max-width: 620px;
  margin-bottom: 0;
  color: #dce8d5;
  font-size: 1.08rem;
  line-height: 1.5;
}

.app-table-panel {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 10px;
  border: 1px solid rgba(155, 235, 24, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(155, 235, 24, 0.08), rgba(0, 0, 0, 0.22)),
    rgba(2, 6, 4, 0.58);
}

.app-table-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 62px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
}

.app-table-row img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(155, 235, 24, 0.24);
}

.app-table-row div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.app-table-row strong {
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.1;
}

.app-table-row span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.25;
}

.app-table-row a,
.table-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(155, 235, 24, 0.38);
  border-radius: 8px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 950;
  text-align: center;
  text-decoration: none;
  background: rgba(155, 235, 24, 0.08);
}

.app-table-row a {
  transition: transform 170ms ease, box-shadow 170ms ease, background 170ms ease, color 170ms ease;
}

.app-table-row a:hover,
.app-table-row a:focus-visible {
  transform: translateY(-2px);
  color: #06120b;
  background: linear-gradient(135deg, var(--green), #d7ff8b);
  box-shadow: 0 0 18px rgba(155, 235, 24, 0.25);
}

.scanner-open-link {
  min-width: 112px;
}

.table-status.in-use {
  border-color: rgba(155, 235, 24, 0.2);
  color: var(--cream);
  background: rgba(255, 255, 255, 0.06);
}

.small-herb-ad {
  position: relative;
  display: block;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #020604;
  box-shadow: var(--shadow);
}

.small-herb-ad > img {
  width: 100%;
  display: block;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.44);
}

.ad-hotspot {
  position: absolute;
  z-index: 2;
  top: 60.4%;
  height: 7.8%;
  border-radius: 8px;
}

.ad-hotspot:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

.paypal-hotspot {
  left: 4.1%;
  width: 20.2%;
}

.herb-hotspot {
  left: 25.6%;
  width: 15.6%;
}

.share-modal {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
}

.share-dialog {
  position: relative;
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 18px;
  width: min(560px, 100%);
  padding: 18px;
  border: 1px solid rgba(155, 235, 24, 0.42);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(10, 24, 15, 0.98), rgba(2, 7, 4, 0.98)),
    radial-gradient(circle at 15% 10%, rgba(155, 235, 24, 0.18), transparent 38%);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.62), 0 0 32px rgba(155, 235, 24, 0.16);
}

.share-close {
  position: absolute;
  top: 12px;
  right: 12px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: var(--text);
  font-weight: 900;
  background: rgba(0, 0, 0, 0.42);
  cursor: pointer;
}

.share-close:hover,
.share-close:focus-visible {
  border-color: var(--green);
  color: var(--green);
}

.share-visual {
  align-self: stretch;
  min-height: 190px;
  overflow: hidden;
  border: 1px solid rgba(155, 235, 24, 0.24);
  border-radius: 8px;
  background: #020604;
}

.share-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.share-copy {
  align-self: center;
  padding-right: 72px;
}

.share-copy span {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.share-copy h2 {
  margin-bottom: 8px;
  font-size: clamp(1.9rem, 6vw, 3rem);
  line-height: 0.95;
}

.share-copy p {
  margin-bottom: 0;
  color: #dce8d5;
  font-size: 1.05rem;
  line-height: 1.45;
}

.share-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.share-actions .action-link {
  flex: 1 1 190px;
  width: auto;
}

.share-feedback {
  grid-column: 1 / -1;
  min-height: 20px;
  margin: -4px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.bottom-tab-bar {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  width: min(620px, calc(100% - 24px));
  height: 58px;
  padding: 6px;
  border: 1px solid rgba(155, 235, 24, 0.28);
  border-radius: 8px;
  background: rgba(3, 10, 6, 0.92);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.48), 0 0 24px rgba(155, 235, 24, 0.08);
  backdrop-filter: blur(12px);
  transform: translateX(-50%);
}

.bottom-tab {
  display: grid;
  grid-template-rows: 18px 1fr;
  align-items: center;
  justify-items: center;
  min-width: 0;
  height: 46px;
  padding: 5px 4px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: rgba(247, 250, 243, 0.74);
  text-decoration: none;
  transition: 160ms ease;
}

.bottom-tab .tab-icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: var(--green);
}

.bottom-tab svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bottom-tab strong {
  max-width: 100%;
  overflow: hidden;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bottom-tab:hover,
.bottom-tab:focus-visible {
  border-color: rgba(155, 235, 24, 0.28);
  color: var(--text);
  background: rgba(155, 235, 24, 0.08);
}

.bottom-tab.is-active {
  border-color: rgba(155, 235, 24, 0.52);
  color: #06120b;
  background: linear-gradient(135deg, var(--green), #d7ff8b);
  box-shadow: 0 0 18px rgba(155, 235, 24, 0.26);
}

.bottom-tab.is-active .tab-icon {
  color: #06120b;
}

@media (max-width: 900px) {
  .app-shell {
    width: min(100% - 24px, 720px);
    padding: 16px 0;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .product-stage {
    min-height: 430px;
    padding-top: 0;
  }

  .product-image {
    max-height: 520px;
  }

  .calculator-grid {
    grid-template-columns: 1fr;
    margin-top: 18px;
  }

  .companion-panel {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 560px) {
  body {
    padding-bottom: 72px;
  }

  .hero-copy {
    gap: 20px;
    padding: 18px;
  }

  .brand-row {
    align-items: flex-start;
  }

  .brand-icon {
    width: 58px;
    height: 58px;
  }

  .top-button-row .action-link {
    flex: 1 1 calc(50% - 5px);
    width: auto;
    min-width: 136px;
  }

  .hero-stats,
  .split-dose-panel,
  .split-results,
  .reminder-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats div {
    min-height: auto;
  }

  .product-stage {
    min-height: 330px;
  }

  .input-card,
  .result-card {
    padding: 16px;
  }

  .input-wrap input {
    font-size: 1.3rem;
  }

  .mode-row {
    align-items: flex-start;
  }

  .companion-art {
    min-height: 260px;
  }

  .app-table-row {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 8px;
  }

  .app-table-row img {
    width: 40px;
    height: 40px;
  }

  .app-table-row span {
    font-size: 0.78rem;
  }

  .app-table-row a,
  .table-status {
    min-width: 52px;
    padding: 7px 8px;
  }

  .share-dialog {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .share-visual {
    min-height: 160px;
  }

  .share-copy {
    padding-right: 0;
  }

  .ad-hotspot {
    height: 8.6%;
    top: 60%;
  }

  .paypal-hotspot {
    left: 4.2%;
    width: 20.4%;
  }

  .herb-hotspot {
    left: 25.6%;
    width: 15.8%;
  }

  .bottom-tab-bar {
    bottom: 8px;
    width: calc(100% - 12px);
    height: 56px;
    gap: 2px;
    padding: 5px;
  }

  .bottom-tab {
    height: 44px;
    padding: 4px 2px;
  }

  .bottom-tab .tab-icon {
    width: 16px;
    height: 16px;
  }

  .bottom-tab svg {
    width: 15px;
    height: 15px;
  }

  .bottom-tab strong {
    font-size: 0.62rem;
  }
}
