/*
 * Everything in this file is scoped to the syokuzaiko page only — base.css
 * (and therefore the app.sakumori.com entrance page and every other app's
 * page) is never touched here.
 *
 * Palette and motifs are intentionally distinct from honyomu.css and
 * daily-stock.css: deep green / cream / gray, shelf-tag and quantity-tag
 * accents instead of paper shapes or a shelf-grid hero graphic.
 */

:root {
  --sz-ink: #20261f;
  --sz-soft: #5b6b5a;
  --sz-green: #1f3d2b;
  --sz-green-deep: #142a1d;
  --sz-cream: #f7f3ea;
  --sz-sage: #e7ede4;
  --sz-line: #d9d2c2;
  --sz-card: #ffffff;
  --sz-shadow: 0 20px 40px rgba(31, 61, 43, 0.14);
  --sz-radius: 18px;
  --sz-max: 1120px;
}

body {
  background: #ffffff;
  overflow-x: hidden;
}

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

.sz-section {
  position: relative;
  overflow: hidden;
  padding: 64px 0;
}

.sz-section h1,
.sz-section h2,
.sz-section h3,
.sz-section p {
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.sz-section h1,
.sz-section h2 {
  margin: 0;
  color: var(--sz-ink);
  line-height: 1.4;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.sz-section h1 {
  max-width: 11em;
  font-size: clamp(2rem, 5.6vw, 3.4rem);
}

.sz-section h2 {
  font-size: clamp(1.5rem, 3.6vw, 2.15rem);
}

.sz-section h3 {
  margin: 0 0 8px;
  color: var(--sz-green);
  font-size: 1.02rem;
  line-height: 1.5;
}

.sz-section p {
  margin: 0;
  color: var(--sz-soft);
  line-height: 1.9;
}

.sz-lead {
  max-width: 32em;
  font-size: 1.02rem;
}

.sz-nobreak {
  white-space: nowrap;
}

.sz-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--sz-green);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.sz-kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
}

/* ------------------------------------------------------------------------
   Shelf-tag / quantity-tag accents — this app's own decorative language.
   A small rounded badge with a die-cut circle, like a price tag or a
   storage-location label. Static, aria-hidden, never load-bearing.
   ---------------------------------------------------------------------- */
.sz-tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 5px 14px 5px 20px;
  border-radius: 999px;
  background: var(--sz-green);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.sz-tag::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  transform: translateY(-50%);
}

.sz-tag--step {
  margin-bottom: 14px;
  background: #ffffff;
  color: var(--sz-green);
  border: 1px solid var(--sz-line);
}

.sz-tag--step::before {
  background: var(--sz-green);
}

.sz-hero__tag {
  position: absolute;
  z-index: 2;
  top: 28px;
  right: 20px;
}

@media (min-width: 900px) {
  .sz-hero__tag {
    top: 40px;
    right: calc((100% - var(--sz-max)) / 2 + 20px);
  }
}

.sz-appmark {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.sz-appmark img {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(20, 40, 28, 0.18);
}

.sz-appmark__name {
  color: var(--sz-ink);
  font-weight: 800;
  font-size: 1.1rem;
}

.sz-appmark__meta {
  font-size: 0.86rem;
}

/* ------------------------------------------------------------------------
   Hero
   ---------------------------------------------------------------------- */
.sz-hero {
  min-height: 720px;
  background: linear-gradient(180deg, var(--sz-cream) 0%, #fffdf8 62%, #ffffff 100%);
  padding: 92px 0 72px;
}

.sz-hero__grid {
  display: grid;
  align-items: center;
  gap: 40px;
}

.sz-hero__copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.sz-hero__copy h1 {
  margin-bottom: 20px;
}

.sz-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 28px;
}

.sz-hero__actions p {
  max-width: 18em;
  font-size: 0.85rem;
}

.store-badge {
  display: inline-block;
  line-height: 0;
  border-radius: 10px;
}

.sz-hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 480px;
  align-items: center;
}

.sz-shelf-line {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 6%;
  bottom: 6%;
  width: min(84vw, 460px);
  border-radius: 26px;
  border: 1.5px dashed rgba(31, 61, 43, 0.22);
  transform: translateX(-50%) rotate(-2deg);
}

.sz-phone {
  position: relative;
  z-index: 1;
  width: min(240px, 68vw);
  height: auto;
  border-radius: 30px;
  box-shadow: var(--sz-shadow);
  background: #fff;
}

.sz-phone--hero {
  width: min(300px, 76vw);
}

.sz-phone--large {
  width: min(288px, 76vw);
}

/* ------------------------------------------------------------------------
   Intro / worries section
   ---------------------------------------------------------------------- */
.sz-intro {
  background: #ffffff;
  padding: 56px 0 60px;
}

.sz-section__intro {
  max-width: 700px;
  margin-bottom: 26px;
}

.sz-intro__lead {
  max-width: 640px;
  margin-bottom: 18px !important;
}

.sz-intro__bridge {
  max-width: 640px;
  color: var(--sz-green) !important;
  font-weight: 700;
}

/* ------------------------------------------------------------------------
   Story bands (pair layout: copy + screenshot)
   ---------------------------------------------------------------------- */
.sz-band--sage {
  background: var(--sz-sage);
}

.sz-band--cream {
  background: var(--sz-cream);
}

.sz-band--white {
  background: #ffffff;
}

.sz-pair {
  display: grid;
  gap: 40px;
  align-items: center;
}

.sz-copy {
  max-width: 500px;
}

.sz-copy h2 {
  margin-bottom: 18px;
}

.sz-copy p + p {
  margin-top: 14px;
}

.sz-single-shot,
.sz-shot-row {
  display: flex;
  justify-content: center;
}

.sz-shot-row {
  align-items: flex-end;
  gap: 18px;
}

.sz-shot-row .sz-phone:nth-child(2),
.sz-shot-row picture:nth-child(2) .sz-phone {
  transform: translateY(28px);
}

.sz-premium__note {
  font-size: 0.84rem;
  margin-top: 16px !important;
}

/* ------------------------------------------------------------------------
   Basic features
   ---------------------------------------------------------------------- */
.sz-features {
  background: var(--sz-cream);
}

.sz-feature-grid {
  display: grid;
  gap: 16px;
}

.sz-feature-grid article {
  position: relative;
  padding: 24px;
  border: 1px solid var(--sz-line);
  border-radius: var(--sz-radius);
  background: var(--sz-card);
}

.sz-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--sz-sage);
  color: var(--sz-green);
  margin-bottom: 14px;
}

.sz-feature-icon svg {
  width: 19px;
  height: 19px;
}

.sz-feature-grid p {
  font-size: 0.92rem;
}

/* ------------------------------------------------------------------------
   Final CTA
   ---------------------------------------------------------------------- */
.sz-cta {
  background: var(--sz-green);
  color: #fff;
  min-height: 380px;
  display: flex;
  align-items: center;
  padding-bottom: 80px;
}

.sz-cta__inner {
  max-width: 760px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sz-cta__icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  margin-bottom: 18px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.sz-cta h2 {
  color: #fff;
  margin-bottom: 14px;
}

.sz-cta p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 32em;
  margin: 0 auto 24px;
}

.sz-cta .device-note {
  margin: 14px 0 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
}

.sz-cta__links {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.sz-cta__links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.sz-cta__links a:hover,
.sz-cta__links a:focus-visible {
  color: #fff;
  border-color: #fff;
}

.sz-cta a:focus-visible {
  outline-color: #fff;
}

.sz-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

/* ------------------------------------------------------------------------
   Responsive
   ---------------------------------------------------------------------- */
@media (min-width: 700px) {
  .sz-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .sz-section {
    padding: 100px 0;
  }

  .sz-wrap {
    padding: 0 28px;
  }

  .sz-hero__grid,
  .sz-pair {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 60px;
  }

  .sz-pair--reverse {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  }

  .sz-pair--reverse .sz-copy {
    order: 2;
  }

  .sz-pair--reverse .sz-single-shot,
  .sz-pair--reverse .sz-shot-row {
    order: 1;
  }

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

@media (max-width: 899px) {
  .site-header__inner {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .site-header__brand {
    font-size: 0.95rem;
  }

  .site-header__back {
    max-width: calc(100vw - 40px);
    font-size: 0.8rem;
    padding: 5px 10px;
  }
}

@media (max-width: 699px) {
  .sz-section {
    padding: 52px 0;
  }

  .sz-hero {
    min-height: auto;
    padding-top: 46px;
  }

  .sz-section h1 {
    max-width: 9.5em;
    font-size: clamp(1.7rem, 7.2vw, 2rem);
    word-break: keep-all;
    overflow-wrap: anywhere;
  }

  .sz-lead {
    max-width: 19em;
    font-size: 1rem;
  }

  .sz-hero__actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .sz-hero__visual {
    min-height: 400px;
  }

  .sz-phone--hero {
    width: min(236px, 62vw);
  }

  .sz-shelf-line {
    width: 260px;
  }

  .sz-shot-row {
    gap: 12px;
  }

  .sz-shot-row .sz-phone {
    width: min(150px, 42vw);
    border-radius: 22px;
  }

  .sz-shot-row .sz-phone:nth-child(2),
  .sz-shot-row picture:nth-child(2) .sz-phone {
    transform: translateY(20px);
  }

  .sz-hero__tag {
    top: 18px;
    right: 16px;
    font-size: 0.72rem;
    padding: 4px 12px 4px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sz-tag,
  .sz-shelf-line {
    transition: none !important;
  }
}
