@font-face {
  font-family: Lato;
  src: url("assets/lato-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Lato;
  src: url("assets/lato-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: Lato;
  src: url("assets/lato-bold-italic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Material Symbols";
  src: url("assets/material-symbols.woff2") format("woff2");
  font-display: block;
}

:root {
  color-scheme: light;
  --paper: #fffaf6;
  --white: #fffcf9;
  --cream: #f8efe7;
  --ink: #2e2325;
  --muted: #625357;
  --rose-dark: #a92856;
  --rose-pale: #f8e7ec;
  --line: #e9dcd7;
  --gutter: clamp(18px, 4vw, 56px);
  --header-height: 82px;
  --hero-ink: #fffaf6;
  --hero-accent: #ffdeea;
  --sans: Lato, system-ui, sans-serif;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
}

:root:lang(zh-Hant) {
  --sans: Lato, "PingFang TC", "Noto Sans CJK TC", "Microsoft JhengHei", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-padding-top: 28px; }
body { margin: 0; }
h1, h2, h3, p, figure { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--rose-dark);
  outline-offset: 4px;
}

.shell {
  width: min(calc(100% - 2 * var(--gutter)), 1264px);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 3;
  inset: 8px auto auto 8px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--white);
  transform: translateY(-150%);
}

.skip-link:focus { transform: none; }

.icon {
  display: inline-block;
  flex: none;
  width: 1em;
  height: 1em;
  overflow: hidden;
  font-family: "Material Symbols";
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: normal;
  white-space: nowrap;
  font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
}

.site-header {
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 42px);
  min-height: var(--header-height);
  color: var(--hero-ink);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -.04em;
  white-space: nowrap;
}

.brand img { border-radius: 25%; }
.brand-accent { color: var(--rose-dark); }
.site-header .brand-accent { color: var(--hero-accent); }

.header-nav, .site-footer nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  color: var(--muted);
  font-size: .88rem;
  font-weight: 600;
}

.header-nav { margin-inline-start: auto; color: inherit; }
.header-nav a:hover { color: var(--hero-accent); }
.site-footer nav a:hover { color: var(--rose-dark); }
.site-header :focus-visible, .hero :focus-visible { outline-color: var(--hero-ink); }

.language {
  position: relative;
  display: grid;
  align-items: center;
  isolation: isolate;
}

.language .icon {
  position: absolute;
  left: 10px;
  font-size: 17px;
  pointer-events: none;
}

.language .language-chevron {
  right: 9px;
  left: auto;
}

.language select {
  appearance: none;
  width: 178px;
  min-height: 44px;
  padding: 0 28px 0 34px;
  border: 1px solid #fffaf680;
  border-radius: 9px;
  background: #21171438;
  font-size: .81rem;
  font-weight: 600;
  cursor: pointer;
}

.language option { color: var(--ink); background: var(--paper); }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: calc(var(--header-height) + 24px) clamp(38px, 8vh, 96px);
  background: #352820;
  color: var(--hero-ink);
}

.hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(180deg, #1c1410cc, transparent 22%),
    linear-gradient(12deg, #1c1410f5 3%, #1c1410bf 24%, #1c14101a 54%, transparent 68%);
  content: "";
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.042em;
}

.hero h1 em {
  display: block;
  margin-top: .04em;
  color: var(--hero-accent);
}

.hero-copy p {
  max-width: 38ch;
  margin-top: 18px;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 49px;
  padding: 10px 15px 10px 17px;
  border-radius: 9px;
  background: var(--rose-dark);
  color: #fff;
  font-size: .88rem;
  font-weight: 650;
}

.button:hover { background: #891b42; }
.button .icon { font-size: 18px; }

.platforms {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 500;
  white-space: nowrap;
}

.hero .platforms { color: var(--hero-ink); }

.hero-photo {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

h2 {
  font-size: clamp(2.2rem, 3.6vw, 3.4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.035em;
}

:lang(zh-Hant) .hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.7rem);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -.04em;
}

:lang(zh-Hant) .hero h1 em { font-style: normal; }

:lang(zh-Hant) h2 {
  font-size: clamp(1.8rem, 3.2vw, 3.2rem);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -.03em;
}

.features { padding-block: clamp(65px, 7.5vw, 104px); }
.features h2 { margin-bottom: 34px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--line);
}

.feature {
  padding: clamp(22px, 2.45vw, 34px);
  background: var(--white);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 11px;
  background: var(--rose-pale);
  color: var(--rose-dark);
  font-size: 23px;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.07rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -.022em;
}

.feature p, .getting-started p {
  max-width: 53ch;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.72;
}

.categories {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 22px;
}

.categories p {
  font-size: .82rem;
  font-weight: 650;
}

.categories ul {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.categories li {
  padding: 6px 11px;
  border-radius: 6px;
  background: var(--cream);
  color: var(--muted);
  font-size: .8rem;
}

.app-preview {
  padding-block: clamp(46px, 6vw, 78px);
  border-block: 1px solid #eedbe0;
  background: #fbf0f3;
}

.preview-layout {
  display: grid;
  grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
  align-items: center;
  gap: clamp(28px, 6vw, 100px);
}

.preview-copy > p {
  max-width: 39ch;
  margin-top: 17px;
  color: var(--muted);
  line-height: 1.7;
}

.preview-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  margin-top: 24px;
  padding: 5px;
  border: 1px solid #eedbe0;
  border-radius: 12px;
  background: var(--white);
}

.preview-tabs button {
  min-height: 44px;
  padding: 7px clamp(8px, 1.15vw, 15px);
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
}

.preview-tabs button:hover { color: var(--rose-dark); }

.preview-tabs button[aria-selected="true"] {
  background: var(--rose-pale);
  color: #8f2249;
}

.preview-copy .preview-note {
  margin-top: 15px;
  font-size: .81rem;
}

.preview-stage {
  min-width: 0;
  border: 1px solid #edd4dd;
  border-radius: 22px;
  background: radial-gradient(ellipse at 50% 40%, #fff9f8 0%, #f5dce5 85%);
}

.preview-panel {
  padding: 29px 14px 18px;
  border-radius: inherit;
}

.preview-panel figure {
  display: grid;
  justify-items: center;
  gap: 15px;
}

.phone {
  width: min(100%, 247px);
  overflow: hidden;
  border: 7px solid #382a30;
  border-radius: 32px;
  background: #fdf5fa;
  box-shadow: 0 0 0 1px #160e13, 0 17px 31px #67244128;
}

.screen { width: 100%; height: auto; }

.screen-header {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 46px;
  padding: 9px 9px 6px;
  background: #faf0f4;
  font-size: .92rem;
  font-weight: 700;
}

.phone .screen-header img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

figcaption {
  color: #573e49;
  text-align: center;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.4;
}

.getting-started { padding-block: clamp(44px, 6vw, 76px); }
.getting-started h2 { margin-bottom: 12px; }

.site-footer { border-top: 1px solid var(--line); }

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  min-height: 90px;
  padding-block: 15px;
}

.footer-inner .brand { font-size: 1.15rem; }
.site-footer nav { flex-wrap: wrap; row-gap: 12px; }
.site-footer [aria-current="page"] { color: var(--rose-dark); text-decoration: underline; }

.information-page .site-header {
  position: static;
  justify-content: space-between;
  color: var(--ink);
}

.information-page .site-header .brand-accent { color: var(--rose-dark); }
.information-page .site-header :focus-visible { outline-color: var(--rose-dark); }
.information-page .language select { border-color: var(--line); background: var(--white); }

.information-document {
  max-width: 760px;
  padding-block: clamp(40px, 6vw, 80px);
  font-size: 1.05rem;
  line-height: 1.65;
}

.information-document h1 {
  margin-bottom: 18px;
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  line-height: 1.12;
  letter-spacing: -.035em;
}

.information-document section { margin-top: 34px; }

.information-document h2,
:lang(zh-Hant) .information-document h2 {
  margin-bottom: 10px;
  font-size: clamp(1.3rem, 2.7vw, 1.65rem);
}

.information-document p + p { margin-top: 12px; }
.information-document ul { margin-block: 0; padding-inline-start: 1.4em; }
.information-document li + li { margin-top: 9px; }
.information-document .provider-links { margin-top: 12px; }
.information-document a { color: var(--rose-dark); text-decoration: underline; overflow-wrap: anywhere; }

.information-document .contact-box {
  margin-top: 12px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
}

.information-document .document-meta {
  color: var(--muted);
  font-size: .95rem;
}

@media (max-aspect-ratio: 1/1) {
  .hero-photo { object-position: 80% center; }
  .hero::after {
    background:
      linear-gradient(180deg, #1c1410cc, transparent 19%),
      linear-gradient(0deg, #1c1410f5 2%, #1c1410c4 25%, #1c14101a 56%, transparent 70%);
  }
}

@media (max-width: 920px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .preview-layout { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 595px) {
  :root { --header-height: 72px; }
  .site-header { justify-content: space-between; gap: 10px; }
  .header-nav { display: none; }
  .language select { width: 161px; font-size: .76rem; }
  .site-header .brand img { width: 32px; height: 32px; }
  .site-header .brand { font-size: 1.2rem; }

  .hero h1 { font-size: clamp(2.4rem, 10vw, 3.8rem); }
  .hero-copy p { margin-top: 16px; }
  .hero-actions { margin-top: 20px; }
  .features h2 { margin-bottom: 22px; }
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .feature-icon { margin-bottom: 11px; }

  .preview-panel { padding-block: 20px 15px; }
  .phone { max-width: 223px; }
  .footer-inner { justify-content: flex-start; }
  .footer-inner nav { order: 1; width: 100%; }
}

@media (max-height: 520px) {
  .hero { padding-block: calc(var(--header-height) + 6px) 16px; }
  .hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.4rem); }
  :lang(zh-Hant) .hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
  .hero-copy p { margin-top: 10px; line-height: 1.4; }
  .hero-actions { margin-top: 14px; }
}

@media (max-height: 520px) and (orientation: landscape) {
  .hero::after {
    background:
      linear-gradient(180deg, #1c1410cc, transparent 33%),
      linear-gradient(90deg, #1c1410d9, #1c14108c 35%, transparent 78%),
      linear-gradient(0deg, #1c1410a6, transparent 48%);
  }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .button, .header-nav a, .preview-tabs button { transition: background-color .18s, color .18s; }
}
