:root {
  color-scheme: light;
  --ink: #343731;
  --muted: #565b53;
  --orange: #b55206;
  --orange-deep: #914006;
  --line: #dfdfd9;
  --header-height: 4.25rem;
  font-family: "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  line-height: 1.65;
  color: var(--ink);
  background: #fff;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, figure, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
button, a { touch-action: manipulation; }
img { display: block; width: 100%; }
:focus-visible { outline: 3px solid #226b50; outline-offset: 3px; }
.site-header :focus-visible, .hero :focus-visible { outline-color: #fff; }
section[id] { scroll-margin-top: var(--header-height); }
.wrap { width: min(960px, calc(100% - 3rem)); margin-inline: auto; }

.skip-link {
  position: fixed;
  top: .5rem;
  left: 1rem;
  z-index: 9;
  padding: .6rem 1rem;
  background: #fff;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.site-header {
  position: fixed;
  z-index: 5;
  inset: 0 0 auto;
  color: #fff;
  background: rgb(14 13 11 / 70%);
  backdrop-filter: blur(6px);
}
.nav-inner {
  width: min(1520px, 84%);
  min-height: var(--header-height);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 700;
  letter-spacing: .035em;
  white-space: nowrap;
}
.brand-mark { width: 2.6rem; height: 2.35rem; object-fit: contain; filter: brightness(0) invert(1); }
@media (min-width: 701px) and (max-width: 950px) {
  .nav-inner { width: calc(100% - 2.5rem); }
}
#primary-nav, .hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
#primary-nav { gap: clamp(1rem, 2vw, 2rem); font-weight: 600; }
#primary-nav a { padding-block: .65rem; }
#primary-nav a:hover { text-decoration: underline; text-underline-offset: .35em; }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .55rem;
  min-height: 3rem;
  padding: .65rem 1.3rem;
  border: 1px solid transparent;
  border-radius: .6rem;
  font-weight: 650;
  line-height: 1.45;
  text-align: center;
}
.primary { color: #fff; background: var(--orange); }
.primary:hover { background: var(--orange-deep); }
.login, .on-photo { border-color: rgb(255 255 255 / 85%); color: white; background: transparent; }
.login { min-height: 2.75rem; padding: .45rem 1.25rem; }
.login:hover, .on-photo:hover { background: rgb(255 255 255 / 14%); }
.menu-toggle { display: none; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: #423022;
}
.hero-photo, .hero::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-photo {
  z-index: -2;
  object-fit: cover;
  object-position: center top;
}
.hero::after {
  content: "";
  z-index: -1;
  background: linear-gradient(90deg, rgb(47 31 18 / 77%), rgb(53 34 20 / 69%) 37%, rgb(54 32 15 / 38%) 54%, transparent 73%);
}
.hero-inner {
  min-height: clamp(28rem, 42.35vw, 55rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-block: calc(var(--header-height) + 2.5rem) 3.5rem;
}
h1 {
  font-size: 2rem;
  line-height: 1.38;
  font-weight: 750;
  letter-spacing: .035em;
}
.hero-inner p { margin-top: 1rem; font-size: 1.125rem; }
.hero-actions { gap: .85rem; margin-top: 1.65rem; }

.section { padding-block: clamp(3.75rem, 5.4vw, 5.5rem); }
h2 {
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: .02em;
  text-wrap: balance;
}
.situations { text-align: center; }
.scenes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2.1rem;
}
.scenes img {
  aspect-ratio: 1.86;
  object-fit: cover;
  border-radius: .75rem;
}
.scenes figcaption { margin-top: .8rem; }
.scenes h3 { font-size: 1.3rem; }
.scenes p { max-width: 19em; margin: .2rem auto 0; color: var(--muted); text-wrap: balance; }

.features { background: linear-gradient(120deg, #faf5ee, #f7f8f8 76%); }
.feature-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.8rem);
  margin-top: 1.8rem;
}
.feature-list { display: grid; gap: .25rem; }
.feature-list button {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  align-items: start;
  gap: .85rem;
  padding: .75rem .95rem;
  border: 1px solid transparent;
  border-radius: .6rem;
  background: transparent;
  color: var(--muted);
  text-align: left;
}
.feature-list button:hover { background: rgb(255 255 255 / 72%); }
.feature-list button[aria-pressed="true"] {
  border-color: #e4c7aa;
  background: #fff;
  box-shadow: inset 3px 0 var(--orange);
}
.feature-number {
  font: 600 2rem/1.2 system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  color: #747474;
}
.feature-list strong {
  display: block;
  color: var(--ink);
  font-size: 1.1875rem;
  line-height: 1.5;
}
.feature-list [aria-pressed="true"] :is(strong, .feature-number) { color: var(--orange); }
.showcase img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: .9rem; }

.experience { text-align: center; background: radial-gradient(ellipse at 50% 65%, #eaf0e7, #fff 58%); }
.experience h2 + p { margin: .65rem auto 0; color: var(--muted); text-wrap: balance; }
.line-ai-stage {
  width: min(100%, 56rem);
  margin: 1.5rem auto 0;
  border-radius: 1.1rem;
  overflow: hidden;
  background: #e2e8f0;
  box-shadow: 0 18px 40px rgb(46 55 42 / 12%);
}
.line-ai-frame {
  display: block;
  width: 100%;
  height: 52rem;
  border: 0;
  background: transparent;
}
.demo-note { margin-top: 1rem; color: var(--muted); font-size: .9rem; }
@media (max-width: 850px) {
  .line-ai-frame { height: 70rem; }
}

.trial { text-align: center; background: linear-gradient(105deg, #fcf0e1, #fff8f0 65%, #f6f6ef); }
.trial-intro { margin-bottom: .5rem; color: #775032; font-weight: 600; }
.trial-copy { max-width: 37rem; margin: .95rem auto 1.6rem; font-size: 1.125rem; text-align: left; }
.site-footer { padding: 2.25rem 1rem 1.8rem; text-align: center; color: #484848; background: #f4f4f4; }
.site-footer nav { display: flex; justify-content: center; gap: .5rem 1.6rem; flex-wrap: wrap; font-weight: 600; }
.site-footer small { display: block; margin-top: .9rem; color: #616161; font-size: .8125rem; }

@media (max-width: 700px) {
  :root { --header-height: 3.75rem; }
  .wrap, .nav-inner { width: calc(100% - 2rem); }
  .menu-toggle {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: .4rem;
    background: transparent;
  }
  .menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: white;
  }
  .menu-toggle span { position: relative; }
  .menu-toggle span::before, .menu-toggle span::after { position: absolute; left: 0; content: ""; }
  .menu-toggle span::before { top: -7px; }
  .menu-toggle span::after { top: 7px; }
  .menu-toggle[aria-expanded="true"] span { background: transparent; }
  .menu-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }
  #primary-nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    max-height: calc(100dvh - var(--header-height));
    overflow: auto;
    gap: .2rem;
    padding: .6rem 1rem 1rem;
    background: rgb(26 24 22 / 97%);
  }
  #menu-toggle[aria-expanded="true"] + #primary-nav { display: grid; }
  #primary-nav a { padding-inline: .65rem; }
  .login { justify-self: start; margin-top: .25rem; }
  .hero {
    --photo-height: clamp(16rem, 60vw, 22rem);
    --photo-top: calc(var(--header-height) - 1.1rem);
    --photo-bottom: calc(var(--photo-top) + var(--photo-height));
    /* 延伸同一張照片到導覽列後方，將手持手機的主體留在選單下方。 */
    background: #423022 url("images/hero.jpg") 80% top / auto var(--photo-height) no-repeat;
  }
  .hero-photo { top: var(--photo-top); height: var(--photo-height); object-position: 80% top; }
  .hero::after {
    background: linear-gradient(180deg, transparent 0, transparent calc(var(--photo-bottom) - 4.5rem), #423022 var(--photo-bottom));
  }
  .hero-inner { min-height: 0; padding-block: calc(var(--photo-bottom) - .5rem) 2.25rem; }
  .hero-inner p { margin-top: .7rem; font-size: 1.0625rem; }
  .hero-actions { gap: .6rem; margin-top: 1.15rem; }
  .hero-actions .button { padding-inline: .85rem; }
  .section { padding-block: 2.85rem; }
  .scenes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem .85rem; margin-top: 1.35rem; }
  .scenes figcaption { margin-top: .5rem; }
  .scenes h3 { font-size: 1.15rem; }
  .feature-layout { grid-template-columns: 1fr; gap: 1rem; margin-top: 1.3rem; }
  .feature-list button { gap: .5rem; padding-inline: .7rem; }
  .trial-copy { font-size: 1.0625rem; }
}


@media (prefers-reduced-motion: no-preference) {
  .awaiting-entry { opacity: 0; transform: translateY(15px); transition: transform 440ms ease-out, opacity 440ms ease-out; }
  .awaiting-entry.has-entered, .awaiting-entry:focus-within { opacity: 1; transform: none; }
}
@media print {
  [data-reveal] { opacity: 1; transform: none; }
}
