/* /foodlog/ product page only. Policy pages use styles.css. */
:root {
  color-scheme: light;
  --paper: #faf8f2;
  --paper-deep: #f3f0e6;
  --surface: #ffffff;
  --ink: #1c261f;
  --muted: #4d5850;
  --green: #2f5b3c;
  --green-strong: #244a30;
  --green-soft: #e2ece3;
  --edge: #dde3d8;
  --device: #20261f;
  --focus: #1d6b3a;
  --radius: 20px;
  --wrap: 1160px;
  --header-h: 64px;
}

* {
  box-sizing: border-box;
}

.lang-ko [data-lang="en"],
.lang-en [data-lang="ko"] {
  display: none !important;
}

html {
  scroll-padding-top: calc(var(--header-h) + 12px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Apple SD Gothic Neo",
    "Noto Sans KR", "Malgun Gothic", Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-text-size-adjust: 100%;
}

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

a {
  color: var(--green);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--green-strong);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--green);
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

/* Header */

.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 242, 0.94);
  border-bottom: 1px solid var(--edge);
}

@supports (backdrop-filter: blur(8px)) {
  .top {
    background: rgba(250, 248, 242, 0.82);
    backdrop-filter: blur(10px);
  }
}

.top-inner {
  display: flex;
  align-items: center;
  gap: 8px 28px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  margin-right: auto;
}

.brand img {
  border-radius: 8px;
}

.top-nav {
  display: flex;
  gap: 4px;
}

.top-nav a,
.lang-switch a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.top-nav a:hover {
  background: var(--green-soft);
  color: var(--green-strong);
}

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--edge);
  border-radius: 999px;
  background: var(--surface);
}

.lang-switch a {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.875rem;
  color: var(--muted);
}

.lang-switch a[aria-current="true"] {
  background: var(--green);
  color: #fff;
  font-weight: 600;
}

/* Buttons */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background-color 0.15s ease;
}

.btn-primary {
  background: var(--green);
  color: #fff;
}

.btn-primary:hover {
  background: var(--green-strong);
  color: #fff;
}

.btn-quiet {
  background: var(--surface);
  border-color: var(--edge);
  color: var(--ink);
}

.btn-quiet:hover {
  border-color: var(--green);
  color: var(--green-strong);
}

/* Devices: real captures inside a plain frame. */

.device {
  background: var(--device);
  box-shadow: 0 24px 48px -20px rgba(28, 38, 31, 0.45), 0 2px 6px rgba(28, 38, 31, 0.12);
}

.device img {
  width: 100%;
  background: #f6f8f2;
}

.phone {
  padding: 2.6%;
  border-radius: 14% / 6.9%;
}

.phone img {
  border-radius: 11.6% / 5.7%;
}

.tablet {
  padding: 2.2%;
  border-radius: 5.6% / 4.3%;
}

.tablet img {
  border-radius: 3.6% / 2.75%;
}

/* Hero */

.hero {
  padding: 48px 0 28px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: 48px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-strong);
  font-size: 0.9rem;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(2.35rem, 5.2vw, 4rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.lead {
  margin: 22px 0 30px;
  max-width: 34em;
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
  color: var(--muted);
}

.hero-meta {
  margin-top: 22px;
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 0.96;
}

.hero-food {
  position: absolute;
  top: 0;
  right: 0;
  width: 82%;
  height: 78%;
  object-fit: cover;
  object-position: 72% 50%;
  border-radius: 28px;
  box-shadow: 0 18px 40px -24px rgba(28, 38, 31, 0.4);
}

.hero-phone {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 46%;
}

.sample-tag {
  position: absolute;
  left: 49%;
  bottom: 3%;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--edge);
  color: var(--green-strong);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.hero-note {
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Sections */

.section {
  padding: 88px 0;
}

.section-head {
  max-width: 44rem;
  margin-bottom: 44px;
}

.kicker {
  margin-bottom: 10px;
  color: var(--green);
  font-weight: 700;
  font-size: 0.95rem;
}

.section h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  margin-bottom: 14px;
}

.section-head p:last-child:not(.kicker) {
  color: var(--muted);
  font-size: 1.08rem;
}

.fine {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Steps */

.how {
  background: var(--surface);
  border-top: 1px solid var(--edge);
  border-bottom: 1px solid var(--edge);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

/* Text comes first in the DOM for reading order; wide layouts show the screen on top. */
.step {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 26px;
}

.step .phone {
  width: min(100%, 270px);
  margin: 0 auto;
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 700;
}

.step h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

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

/* Features */

.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px 24px 22px;
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
}

.feature h3 {
  font-size: 1.15rem;
}

.feature p {
  color: var(--muted);
  flex: 1;
}

.feature-link {
  margin-top: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  align-self: flex-start;
}

.feature-link::after {
  content: " →";
}

/* Screens */

.screens {
  background: var(--paper-deep);
}

.showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 56px;
  margin-bottom: 72px;
}

.showcase-flip .showcase-text {
  order: 2;
}

.showcase-text h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  margin-bottom: 14px;
}

.showcase-text p + p {
  margin-top: 12px;
}

.showcase-text p:not(.fine) {
  color: var(--muted);
}

figure {
  margin: 0;
}

.showcase-media .phone {
  width: min(100%, 300px);
  margin: 0 auto;
}

figcaption {
  margin-top: 14px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.tablet-block .showcase-text {
  max-width: 40rem;
  margin-bottom: 32px;
}

.tablet-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  max-width: 800px;
}

/* Control */

.control-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.control-grid li {
  padding: 26px 26px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--edge);
}

.control-grid h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.control-grid p {
  color: var(--muted);
}

.control-grid strong {
  color: var(--ink);
  font-weight: 600;
}

.control-links {
  margin-top: 26px;
  color: var(--muted);
}

/* Plans */

.plans {
  background: var(--surface);
  border-top: 1px solid var(--edge);
  border-bottom: 1px solid var(--edge);
}

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

.plan {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--edge);
  background: var(--paper);
}

.plan-pro {
  background: var(--green-soft);
  border-color: #c7d8ca;
}

.plan h3 {
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.plan ul {
  margin: 0 0 18px;
  padding-left: 1.2rem;
}

.plan li + li {
  margin-top: 8px;
}

.plan-note {
  font-size: 0.95rem;
  color: var(--muted);
}

.plans-fine {
  margin-top: 22px;
}

/* Download */

.store-grid {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 820px;
}

.store {
  padding: 26px 26px 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--edge);
}

.store h3 {
  font-size: 1.35rem;
}

.store-devices {
  margin: 4px 0 18px;
  color: var(--muted);
}

.store-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1.5px dashed #a9bcab;
  color: var(--green-strong);
  font-weight: 600;
}

.store-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c7963a;
}

.store-link {
  max-width: 100%;
}

/* Footer */

.foot {
  padding: 56px 0 40px;
  background: var(--ink);
  color: #e7ece6;
}

.foot a {
  color: #fff;
}

.foot a:hover {
  color: #cfe3d2;
}

.foot :focus-visible {
  outline-color: #9fd5ae;
}

.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px;
}

.foot-about p + p {
  margin-top: 10px;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
}

.foot-brand img {
  border-radius: 7px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.foot-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}

.foot-notes {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.85rem;
  color: #c4ccc4;
}

.foot-notes p + p {
  margin-top: 6px;
}

/* Tablet */

@media (max-width: 1023px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .hero-copy {
    max-width: 40rem;
  }

  .hero-visual {
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
  }

  .steps {
    gap: 24px;
  }

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

/* Phone */

@media (max-width: 719px) {
  :root {
    --header-h: 104px;
  }

  body {
    font-size: 1rem;
  }

  .wrap {
    padding: 0 18px;
  }

  .top-inner {
    flex-wrap: wrap;
    padding-top: 8px;
    padding-bottom: 6px;
    min-height: 0;
  }

  .top-nav {
    order: 3;
    width: 100%;
    margin-left: -12px;
  }

  .top-nav a {
    padding: 0 12px;
  }

  .hero {
    padding-top: 30px;
  }

  .hero h1 {
    font-size: clamp(2.1rem, 9.6vw, 2.6rem);
  }

  .lead {
    margin: 16px 0 24px;
  }

  .actions .btn {
    flex: 1 1 auto;
  }

  .hero-visual {
    aspect-ratio: 1 / 1.12;
  }

  .hero-food {
    width: 88%;
    height: 64%;
    border-radius: 22px;
  }

  .hero-phone {
    width: 50%;
  }

  .sample-tag {
    left: 53%;
    bottom: 4%;
    font-size: 0.8rem;
    white-space: normal;
    max-width: 47%;
  }

  .section {
    padding: 64px 0;
  }

  .section-head {
    margin-bottom: 32px;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 52px;
  }

  .step {
    flex-direction: column;
    gap: 20px;
  }

  .step .phone {
    width: min(78%, 270px);
  }

  .feature-grid,
  .control-grid,
  .plan-grid,
  .store-grid,
  .foot-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .showcase {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    margin-bottom: 56px;
  }

  .showcase-flip .showcase-text {
    order: 0;
  }

  .showcase-media .phone {
    width: min(78%, 300px);
  }

  .tablet-row {
    gap: 14px;
  }

  .plan,
  .control-grid li,
  .feature,
  .store {
    padding: 22px 20px;
  }
}

@media (max-width: 359px) {
  .lang-switch a {
    padding: 0 9px;
  }

  .top-nav a {
    padding: 0 9px;
    font-size: 0.9rem;
  }
}
