:root {
  color-scheme: light;
  --ink: #173527;
  --ink-strong: #0f2e21;
  --muted: #5f7669;
  --soft: #eaf3ec;
  --line: #dbe8dd;
  --line-strong: #c6dacb;
  --page: #edf4ee;
  --paper: #fffef9;
  --panel: rgba(255, 254, 250, 0.96);
  --green: #78ad92;
  --green-dark: #4f876b;
  --green-deep: #2f6f54;
  --coffee: #7c5a42;
  --cream: #f7ead3;
  --shadow: 0 18px 46px rgba(42, 78, 57, 0.14);
  --soft-shadow: 0 8px 26px rgba(31, 65, 46, 0.1);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.88), transparent 34%),
    radial-gradient(circle at 88% 16%, rgba(217, 234, 219, 0.75), transparent 30%),
    linear-gradient(180deg, #edf4ee 0%, #f7faf4 52%, #fffef9 100%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.share-preview-image {
  height: 1px;
  left: -9999px;
  opacity: 0.01;
  pointer-events: none;
  position: absolute;
  top: 0;
  width: 1px;
}

.tool-screen {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 254, 248, 0.98)),
    var(--paper);
  border: 1px solid rgba(214, 229, 217, 0.9);
  border-radius: 30px;
  box-shadow: var(--shadow);
  margin: 22px auto 0;
  max-width: 980px;
  overflow: hidden;
  position: relative;
  width: min(calc(100% - 32px), 980px);
}

.topbar,
.app-main,
.info-section {
  margin-inline: auto;
  width: 100%;
}

.topbar {
  align-items: center;
  display: flex;
  justify-content: flex-end;
  min-width: 0;
  padding: 0;
  position: absolute;
  right: 44px;
  top: 20px;
  width: auto;
  z-index: 5;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  background:
    linear-gradient(90deg, transparent 0 39%, rgba(255, 253, 248, 0.72) 40% 48%, transparent 49%),
    linear-gradient(135deg, #94b59a, #4c8769);
  border-radius: 12px;
  display: inline-block;
  flex: 0 0 auto;
  height: 42px;
  width: 42px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: var(--ink-strong);
  font-size: 19px;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

.language-toggle {
  background: rgba(238, 247, 239, 0.86);
  border: 1px solid var(--line);
  border-radius: 999px;
  display: flex;
  gap: 4px;
  padding: 4px;
}

.language-toggle button {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  min-height: 30px;
  padding: 0 12px;
}

.language-toggle button.active {
  background: var(--green-dark);
  color: #fff;
}

.app-main {
  display: grid;
  gap: 14px;
  padding: 38px 44px 28px;
}

.hero {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 285px);
  min-width: 0;
  padding: 4px 0 4px;
}

.hero-copy {
  min-width: 0;
  position: relative;
  z-index: 2;
}

.eyebrow {
  color: var(--green-deep);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 10px;
}

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

h1 {
  color: var(--ink-strong);
  font-size: clamp(42px, 6.1vw, 64px);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.18;
  margin-bottom: 0;
  text-shadow: 0 3px 0 rgba(26, 66, 45, 0.08);
}

h1 span {
  display: block;
}

h1 span:nth-child(2) {
  font-size: 0.82em;
  line-height: 1.1;
  margin-top: 6px;
}

html[lang="en"] h1 {
  font-size: clamp(36px, 5vw, 54px);
  line-height: 1.08;
}

.lede {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
  margin-bottom: 0;
  max-width: 620px;
}

.hero-art {
  align-self: end;
  height: 230px;
  justify-self: end;
  position: relative;
  width: 285px;
}

.hero-coffee-image {
  display: block;
  height: 100%;
  object-fit: contain;
  transform: scale(1.18) translateY(-4px);
  transform-origin: center;
  width: 100%;
}

.steam {
  border-left: 9px solid rgba(220, 189, 138, 0.44);
  border-radius: 50%;
  height: 74px;
  position: absolute;
  top: 0;
  transform: rotate(22deg);
  width: 38px;
}

.steam-one {
  right: 78px;
}

.steam-two {
  right: 54px;
  top: 12px;
}

.steam-three {
  right: 32px;
  top: 24px;
}

.hero-cup {
  background:
    radial-gradient(ellipse at 50% 22%, #8b5f37 0 20%, #c98d53 21% 31%, transparent 32%),
    linear-gradient(135deg, #f9fff3, #b6d0b5 58%, #eef7e7);
  border: 2px solid #d6e6d5;
  border-radius: 18px 18px 34px 34px;
  bottom: 38px;
  height: 88px;
  position: absolute;
  right: 44px;
  width: 118px;
  z-index: 2;
}

.hero-cup::after {
  border: 10px solid #bdd6bb;
  border-left: 0;
  border-radius: 0 28px 28px 0;
  content: "";
  height: 42px;
  position: absolute;
  right: -32px;
  top: 22px;
  width: 30px;
}

.coffee-surface {
  background: radial-gradient(ellipse at center, #6a3d23 0 36%, #b6733a 37% 61%, #ead5aa 62%);
  border-radius: 999px;
  display: block;
  height: 23px;
  margin: 12px auto 0;
  width: 86px;
}

.hero-saucer {
  background: linear-gradient(180deg, #e8f2e4, #aac6aa);
  border: 2px solid #d7e6d3;
  border-radius: 50%;
  bottom: 18px;
  height: 38px;
  position: absolute;
  right: 22px;
  width: 176px;
}

.hero-leaf {
  background: #7eab76;
  border-radius: 100% 0;
  bottom: 15px;
  height: 22px;
  position: absolute;
  right: 30px;
  transform: rotate(-22deg);
  width: 48px;
}

.ad-slot {
  background:
    linear-gradient(90deg, rgba(231, 243, 234, 0.92), rgba(255, 251, 232, 0.78)),
    radial-gradient(circle at 82% 38%, rgba(255, 255, 255, 0.92), transparent 31%);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8), var(--soft-shadow);
  display: grid;
  min-height: 190px;
  overflow: hidden;
  padding: 22px 28px;
  place-items: center;
  position: relative;
}

.ad-label {
  background: rgba(220, 237, 224, 0.94);
  border-radius: 999px;
  color: #5e806a;
  font-size: 13px;
  font-weight: 850;
  left: 26px;
  padding: 6px 14px;
  position: absolute;
  top: 22px;
}

.ad-placeholder {
  border: 1px dashed rgba(96, 132, 105, 0.38);
  border-radius: 18px;
  display: grid;
  gap: 8px;
  min-height: 112px;
  place-items: center;
  text-align: center;
  width: min(520px, 100%);
}

.ad-placeholder p {
  color: var(--green-deep);
  font-size: 28px;
  font-weight: 920;
  margin-bottom: 0;
}

.ad-placeholder span {
  color: var(--muted);
  font-size: 15px;
  font-weight: 750;
}

.ad-placeholder[hidden] {
  display: none;
}

.ad-slot.has-live-ad {
  padding: 22px;
}

.ad-unit {
  min-height: 112px;
  width: 100%;
}

.calculator-grid {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.input-panel {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.field-card,
.result-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--soft-shadow);
  min-width: 0;
}

.field-card {
  display: grid;
  gap: 18px;
  padding: 28px 34px;
}

.field-head {
  align-items: center;
  color: #1f2d27;
  display: flex;
  gap: 16px;
  min-width: 0;
}

.field-head label,
.field-head span:last-child {
  font-size: clamp(20px, 3.1vw, 29px);
  font-weight: 930;
  line-height: 1.2;
}

.field-icon,
.result-icon {
  align-items: center;
  background: linear-gradient(135deg, #8abca0, #5c9678);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(54, 109, 76, 0.18);
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  height: 52px;
  justify-content: center;
  width: 52px;
}

.field-icon svg,
.result-icon svg,
.button-icon svg {
  display: block;
  height: 26px;
  width: 26px;
}

.field-icon circle,
.field-icon path,
.result-icon path,
.button-icon rect,
.button-icon path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.time-picker-trigger {
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, #7e9888 50%) right 19px center / 7px 7px no-repeat,
    linear-gradient(135deg, #ffffff, #fffefa);
  border: 1px solid #d6ddd8;
  border-radius: 8px;
  color: #15241d;
  font-size: clamp(22px, 3.1vw, 29px);
  font-weight: 780;
  min-height: 58px;
  min-width: 0;
  padding: 0 40px 0 18px;
  text-align: center;
  width: 100%;
}

.time-picker-trigger:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(92, 150, 120, 0.24);
  outline-offset: 2px;
}

.time-control {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(82px, 112px) auto minmax(82px, 112px);
  justify-self: center;
  width: fit-content;
}

.time-control .time-separator,
.time-picker-trigger .time-value {
  color: #252d29;
  font-size: 26px;
  font-weight: 900;
}

.time-picker-trigger .time-value {
  display: inline-block;
  min-width: 2ch;
}

.time-picker-modal {
  display: grid;
  inset: 0;
  padding: 18px;
  place-items: end center;
  position: fixed;
  z-index: 60;
}

.time-picker-modal.is-hidden {
  display: none;
}

.time-picker-backdrop {
  background: rgba(21, 36, 29, 0.24);
  border: 0;
  inset: 0;
  padding: 0;
  position: absolute;
}

.time-picker-sheet {
  background: linear-gradient(180deg, #fffffb 0%, #f7fbf5 100%);
  border: 1px solid rgba(148, 180, 159, 0.46);
  border-radius: 22px;
  box-shadow: 0 22px 52px rgba(23, 52, 36, 0.2);
  display: grid;
  gap: 14px;
  max-width: 430px;
  padding: 18px;
  position: relative;
  width: min(100%, 430px);
}

.time-picker-head h2 {
  color: var(--ink-strong);
  font-size: 22px;
  font-weight: 930;
  line-height: 1.2;
  margin-bottom: 0;
  text-align: center;
}

.time-picker-body {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.time-picker-column {
  background:
    linear-gradient(180deg, rgba(247, 251, 245, 0.94), rgba(255, 255, 251, 0.96)),
    linear-gradient(180deg, transparent 0 38%, rgba(126, 185, 153, 0.16) 38% 62%, transparent 62% 100%);
  border: 1px solid #dce7df;
  border-radius: 16px;
  height: 212px;
  overflow-y: auto;
  padding: 84px 0;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
}

.time-picker-column::-webkit-scrollbar {
  display: none;
}

.time-picker-option {
  align-items: center;
  background: transparent;
  border: 0;
  color: #607168;
  display: flex;
  font-size: 22px;
  font-weight: 780;
  height: 44px;
  justify-content: center;
  scroll-snap-align: center;
  width: 100%;
}

.time-picker-option.is-selected {
  color: var(--green-deep);
  font-size: 28px;
  font-weight: 940;
}

.time-picker-divider {
  color: #24352c;
  font-size: 30px;
  font-weight: 950;
}

.time-picker-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

.time-picker-cancel,
.time-picker-done {
  border: 0;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 900;
  min-height: 48px;
}

.time-picker-cancel {
  background: #edf4ee;
  color: var(--muted);
}

.time-picker-done {
  background: linear-gradient(135deg, #83b99c, #5f987b);
  color: #fff;
}

body.time-picker-open {
  overflow: hidden;
}

.timeline {
  display: grid;
  gap: 12px;
  padding-top: 56px;
}

.timeline-track {
  background: linear-gradient(90deg, #7fc0a0, #86bfa5);
  border-radius: 999px;
  height: 8px;
  margin-inline: 4px;
  position: relative;
}

.timeline-track::before {
  background: linear-gradient(90deg, #7fc0a0, #86bfa5);
  border-radius: 999px;
  content: "";
  height: 8px;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

.timeline-track::after {
  content: none;
}

.timeline-markers {
  inset: 0;
  position: absolute;
}

.timeline-cup {
  align-items: center;
  background: linear-gradient(135deg, #84b99d, #5e987b);
  border-radius: 999px 999px 999px 0;
  color: #fff;
  display: flex;
  height: 60px;
  justify-content: center;
  position: absolute;
  top: -78px;
  transform: translateX(-50%) rotate(-45deg);
  width: 60px;
  z-index: 2;
}

.timeline-cup svg {
  display: block;
  filter: drop-shadow(0 2px 2px rgba(38, 70, 51, 0.16));
  height: 34px;
  transform: rotate(45deg);
  width: 34px;
}

.timeline-cup path {
  fill: currentColor;
}

.timeline-cup .timeline-fill {
  fill: #f5fff4;
}

.timeline-cup.is-preview {
  background: #cfd8d1;
  color: #f5faf5;
  opacity: 0.88;
  z-index: 1;
}

.timeline-cup.is-preview .timeline-fill {
  fill: #edf4ee;
}

.timeline-sleep {
  align-items: center;
  background: linear-gradient(135deg, #84b99d, #5e987b);
  border-radius: 999px 999px 999px 0;
  color: #f5fff4;
  display: flex;
  height: 60px;
  justify-content: center;
  position: absolute;
  top: -78px;
  transform: translateX(-50%) rotate(-45deg);
  width: 60px;
  z-index: 2;
}

.timeline-sleep svg {
  display: block;
  filter: drop-shadow(0 2px 2px rgba(38, 70, 51, 0.16));
  height: 34px;
  transform: rotate(45deg) translate(1.5px, -1.5px);
  transform-origin: center;
  width: 34px;
}

.timeline-sleep path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.timeline-remove {
  align-items: center;
  background: var(--coffee);
  border: 0;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  height: 20px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: -3px;
  top: -3px;
  transform: rotate(45deg);
  width: 20px;
  z-index: 3;
}

.timeline-labels {
  color: #303633;
  display: flex;
  font-size: 20px;
  font-weight: 520;
  justify-content: space-between;
}

.coffee-actions {
  align-items: center;
  display: grid;
  gap: 12px;
  justify-items: center;
}

.coffee-count {
  color: var(--muted);
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 0;
}

.primary-button,
.secondary-button {
  align-items: center;
  border: 0;
  display: inline-flex;
  font-weight: 930;
  justify-content: center;
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.primary-button {
  background: linear-gradient(135deg, #83b99c, #5f987b);
  border-radius: 18px;
  box-shadow: 0 14px 28px rgba(71, 132, 95, 0.24);
  color: #fff;
  font-size: clamp(25px, 4vw, 38px);
  gap: 18px;
  min-height: 88px;
  text-shadow: 0 2px 0 rgba(34, 79, 52, 0.18);
  width: 100%;
}

.primary-button:hover {
  background: linear-gradient(135deg, #75ad91, #548c70);
}

.button-icon {
  align-items: center;
  color: #fff;
  display: inline-flex;
}

.button-icon svg {
  height: 40px;
  width: 40px;
}

.secondary-button {
  background: #e9f3ec;
  border-radius: 999px;
  color: var(--green-deep);
  font-size: 19px;
  min-height: 50px;
  padding: 0 34px;
}

.secondary-button-icon {
  display: block;
  height: 24px;
  margin-right: 9px;
  width: 32px;
}

.secondary-button-icon path {
  fill: currentColor;
}

.secondary-button-icon .button-cup-fill {
  fill: #f5fff4;
}

.secondary-button:hover {
  background: #deece2;
}

.bedtime-card {
  align-items: center;
  grid-template-columns: 1fr;
  justify-items: center;
  padding-block: 22px;
}

.bedtime-card .field-icon svg {
  transform: translate(1.5px, -1.5px);
}

.bedtime-card .field-head {
  justify-self: start;
}

.result-panel {
  display: grid;
  gap: 18px;
  padding: 28px;
  scroll-margin-top: 18px;
  text-align: center;
}

.result-panel.is-hidden {
  display: none;
}

.result-head {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: auto minmax(0, 1fr);
  justify-items: start;
  text-align: left;
}

.result-head h2 {
  color: #173527;
  font-size: clamp(22px, 3.1vw, 30px);
  letter-spacing: 0;
  margin-bottom: 6px;
}

.result-head p {
  color: var(--muted);
  font-size: 16px;
  font-weight: 760;
  margin-bottom: 0;
}

.coffee-strip-section {
  display: grid;
  gap: 12px;
  min-width: 0;
  width: 100%;
}

.strip-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.strip-head span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.strip-head strong {
  color: var(--green-deep);
  font-size: 16px;
  font-weight: 900;
}

.coffee-strip {
  height: 58px;
  overflow: hidden;
  position: relative;
}

.coffee-layer {
  display: grid;
  gap: clamp(8px, 2vw, 28px);
  grid-template-columns: repeat(10, minmax(0, 1fr));
  height: 100%;
  left: 0;
  place-items: center;
  position: absolute;
  top: 0;
  width: 100%;
}

.coffee-layer-muted {
  opacity: 0.28;
  width: 100%;
}

.coffee-layer-active {
  -webkit-clip-path: inset(0 var(--strip-crop, 100%) 0 0);
  clip-path: inset(0 var(--strip-crop, 100%) 0 0);
  overflow: hidden;
  transition: clip-path 260ms ease;
  width: 100%;
}

.coffee-cup {
  display: block;
  height: 100%;
  min-width: 0;
  width: 100%;
}

.coffee-cup svg {
  display: block;
  height: 100%;
  width: 100%;
}

.cup-body,
.cup-handle {
  fill: none;
  stroke: #49a278;
  stroke-width: 6;
}

.coffee-fill {
  fill: #49a278;
}

.coffee-layer-muted .cup-body,
.coffee-layer-muted .cup-handle {
  stroke: #789081;
}

.coffee-layer-muted .coffee-fill {
  fill: #789081;
}

.result-time {
  color: var(--muted);
  font-size: 15px;
  font-weight: 820;
}

.result-cups {
  color: var(--ink-strong);
  font-size: clamp(42px, 7.2vw, 66px);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 0;
}

.result-cups strong,
.result-cups span {
  color: #49a278;
}

.result-mg {
  color: #5e5f5d;
  font-size: clamp(18px, 2.6vw, 25px);
  font-weight: 780;
  margin-bottom: 0;
}

.result-tip {
  background: #ecf4ef;
  border-radius: 999px;
  color: #5d806b;
  font-size: 16px;
  font-weight: 780;
  line-height: 1.45;
  margin: 0 auto;
  max-width: 760px;
  padding: 12px 22px;
  width: 100%;
}

.info-section {
  margin-inline: auto;
  max-width: 980px;
  padding: 28px 16px 72px;
  width: 100%;
}

.info-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
}

.info-grid article {
  background: rgba(255, 254, 250, 0.88);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--soft-shadow);
  display: grid;
  gap: 12px;
  padding: 26px 30px;
}

.info-grid h2 {
  color: var(--ink-strong);
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: 0;
  line-height: 1.25;
  margin-bottom: 4px;
}

.info-grid p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
  margin-bottom: 0;
}

.info-ad-slot {
  margin-top: 16px;
  min-height: 160px;
}

@media (max-width: 860px) {
  .tool-screen {
    border-radius: 24px;
    margin-top: 14px;
    width: min(calc(100% - 24px), 720px);
  }

  .topbar {
    right: 28px;
    top: 18px;
  }

  .app-main {
    padding-inline: 28px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) 180px;
  }

  .hero-art {
    height: 170px;
    width: 180px;
  }

  .hero-cup {
    bottom: 28px;
    height: 66px;
    right: 32px;
    width: 88px;
  }

  .hero-cup::after {
    height: 31px;
    right: -25px;
    top: 16px;
    width: 24px;
  }

  .coffee-surface {
    height: 17px;
    width: 62px;
  }

  .hero-saucer {
    height: 28px;
    right: 15px;
    width: 126px;
  }

  .steam {
    height: 48px;
    width: 28px;
  }

  .field-card {
    padding: 24px;
  }

  .info-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  body {
    background: linear-gradient(180deg, #edf4ee 0%, #fbfdf8 100%);
  }

  .tool-screen {
    border-radius: 22px;
    margin-top: 10px;
    width: min(calc(100% - 18px), 480px);
  }

  .topbar {
    right: 16px;
    top: 14px;
  }

  .brand {
    gap: 9px;
  }

  .brand-mark {
    height: 36px;
    width: 36px;
  }

  .brand strong {
    font-size: 16px;
  }

  .brand small {
    display: none;
  }

  .language-toggle button {
    font-size: 12px;
    min-height: 28px;
    padding-inline: 10px;
  }

  .app-main {
    gap: 12px;
    padding: 42px 16px 22px;
  }

  .hero {
    align-items: start;
    gap: 0;
    grid-template-columns: 1fr;
    min-height: 226px;
    padding-bottom: 4px;
    position: relative;
  }

  .eyebrow {
    font-size: 11px;
    margin-bottom: 6px;
  }

  h1 {
    font-size: clamp(31px, 8.8vw, 39px);
    line-height: 1.14;
    margin-bottom: 8px;
  }

  h1 span:nth-child(2) {
    font-size: 0.76em;
    line-height: 1.12;
    margin-top: 8px;
  }

  html[lang="en"] h1 {
    font-size: clamp(22px, 6.5vw, 30px);
    line-height: 1.12;
  }

  .lede {
    font-size: 13px;
    line-height: 1.42;
  }

  .hero-art {
    height: 132px;
    overflow: visible;
    position: absolute;
    right: 4px;
    top: 56px;
    width: 132px;
    z-index: 1;
  }

  .hero-coffee-image {
    transform: scale(1.18) translateY(-34px);
  }

  .hero-cup {
    border-width: 1px;
    border-radius: 12px 12px 22px 22px;
    bottom: 24px;
    height: 45px;
    right: 21px;
    width: 58px;
  }

  .hero-cup::after {
    border-width: 6px;
    height: 20px;
    right: -17px;
    top: 12px;
    width: 16px;
  }

  .coffee-surface {
    height: 11px;
    margin-top: 7px;
    width: 41px;
  }

  .hero-saucer {
    bottom: 13px;
    height: 18px;
    right: 10px;
    width: 80px;
  }

  .hero-leaf {
    display: none;
  }

  .steam {
    border-left-width: 5px;
    height: 31px;
    width: 18px;
  }

  .steam-one {
    right: 43px;
  }

  .steam-two {
    right: 29px;
    top: 8px;
  }

  .steam-three {
    right: 16px;
    top: 14px;
  }

  .ad-slot {
    border-radius: 18px;
    min-height: 126px;
    padding: 16px;
  }

  .ad-label {
    font-size: 11px;
    left: 14px;
    padding: 4px 10px;
    top: 12px;
  }

  .ad-placeholder {
    gap: 5px;
    min-height: 76px;
    padding: 14px;
  }

  .ad-placeholder p {
    font-size: 20px;
  }

  .ad-placeholder span {
    font-size: 12px;
  }

  .field-card {
    border-radius: 18px;
    gap: 14px;
    padding: 18px;
  }

  .field-head {
    gap: 12px;
  }

  .field-head label,
  .field-head span:last-child {
    font-size: 20px;
  }

  .field-icon,
  .result-icon {
    height: 42px;
    width: 42px;
  }

  .field-icon svg,
  .result-icon svg {
    height: 22px;
    width: 22px;
  }

  .time-control {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    width: min(230px, 100%);
  }

  select {
    background:
      linear-gradient(45deg, transparent 50%, #7e9888 50%) right 14px center / 6px 6px no-repeat,
      linear-gradient(135deg, #ffffff, #fffefa);
    font-size: 22px;
    min-height: 50px;
    padding-inline: 12px 32px;
  }

  .timeline {
    gap: 9px;
    padding-top: 56px;
  }

  .timeline-cup {
    height: 46px;
    top: -62px;
    width: 46px;
  }

  .timeline-cup svg {
    height: 27px;
    width: 27px;
  }

  .timeline-sleep {
    height: 46px;
    top: -62px;
    width: 46px;
  }

  .timeline-sleep svg {
    height: 27px;
    width: 27px;
  }

  .timeline-remove {
    height: 18px;
    width: 18px;
  }

  .timeline-labels {
    font-size: 16px;
  }

  .coffee-actions {
    gap: 9px;
  }

  .coffee-count {
    font-size: 14px;
  }

  .secondary-button {
    font-size: 17px;
    min-height: 46px;
    padding-inline: 28px;
  }

  .bedtime-card {
    grid-template-columns: 1fr;
  }

  .primary-button {
    border-radius: 16px;
    font-size: 28px;
    gap: 12px;
    min-height: 70px;
  }

  .button-icon svg {
    height: 32px;
    width: 32px;
  }

  .result-panel {
    border-radius: 18px;
    gap: 14px;
    padding: 20px;
  }

  .result-head {
    gap: 12px;
  }

  .result-head h2 {
    font-size: 22px;
  }

  .result-head p,
  .result-tip {
    font-size: 13px;
  }

  .coffee-strip {
    height: 48px;
  }

  .result-time {
    font-size: 13px;
  }

  .result-cups {
    font-size: clamp(40px, 13vw, 52px);
  }

  .result-mg {
    font-size: 18px;
  }

  .result-tip {
    border-radius: 18px;
    padding: 10px 12px;
  }

  .info-section {
    padding: 22px 10px 48px;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .info-grid article {
    border-radius: 16px;
    gap: 10px;
    padding: 20px;
  }

  .info-grid h2 {
    font-size: 22px;
    margin-bottom: 10px;
  }

  .info-grid p {
    font-size: 14px;
    line-height: 1.75;
  }
}

@media (max-width: 370px) {
  .topbar {
    right: 12px;
  }

  .app-main {
    padding-inline: 12px;
  }

  h1 {
    font-size: 28px;
  }

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

  .hero-art {
    height: 116px;
    right: -2px;
    top: 62px;
    width: 116px;
  }

  .hero-coffee-image {
    transform: scale(1.18) translateY(-26px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
