:root {
  --ink: #2a211c;
  --muted: #746a62;
  --cream: #fff8f1;
  --cream-deep: #f8eadc;
  --orange: #ef6b2e;
  --orange-dark: #d94f16;
  --green: #526f3a;
  --white: #ffffff;
  --line: rgba(72, 45, 25, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 36px 0;
}

.site-nav .brand {
  margin: 0;
  text-decoration: none;
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.site-nav-links a {
  text-underline-offset: 5px;
  text-decoration-color: transparent;
}

.site-nav-links a:hover,
.site-nav-links a:focus-visible {
  color: var(--ink);
  text-decoration-color: var(--orange);
}

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: clamp(36px, 6vw, 88px);
  max-width: 1200px;
  margin: 0 auto;
  padding: 54px 36px 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand img,
.final-cta img {
  border-radius: 15px;
  box-shadow: 0 8px 28px rgba(64, 38, 17, 0.14);
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.11em;
}

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

h1 {
  margin-bottom: 24px;
  font-size: clamp(2.35rem, 4.35vw, 4.55rem);
  line-height: 1.18;
  letter-spacing: -0.045em;
}

h1 em {
  display: inline-block;
  color: var(--orange);
  font-size: 0.88em;
  font-style: normal;
  white-space: nowrap;
  background: linear-gradient(transparent 66%, rgba(239, 107, 46, 0.16) 0);
}

.headline-line { white-space: nowrap; }

.lead {
  max-width: 600px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.5vw, 1.23rem);
}

.lead strong {
  color: var(--ink);
}

.audience-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -8px 0 24px;
}

.audience-tags span {
  padding: 7px 11px;
  color: #5f4b3e;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 780;
}

.store-button {
  display: inline-grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-width: min(100%, 350px);
  padding: 13px 20px 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange), #ff8a32);
  border-radius: 16px;
  box-shadow: 0 14px 32px rgba(218, 79, 21, 0.25);
  font-size: 1.06rem;
  font-weight: 850;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.store-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(218, 79, 21, 0.32);
}

.store-button:focus-visible {
  outline: 3px solid rgba(82, 111, 58, 0.45);
  outline-offset: 4px;
}

.hero-store-trust {
  display: flex;
  align-items: center;
  width: fit-content;
  margin-top: 14px;
  gap: 10px;
  color: var(--muted);
  border-radius: 12px;
  font-size: 0.72rem;
  line-height: 1.35;
  text-decoration: none;
}

.hero-store-trust img {
  width: auto;
  height: 42px;
}

.hero-store-trust:focus-visible {
  outline: 3px solid rgba(82, 111, 58, 0.45);
  outline-offset: 2px;
}

.store-button-small {
  grid-column: 1;
  font-size: 0.68rem;
  font-weight: 650;
  opacity: 0.88;
}

.store-button > .store-button-label {
  grid-column: 1;
}

.store-button > .store-button-arrow {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-size: 1.4rem;
}

.store-note {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.store-note + .browser-fallback-note {
  margin-top: 3px;
}

.hero-visual {
  position: relative;
  min-height: min(76svh, 720px);
  overflow: hidden;
  border-radius: 36px;
  background: #e7cfac;
  box-shadow: 0 30px 80px rgba(59, 35, 17, 0.18);
}

.industry-hero {
  min-height: calc(100svh - 70px);
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  align-items: stretch;
  gap: clamp(28px, 4vw, 56px);
  padding-top: 26px;
  padding-bottom: 48px;
}

.industry-hero .hero-photo-product,
.industry-hero .hero-visual {
  height: clamp(480px, calc(100svh - 155px), 650px);
  min-height: 0;
}

.industry-hero .cake-photo {
  height: 100%;
  min-height: 0;
  object-position: center 68%;
}

.industry-hero-copy {
  align-self: center;
}

.hero-photo-headline {
  position: absolute;
  top: clamp(24px, 4vw, 44px);
  right: 28px;
  left: clamp(24px, 4vw, 44px);
  z-index: 3;
  max-width: 78%;
  color: var(--white);
  text-shadow: 0 3px 24px rgba(28, 14, 5, 0.62);
}

.hero-photo-headline .eyebrow {
  width: fit-content;
  margin-bottom: 10px;
  padding: 7px 10px;
  color: var(--white);
  background: rgba(28, 22, 16, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  letter-spacing: 0.08em;
  backdrop-filter: blur(8px);
}

.hero-photo-headline h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.45rem, 5vw, 4.8rem);
  line-height: 1.08;
}

.hero-photo-headline h1 em {
  color: #ffd7aa;
  background: linear-gradient(transparent 68%, rgba(239, 107, 46, 0.48) 0);
}

.home-hero-metrics {
  position: absolute;
  top: clamp(28px, 16%, 110px);
  right: 0;
  z-index: 3;
  display: grid;
  gap: 10px;
  width: min(132px, calc(100% - 32px));
}

.home-hero-metric {
  display: grid;
  gap: 3px;
  padding: 12px 14px 13px;
  background: rgba(255, 250, 244, 0.91);
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 16px;
  box-shadow: 0 14px 30px rgba(42, 24, 12, 0.2);
  backdrop-filter: blur(12px);
}

.home-hero-metric span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.home-hero-metric strong {
  color: var(--orange-dark);
  font-size: 0.9rem;
  line-height: 1.15;
}

.home-hero-summary {
  display: none;
}

.home-hero-product .hero-photo-headline {
  max-width: calc(100% - 176px);
  padding: 18px 20px 20px;
  color: #4a2b1b;
  background: rgba(255, 250, 244, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(62, 36, 18, 0.1);
  text-shadow: none;
  backdrop-filter: blur(9px);
}

.home-hero-product::after {
  background: none;
}

.home-hero-product .hero-photo-headline .eyebrow {
  color: #5d3822;
  background: rgba(255, 255, 255, 0.66);
  border-color: rgba(255, 255, 255, 0.8);
}

.home-hero-product .hero-photo-headline h1 em {
  color: var(--orange-dark);
  background: linear-gradient(transparent 68%, rgba(239, 107, 46, 0.28) 0);
}

.home-hero-product .hero-photo-headline h1 {
  font-size: clamp(2.45rem, 4.55vw, 4.35rem);
}

.industry-hero .hero-visual::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(25, 14, 7, 0.48) 0%, rgba(25, 14, 7, 0.05) 52%, rgba(25, 14, 7, 0.18) 100%);
  content: "";
  pointer-events: none;
}

.cake-photo {
  width: 100%;
  height: 100%;
  min-height: min(76svh, 720px);
  object-fit: cover;
}

.result-card {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 2px 16px;
  padding: 20px 22px;
  background: rgba(255, 255, 255, 0.91);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(50, 28, 10, 0.18);
  backdrop-filter: blur(16px);
  z-index: 3;
}

.result-card span,
.result-card small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.76rem;
}

.result-card strong {
  font-size: 1rem;
}

.result-card b {
  color: var(--orange-dark);
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1;
}

.hero-product {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(78svh, 740px);
  overflow: hidden;
  padding: 44px 54px 0;
  border: 1px solid rgba(239, 107, 46, 0.14);
  border-radius: 40px;
  background: radial-gradient(circle at 75% 20%, rgba(255, 191, 130, 0.64), transparent 32%), radial-gradient(circle at 15% 76%, rgba(155, 187, 124, 0.34), transparent 31%), linear-gradient(145deg, #fff9f1 0%, #f6e5d1 100%);
  box-shadow: 0 30px 80px rgba(59, 35, 17, 0.16);
}

.hero-photo-product {
  min-height: min(68svh, 640px);
  padding: 0;
  background: #6f4a2d;
}

.hero-photo-product::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(32, 20, 12, 0.03) 38%, rgba(32, 20, 12, 0.22) 100%);
  content: "";
  pointer-events: none;
}

.hero-industry-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-app-preview {
  position: absolute;
  bottom: 22px;
  left: 22px;
  z-index: 3;
  width: 146px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(42, 24, 12, 0.24);
  backdrop-filter: blur(14px);
}

.hero-app-preview span {
  display: block;
  margin: 2px 3px 7px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
}

.hero-app-preview img {
  width: 100%;
  height: 142px;
  object-fit: cover;
  object-position: top;
  border-radius: 11px;
}

.hero-photo-product .metric-rate {
  top: 22px;
  right: 22px;
  left: auto;
}

.hero-photo-product .metric-cost {
  right: 22px;
  bottom: 22px;
}

.hero-product-glow {
  position: absolute;
  inset: 17% 14% 7%;
  border-radius: 50%;
  background: rgba(239, 107, 46, 0.17);
  filter: blur(34px);
}

.app-home-screen {
  position: relative;
  z-index: 1;
  width: min(74%, 390px);
  max-height: 680px;
  object-fit: cover;
  object-position: top;
  border: 8px solid rgba(255, 255, 255, 0.92);
  border-bottom: 0;
  border-radius: 42px 42px 0 0;
  box-shadow: 0 25px 64px rgba(53, 34, 20, 0.24);
}

.floating-metric {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 2px;
  min-width: 152px;
  padding: 14px 17px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(50, 28, 10, 0.15);
  backdrop-filter: blur(14px);
}

.floating-metric span { color: var(--muted); font-size: 0.72rem; font-weight: 720; }
.floating-metric strong { color: var(--orange-dark); font-size: 1.3rem; }
.metric-cost { right: 22px; bottom: 23%; }
.metric-rate { top: 20%; left: 18px; }

.benefits {
  padding: 100px max(24px, calc((100vw - 1120px) / 2));
  background: var(--white);
  text-align: center;
}

h2 {
  margin-bottom: 38px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.28;
  letter-spacing: -0.035em;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  text-align: left;
}

.benefit-grid article {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fffdfb;
}

.benefit-grid article > span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 24px;
  color: var(--orange-dark);
  background: #ffeadc;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 900;
}

.benefit-grid h3 {
  margin-bottom: 8px;
  font-size: 1.14rem;
}

.benefit-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.91rem;
}

.entry-section {
  padding: 100px max(24px, calc((100vw - 1120px) / 2));
  background: var(--cream-deep);
}

.entry-section > p,
.entry-section > h2 {
  max-width: 760px;
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.entry-card {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.entry-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 46px rgba(57, 33, 15, 0.1);
}

.entry-card-kicker {
  margin-bottom: 24px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.entry-card h3 {
  margin-bottom: 10px;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.entry-card p {
  color: var(--muted);
}

.entry-card-link {
  margin-top: auto;
  color: var(--orange-dark);
  font-weight: 850;
}

.calculator-promo {
  padding: 104px max(24px, calc((100vw - 1120px) / 2));
  color: var(--white);
  background: #30261f;
}

.calculator-promo > div:first-child { max-width: 760px; }
.calculator-promo .section-kicker { color: #f2bd8b; }
.calculator-promo h2 { margin-bottom: 16px; }
.calculator-promo > div:first-child > p:last-child { color: rgba(255, 255, 255, 0.7); }

.calculator-menu {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 38px 0 30px;
}

.calculator-menu a {
  display: grid;
  gap: 5px;
  min-height: 170px;
  padding: 24px;
  color: var(--ink);
  background: var(--white);
  border-radius: 20px;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}

.calculator-menu a:hover { transform: translateY(-3px); background: #fff7ee; }
.calculator-menu span { color: var(--orange-dark); font-size: 0.72rem; font-weight: 900; }
.calculator-menu strong { align-self: end; font-size: 1.13rem; }
.calculator-menu small { color: var(--muted); }

.calculator-menu .recipe-calculator-link {
  grid-column: 1 / -1;
  min-height: 132px;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.75fr);
  align-items: center;
  background: linear-gradient(135deg, #fff8ef, #ffe5cc);
}

.calculator-menu .recipe-calculator-link span { grid-column: 1; }
.calculator-menu .recipe-calculator-link strong { grid-column: 1; font-size: clamp(1.25rem, 3vw, 1.75rem); }
.calculator-menu .recipe-calculator-link small { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 1rem; }

.text-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  font-weight: 820;
  text-decoration: none;
}

.workflow {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(48px, 8vw, 110px);
  max-width: 1080px;
  margin: 0 auto;
  padding: 110px 28px;
}

.workflow-image {
  max-height: 690px;
  overflow: hidden;
  border-radius: 34px;
  box-shadow: 0 26px 70px rgba(57, 33, 15, 0.17);
}

.workflow-image img { width: 100%; object-fit: cover; object-position: top; }
.workflow-copy ol { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
.workflow-copy li { display: grid; grid-template-columns: 40px 1fr; gap: 15px; align-items: start; }
.workflow-copy li > span { display: grid; place-items: center; width: 40px; height: 40px; color: var(--orange-dark); background: #ffeadc; border-radius: 50%; font-weight: 900; }
.workflow-copy strong { font-size: 1.06rem; }
.workflow-copy li p { margin: 4px 0 0; color: var(--muted); }

.use-cases {
  padding: 100px max(24px, calc((100vw - 1120px) / 2));
  background: var(--cream-deep);
}

.use-case-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.use-case-grid article { padding: 24px; background: rgba(255, 255, 255, 0.82); border: 1px solid var(--line); border-radius: 18px; }
.use-case-grid strong { font-size: 1rem; }
.use-case-grid p { margin: 8px 0 0; color: var(--muted); font-size: 0.88rem; }
.secondary-link { margin: 24px 0 0; color: var(--muted); font-size: 0.83rem; text-align: right; }
.secondary-link a { text-underline-offset: 4px; }

.seo-copy {
  max-width: 860px;
  margin: 0 auto;
  padding: 96px 28px;
}

.seo-copy h2 {
  margin-bottom: 20px;
}

.seo-copy p {
  color: var(--muted);
  font-size: 1rem;
}

.contact-page {
  max-width: 1040px;
  margin: 0 auto;
  padding: 54px 36px 36px;
}

.contact-hero {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.contact-hero h1 { margin-bottom: 18px; }
.contact-hero .lead { margin-right: auto; margin-left: auto; }

.contact-email-card {
  display: grid;
  gap: 6px;
  max-width: 620px;
  margin: 28px auto 0;
  padding: 20px 24px;
  text-align: left;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 16px 42px rgba(62, 39, 22, 0.08);
}

.contact-email-card span,
.contact-email-card small { color: var(--muted); font-size: 0.78rem; }

.contact-email-card a {
  width: fit-content;
  color: var(--orange-dark);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 850;
  text-underline-offset: 4px;
}

.contact-form-section {
  padding: clamp(24px, 4vw, 42px);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 24px 64px rgba(62, 39, 22, 0.1);
}

.contact-form-heading { max-width: 720px; margin: 0 auto 22px; text-align: center; }
.contact-form-heading h2 { margin-bottom: 12px; }
.contact-form-heading p:last-child { color: var(--muted); }

.contact-form-frame {
  display: block;
  width: 100%;
  min-height: 920px;
  background: #f7f4ef;
  border: 0;
  border-radius: 18px;
}

.contact-form-fallback { margin: 16px 0 0; text-align: center; font-size: 0.82rem; }

.calculator-page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 56px 28px 100px;
}

.calculator-hero {
  max-width: 760px;
  margin: 46px 0 42px;
}

.calculator-hero h1 {
  font-size: clamp(2.45rem, 6vw, 4.8rem);
}

.calculator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 24px;
  align-items: start;
}

.calculator-tool { scroll-margin-top: 20px; }

.recipe-calculator-tool { scroll-margin-top: 20px; }

.recipe-calculator-heading {
  max-width: 760px;
  margin-bottom: 22px;
}

.recipe-calculator-heading h2 { margin-bottom: 12px; }
.recipe-calculator-heading > p:last-child { color: var(--muted); }

.recipe-calculator-card { padding: clamp(20px, 3vw, 30px); }

.material-list-heading,
.material-row {
  display: grid;
  grid-template-columns: minmax(130px, 1.25fr) minmax(120px, 0.95fr) minmax(150px, 1.1fr) minmax(88px, 0.65fr) 34px;
  gap: 10px;
  align-items: end;
}

.material-list-heading {
  padding: 0 4px 8px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.material-list { display: grid; gap: 10px; }

.material-row {
  padding: 14px;
  border: 1px solid rgba(72, 45, 25, 0.12);
  border-radius: 16px;
  background: var(--cream);
}

.material-row label {
  display: none;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.material-row input,
.material-row select {
  width: 100%;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(72, 45, 25, 0.18);
  border-radius: 10px;
  outline: 0;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

.material-row input:focus,
.material-row select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(82, 111, 58, 0.12);
}

.compact-input { display: flex; align-items: center; gap: 5px; }
.compact-input span { color: var(--muted); font-size: 0.68rem; white-space: nowrap; }
.compact-input select { width: 62px; padding-inline: 7px; }

.material-row output {
  align-self: center;
  color: var(--orange-dark);
  font-size: 0.95rem;
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}

.remove-material-button {
  width: 34px;
  height: 34px;
  align-self: center;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: rgba(72, 45, 25, 0.08);
  font: inherit;
  font-size: 1.2rem;
  cursor: pointer;
}

.remove-material-button:disabled { cursor: not-allowed; opacity: 0.3; }

.add-material-button {
  width: 100%;
  margin-top: 12px;
  padding: 13px 18px;
  border: 1px dashed rgba(82, 111, 58, 0.46);
  border-radius: 13px;
  color: var(--green);
  background: rgba(82, 111, 58, 0.06);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.recipe-summary-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.recipe-summary-inputs .field { margin-bottom: 0; }

.supporting-calculators { margin-top: 84px; }

.calculator-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
  padding: 7px;
  background: rgba(248, 234, 220, 0.9);
  border-radius: 18px;
}

.calculator-tabs button {
  min-height: 52px;
  padding: 10px 12px;
  border: 0;
  border-radius: 13px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
}

.calculator-tabs button[aria-selected="true"] {
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 7px 20px rgba(57, 33, 15, 0.09);
}

.calculator-tabs button:focus-visible { outline: 3px solid rgba(82, 111, 58, 0.42); outline-offset: 2px; }

.calculator-card,
.calculator-result {
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--white);
  box-shadow: 0 18px 52px rgba(57, 33, 15, 0.08);
}

.calculator-card h2,
.calculator-result h2 {
  margin-bottom: 24px;
  font-size: 1.55rem;
}

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

.field label {
  font-weight: 800;
}

.field small {
  color: var(--muted);
}

.input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid rgba(72, 45, 25, 0.2);
  border-radius: 13px;
  background: var(--cream);
}

.input-wrap:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(82, 111, 58, 0.13);
}

.input-wrap input {
  width: 100%;
  min-width: 0;
  padding: 13px 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 1.05rem;
}

.input-unit {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
  white-space: nowrap;
}

.calculate-button {
  width: 100%;
  margin-top: 6px;
  padding: 15px 20px;
  border: 0;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange), #ff8a32);
  box-shadow: 0 12px 28px rgba(218, 79, 21, 0.2);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.calculate-button:focus-visible {
  outline: 3px solid rgba(82, 111, 58, 0.45);
  outline-offset: 3px;
}

.calculator-auto-note { margin: 12px 0 0; color: var(--muted); font-size: 0.76rem; }

.calculator-result {
  position: sticky;
  top: 24px;
  color: var(--white);
  background: #30261f;
}

.result-list {
  margin: 0;
}

.result-list div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.result-list dt {
  color: rgba(255, 255, 255, 0.7);
}

.result-list dd {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 850;
}

.result-list .primary-result dd {
  color: #ffb277;
  font-size: clamp(1.65rem, 4vw, 2.4rem);
}

.calculator-primary-value {
  margin: -10px 0 18px;
  color: #ffb277;
  font-size: clamp(2.35rem, 6vw, 3.8rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.calculator-app-prompt {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.calculator-app-prompt strong { color: #ffcfaa; font-size: 1rem; }
.calculator-app-prompt p { margin: 6px 0 0; color: rgba(255, 255, 255, 0.67); font-size: 0.8rem; }

.calculator-result .store-button {
  width: 100%;
  margin-top: 24px;
}

.calculator-result-note {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.74rem;
}

.formula-section {
  margin-top: 80px;
}

.formula-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.formula-grid.four-columns { grid-template-columns: repeat(4, 1fr); }

.formula-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
}

.formula-grid code {
  color: var(--orange-dark);
  font-size: 0.88rem;
  font-weight: 800;
}

.breadcrumb {
  color: var(--muted);
  font-size: 0.82rem;
}

.breadcrumb a { text-underline-offset: 3px; }

.example {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.72fr);
  align-items: center;
  gap: clamp(46px, 8vw, 112px);
  max-width: 1050px;
  margin: 0 auto;
  padding: 110px 28px;
}

.example dl {
  margin: 0 0 22px;
}

.example dl div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.example dt {
  color: var(--muted);
}

.example dd {
  margin: 0;
  font-weight: 800;
}

.example .total {
  color: var(--orange-dark);
  border-bottom: 0;
  font-size: 1.15rem;
}

.example .total dt {
  color: inherit;
  font-weight: 800;
}

.disclaimer {
  color: var(--muted);
  font-size: 0.73rem;
}

.example-image {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 24px 64px rgba(57, 33, 15, 0.16);
}

.final-cta {
  margin: 0 24px 32px;
  padding: 80px 24px;
  color: var(--white);
  background: #30261f;
  border-radius: 32px;
  text-align: center;
}

.final-cta img {
  margin: 0 auto 22px;
}

.final-cta > p:first-of-type {
  margin-bottom: 10px;
  color: #f2bd8b;
  font-weight: 800;
}

.final-cta h2 {
  max-width: 720px;
  margin: 0 auto 30px;
}

.final-cta .store-note {
  color: rgba(255, 255, 255, 0.7);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 26px 28px 40px;
  color: var(--muted);
  font-size: 0.74rem;
}

.legal {
  max-width: 700px;
  margin: 8px 0 0;
  font-size: 0.65rem;
}

.mobile-cta {
  display: none;
}

@media (max-width: 780px) {
  .site-nav {
    align-items: flex-start;
    padding: 16px 18px 0;
  }

  .site-nav .brand span {
    display: none;
  }

  .site-nav-links {
    gap: 13px;
    font-size: 0.74rem;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px 18px 58px;
  }

  .industry-hero {
    gap: 20px;
    padding-top: 14px;
    padding-bottom: 46px;
  }

  .industry-hero .hero-photo-product,
  .industry-hero .hero-visual,
  .industry-hero .cake-photo {
    height: clamp(380px, 55svh, 470px);
    min-height: 0;
  }

  .industry-hero .cake-photo {
    object-position: center 62%;
  }

  .industry-hero-copy {
    padding: 0 4px;
  }

  .industry-hero-copy .lead {
    margin-bottom: 16px;
  }

  .hero-photo-headline {
    top: 18px;
    right: 16px;
    left: 16px;
    max-width: calc(100% - 32px);
  }

  .hero-photo-headline .eyebrow {
    margin-bottom: 8px;
    padding: 6px 9px;
    font-size: 0.7rem;
  }

  .hero-photo-headline h1 {
    max-width: 92%;
    font-size: clamp(2.15rem, 10vw, 3.2rem);
    line-height: 1.06;
  }

  .brand {
    margin-bottom: 24px;
  }

  h1 {
    margin-bottom: 18px;
    font-size: clamp(2.15rem, 10.5vw, 3.8rem);
  }

  .lead {
    margin-bottom: 22px;
  }

  .hero-store-trust {
    margin-top: 13px;
  }

  .hero-visual {
    min-height: 500px;
    border-radius: 25px;
  }

  .cake-photo {
    min-height: 500px;
  }

  .hero-product {
    min-height: 560px;
    padding: 36px 28px 0;
    border-radius: 28px;
  }

  .hero-photo-product {
    min-height: 470px;
    padding: 0;
  }

  .hero-photo-product .hero-industry-photo {
    object-position: center;
  }

  .home-hero-product .hero-industry-photo {
    object-position: center;
  }

  .home-hero-product .hero-photo-headline {
    max-width: calc(100% - 32px);
    padding: 14px 16px 16px;
  }

  .home-hero-product .hero-photo-headline h1 {
    font-size: clamp(2.15rem, 10vw, 3.2rem);
  }

  .home-hero-metrics {
    display: none;
  }

  .home-hero-summary {
    position: absolute;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 42px;
    padding: 9px 11px;
    color: var(--ink);
    background: rgba(255, 250, 244, 0.91);
    border: 1px solid rgba(255, 255, 255, 0.86);
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(42, 24, 12, 0.2);
    font-size: clamp(0.65rem, 2.8vw, 0.82rem);
    white-space: nowrap;
    backdrop-filter: blur(12px);
  }

  .home-hero-summary strong {
    color: var(--orange-dark);
    font-size: 1.05em;
  }

  .home-hero-summary-arrow {
    color: var(--green);
    font-weight: 900;
  }

  .hero-app-preview {
    bottom: 12px;
    left: 12px;
    width: 118px;
    padding: 6px;
    border-radius: 15px;
  }

  .hero-app-preview span {
    margin-bottom: 5px;
    font-size: 0.58rem;
  }

  .hero-app-preview img {
    height: 106px;
    border-radius: 9px;
  }

  .hero-photo-product .metric-rate { top: 12px; right: 12px; }
  .hero-photo-product .metric-cost { right: 12px; bottom: 12px; }
  .industry-hero .hero-photo-product .metric-rate { top: auto; right: 12px; bottom: 78px; }
  .industry-hero .hero-photo-product .metric-cost { right: 12px; bottom: 12px; }

  .app-home-screen { width: min(78%, 350px); max-height: 530px; border-width: 6px; border-radius: 32px 32px 0 0; }
  .floating-metric { min-width: 128px; padding: 11px 13px; }
  .floating-metric strong { font-size: 1.05rem; }
  .metric-cost { right: 10px; bottom: 19%; }
  .metric-rate { top: 17%; left: 8px; }

  .result-card {
    top: auto;
    right: 14px;
    bottom: 14px;
    left: 14px;
    padding: 16px;
  }

  .benefits {
    padding: 76px 20px;
  }

  .contact-page { padding: 30px 16px 24px; }
  .contact-hero { margin-bottom: 28px; }
  .contact-email-card { padding: 17px 18px; }
  .contact-form-section { padding: 20px 8px; border-radius: 22px; }
  .contact-form-heading { padding: 0 10px; }
  .contact-form-frame { min-height: 980px; border-radius: 14px; }

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

  .entry-section {
    padding: 74px 20px;
  }

  .entry-grid,
  .calculator-layout,
  .formula-grid {
    grid-template-columns: 1fr;
  }

  .calculator-menu,
  .use-case-grid {
    grid-template-columns: 1fr 1fr;
  }

  .calculator-promo { padding: 76px 20px; }
  .calculator-menu a { min-height: 150px; padding: 20px; }
  .calculator-menu .recipe-calculator-link {
    grid-template-columns: 1fr;
    min-height: 172px;
  }
  .calculator-menu .recipe-calculator-link span,
  .calculator-menu .recipe-calculator-link strong,
  .calculator-menu .recipe-calculator-link small { grid-column: 1; grid-row: auto; }

  .material-list-heading { display: none; }
  .material-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) 34px;
    align-items: end;
  }
  .material-row label { display: block; }
  .material-name-field { grid-column: 1 / -1; }
  .material-row output { text-align: left; }
  .recipe-summary-inputs { grid-template-columns: 1fr; }
  .formula-grid.four-columns { grid-template-columns: 1fr; }

  .workflow { grid-template-columns: 1fr; padding: 78px 20px; }
  .workflow-image { width: min(100%, 420px); max-height: 620px; margin: 0 auto; }
  .use-cases { padding: 76px 20px; }

  .entry-card {
    min-height: 230px;
  }

  .calculator-page {
    padding: 32px 18px 84px;
  }

  .calculator-hero {
    margin-top: 34px;
  }

  .calculator-result {
    position: static;
  }

  .calculator-tabs { grid-template-columns: 1fr; }

  .example {
    grid-template-columns: 1fr;
    padding: 78px 20px;
  }

  .example-copy {
    order: 1;
  }

  .example-image {
    order: 2;
    max-width: 440px;
    margin: 0 auto;
  }

  .final-cta {
    margin: 0 14px 94px;
    padding: 60px 20px;
    border-radius: 24px;
  }

  footer {
    padding-bottom: 104px;
  }

  .mobile-cta {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 20;
    display: block;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 248, 241, 0.9);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(110%);
    transition:
      transform 180ms ease,
      opacity 180ms ease,
      visibility 180ms ease;
  }

  .mobile-cta.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-cta .store-button {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    width: 100%;
    min-width: 0;
    padding: 11px 14px 12px;
    gap: 2px;
    text-align: center;
  }

  .mobile-cta .store-button-small,
  .mobile-cta .store-button-arrow {
    display: none;
  }

  .mobile-cta .store-button-fallback-note {
    max-width: 31rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.66rem;
    font-weight: 650;
    line-height: 1.35;
  }
}

@media (max-width: 480px) {
  .calculator-menu,
  .use-case-grid { grid-template-columns: 1fr; }
  .hero-product { min-height: 500px; }
  .hero-photo-product { min-height: 430px; }
  .floating-metric { min-width: 116px; }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .store-button {
    transition: none;
  }

  .mobile-cta {
    transition: none;
  }
}
