/* =========================================================================
 * 致理生活 ChihleeLife — chihlee.app marketing site
 * Rebuild v3 · warm paper + wine accent · 2026-05-08
 * ========================================================================= */

:root {
  color-scheme: light;

  --paper: #f8f4ec;
  --paper-soft: #fbf7ef;
  --paper-deep: #efe7d8;
  --ink: #161514;
  --ink-soft: #2e2b27;
  --muted: #6e675d;
  --line: #ddd2bf;
  --line-strong: #c9bba4;
  --surface: #fffaf1;
  --surface-solid: #fffdf8;
  --wine: #8b3a4a;
  --wine-dark: #642a36;
  --wine-deep: #431a24;
  --moss: #51614a;
  --blue: #334761;

  --container: 1180px;
  --text: 760px;
  --gutter: 24px;
  --radius-card: 8px;
  --shadow-line: 0 1px 0 rgba(22, 21, 20, 0.06);
  --shadow-soft: 0 18px 48px rgba(70, 50, 31, 0.12);
  --shadow-device: 0 28px 70px rgba(40, 22, 28, 0.28);

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang TC",
    "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "PingFang TC", "Noto Sans TC", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.72), rgba(248, 244, 236, 0.92)),
    repeating-linear-gradient(0deg, rgba(67, 26, 36, 0.025) 0 1px, transparent 1px 8px),
    var(--paper);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

/* <picture> wraps WebP+PNG fallbacks; keep it layout-transparent so the inner
   <img> participates in the parent layout exactly as a bare <img> would. */
picture {
  display: contents;
}

a {
  color: var(--wine-dark);
  text-decoration: none;
}

a:hover {
  color: var(--wine);
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

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

::selection {
  background: rgba(139, 58, 74, 0.16);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 740;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  font-size: 4.5rem;
}

h2 {
  font-size: 2.6rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.1rem;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--wine);
  font-size: 0.82rem;
  font-weight: 760;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-lead,
.lead {
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.18rem;
  line-height: 1.72;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.text-container {
  max-width: calc(var(--text) + var(--gutter) * 2);
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  color: #fff;
  background: var(--wine-deep);
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Header */

.site-header {
  position: sticky;
  top: 12px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 18px;
  width: calc(100% - 24px);
  max-width: 1220px;
  margin: 12px auto 0;
  padding: 9px 10px 9px 12px;
  background: rgba(255, 250, 241, 0.9);
  border: 1px solid rgba(201, 187, 164, 0.68);
  border-radius: 8px;
  box-shadow: var(--shadow-line);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-width: 0;
}

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

.brand span {
  display: grid;
  line-height: 1.05;
}

.brand strong {
  font-size: 0.96rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.75rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1 1 auto;
  justify-content: flex-end;
}

.site-nav a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 640;
  line-height: 1;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--wine-dark);
  background: rgba(139, 58, 74, 0.1);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--wine);
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.header-cta:hover {
  color: #fff;
  background: var(--wine-dark);
}

/* One-page screenshot-led homepage */

.onepage-hero {
  min-height: 86svh;
  padding: 132px 0 80px;
  background:
    linear-gradient(90deg, rgba(248, 244, 236, 0.98) 0%, rgba(248, 244, 236, 0.92) 46%, rgba(239, 231, 216, 0.76) 100%),
    var(--paper);
}

.onepage-hero::after {
  display: none;
}

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

.onepage-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.onepage-hero h1 {
  max-width: 740px;
  margin-bottom: 24px;
  font-size: 4.85rem;
  line-height: 1.02;
}

.hero-shot-stack {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

.hero-shot-stack figure {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(22, 21, 20, 0.12);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.hero-shot-stack figure:nth-child(1) {
  transform: translateY(34px);
}

.hero-shot-stack figure:nth-child(2) {
  transform: translateY(-18px);
}

.hero-shot-stack figure:nth-child(3) {
  transform: translateY(62px);
}

.hero-shot-stack img {
  width: 100%;
}

.app-store-showcase {
  padding: 36px 0 84px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 90px;
}

.app-slide {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 0.7fr);
  gap: 72px;
  align-items: center;
  min-height: 820px;
  padding: 86px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 110px;
}

.app-slide.is-reversed {
  grid-template-columns: minmax(360px, 0.7fr) minmax(0, 0.86fr);
}

.app-slide.is-reversed .app-slide-copy {
  order: 2;
}

.app-slide.is-reversed .app-store-shot {
  order: 1;
}

.app-slide-copy {
  max-width: 560px;
}

.slide-number {
  display: block;
  margin-bottom: 34px;
  color: var(--moss);
  font-size: 1rem;
  font-weight: 780;
}

.app-slide h3 {
  margin-bottom: 20px;
  font-size: 3rem;
  line-height: 1.08;
}

.app-slide h3 span {
  display: block;
}

.app-slide p {
  color: var(--muted);
  font-size: 1.06rem;
}

.app-store-shot {
  width: min(100%, 414px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(22, 21, 20, 0.12);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.app-store-shot img {
  width: 100%;
}

.onepage-support {
  background: rgba(255, 253, 248, 0.5);
}

.support-story {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 58px;
  align-items: start;
}

.support-story .section-heading {
  margin-bottom: 0;
}

.support-story .section-heading p {
  color: var(--muted);
}

/* Controls */

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 740;
  line-height: 1.1;
  white-space: nowrap;
}

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

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

.btn.secondary {
  color: var(--ink);
  background: rgba(255, 253, 248, 0.72);
  border-color: var(--line);
}

.btn.secondary:hover {
  color: var(--wine-dark);
  border-color: var(--line-strong);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--wine-dark);
  font-weight: 760;
}

.text-link::after {
  content: "->";
  font-weight: 700;
}

/* Home hero */

.home-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 76svh;
  margin-top: -58px;
  padding: 138px 0 56px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, var(--paper) 0%, rgba(248, 244, 236, 0.96) 34%, rgba(248, 244, 236, 0.6) 64%, rgba(248, 244, 236, 0.16) 100%),
    linear-gradient(180deg, rgba(251, 247, 239, 0.5), rgba(239, 231, 216, 0.5));
}

.hero-content {
  position: relative;
  z-index: 2;
}

.home-hero h1 {
  margin-bottom: 18px;
  font-size: 5.6rem;
  line-height: 0.98;
}

.home-hero .hero-lead {
  max-width: 650px;
  color: var(--ink-soft);
  font-size: 1.28rem;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.device-shot {
  position: relative;
  width: 284px;
  aspect-ratio: 9 / 19.5;
  margin: 0;
  overflow: hidden;
  background: #070707;
  border: 1px solid rgba(22, 21, 20, 0.18);
  border-radius: 28px;
  box-shadow: var(--shadow-device);
}

.device-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.hero-device {
  position: absolute;
}

.main-device {
  right: 16%;
  bottom: -70px;
  width: 330px;
}

.side-device {
  right: 2%;
  top: 108px;
  width: 238px;
  opacity: 0.9;
}

.flat-device {
  right: 37%;
  bottom: 34px;
  width: 202px;
  opacity: 0.82;
}

/* Shared sections */

section {
  padding: 96px 0;
}

.section-layout,
.catalog-layout,
.privacy-layout,
.detail-layout,
.support-layout,
.page-hero-layout,
.feature-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 64px;
  align-items: start;
}

.section-copy h2,
.catalog-copy h2,
.privacy-layout h2,
.detail-copy h2,
.support-lead h2,
.section-heading h2 {
  margin-bottom: 16px;
}

.section-copy,
.catalog-copy,
.support-lead,
.detail-copy {
  max-width: 470px;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 46px;
}

.rhythm-section {
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.5), rgba(248, 244, 236, 0));
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.workflow-item {
  min-height: 270px;
  padding: 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.workflow-index {
  display: block;
  margin-bottom: 24px;
  color: var(--moss);
  font-size: 0.92rem;
  font-weight: 780;
}

.workflow-item h3 {
  margin-bottom: 12px;
}

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

.token-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.token-row a,
.feature-jump a {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-soft);
  background: rgba(255, 253, 248, 0.6);
  font-size: 0.88rem;
  font-weight: 680;
}

.token-row a:hover,
.feature-jump a:hover {
  color: var(--wine-dark);
  border-color: var(--line-strong);
}

/* Spotlight */

.spotlight-section {
  padding-top: 108px;
}

.spotlight {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 68px;
  align-items: center;
  padding: 76px 0;
  border-top: 1px solid var(--line);
}

.spotlight.is-reversed .spotlight-copy {
  order: 2;
}

.spotlight.is-reversed .spotlight-media {
  order: 1;
}

.spotlight-copy {
  max-width: 510px;
}

.spotlight-copy h3 {
  margin-bottom: 16px;
  font-size: 2.25rem;
}

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

.check-list {
  display: grid;
  gap: 10px;
  margin: 24px 0 26px;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 24px;
  color: var(--ink-soft);
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 10px;
  height: 10px;
  background: var(--wine);
  border-radius: 50%;
}

.spotlight-media,
.feature-index-media,
.feature-hero-media {
  display: flex;
  justify-content: center;
}

.device-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  justify-items: center;
  width: min(100%, 520px);
}

.device-pair .device-shot:first-child {
  transform: translateX(28px);
  z-index: 2;
}

.device-pair .device-shot.rear {
  width: 238px;
  opacity: 0.88;
  transform: translateX(-28px);
}

/* Catalog */

.catalog-section {
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-lines {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.feature-line {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  min-height: 98px;
  padding: 16px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.54);
  border: 1px solid rgba(201, 187, 164, 0.72);
  border-radius: var(--radius-card);
}

.feature-line:hover {
  color: var(--ink);
  border-color: var(--wine);
  background: var(--surface-solid);
}

.feature-line-number {
  color: var(--moss);
  font-size: 0.86rem;
  font-weight: 780;
}

.feature-line strong,
.feature-line small {
  display: block;
}

.feature-line small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.privacy-strip {
  color: #fdf7ed;
  background: var(--blue);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(22, 21, 20, 0.18);
}

.privacy-strip h2,
.privacy-strip .eyebrow {
  color: #fff7ec;
}

.privacy-strip p {
  color: rgba(255, 247, 236, 0.82);
}

.privacy-strip .text-link {
  color: #fff;
}

.privacy-layout {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 0.86fr) auto;
  align-items: center;
}

/* Privacy policy */

.privacy-hero {
  padding: 118px 0 78px;
  border-bottom: 1px solid var(--line);
}

.privacy-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 52px;
  align-items: end;
}

.privacy-hero h1 {
  max-width: 820px;
  font-size: 3.45rem;
}

.privacy-hero .hero-lead {
  max-width: 720px;
  margin-top: 24px;
}

.privacy-updated {
  display: grid;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: rgba(255, 253, 248, 0.72);
}

.privacy-updated span {
  color: var(--wine);
  font-size: 0.82rem;
  font-weight: 760;
}

.privacy-updated strong {
  color: var(--ink);
  font-size: 1.12rem;
}

.privacy-updated p {
  color: var(--muted);
  font-size: 0.95rem;
}

.privacy-summary-section {
  padding: 42px 0 36px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.42);
}

.privacy-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.privacy-summary-grid article {
  min-height: 154px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: rgba(255, 253, 248, 0.78);
}

.privacy-summary-grid span {
  display: block;
  margin-bottom: 12px;
  color: var(--wine);
  font-size: 0.88rem;
  font-weight: 780;
}

.privacy-summary-grid p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.privacy-policy-section {
  padding-top: 64px;
}

.privacy-policy-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 58px;
  align-items: start;
}

.privacy-toc {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 6px;
}

.privacy-toc a {
  padding: 10px 12px;
  color: var(--ink-soft);
  border-radius: var(--radius-card);
  font-size: 0.92rem;
  font-weight: 680;
}

.privacy-toc a:hover {
  color: var(--wine-dark);
  background: rgba(139, 58, 74, 0.1);
}

.privacy-prose {
  color: var(--ink-soft);
}

.privacy-prose > section {
  padding: 0 0 58px;
  scroll-margin-top: 110px;
}

.privacy-prose > section + section {
  padding-top: 58px;
  border-top: 1px solid var(--line);
}

.privacy-prose h2 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: 2rem;
}

.privacy-prose p,
.privacy-prose li {
  color: var(--muted);
  font-size: 1.02rem;
}

.privacy-prose ul {
  max-width: 760px;
  margin: 18px 0 0;
  padding-left: 1.25em;
}

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

.privacy-data-table {
  display: grid;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
  background: rgba(255, 253, 248, 0.48);
}

.privacy-data-table > div {
  display: grid;
  grid-template-columns: 0.8fr 0.85fr 1.2fr 1.15fr;
}

.privacy-data-table span {
  padding: 15px 16px;
  color: var(--muted);
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  font-size: 0.94rem;
  line-height: 1.55;
}

.privacy-data-table span:first-child,
.privacy-data-head span {
  color: var(--ink);
  font-weight: 760;
}

.privacy-data-head span {
  background: rgba(239, 231, 216, 0.68);
}

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

.service-list article {
  min-height: 126px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: rgba(255, 253, 248, 0.74);
}

.service-list strong {
  display: block;
  margin-bottom: 8px;
  color: var(--wine);
}

.service-list p {
  font-size: 0.98rem;
}

/* Page heroes */

.page-hero {
  padding: 118px 0 76px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1,
.feature-hero h1 {
  max-width: 760px;
  font-size: 3.5rem;
}

.page-hero .hero-lead {
  align-self: end;
  margin-top: 34px;
}

.feature-hero {
  padding: 112px 0 88px;
  border-bottom: 1px solid var(--line);
}

.feature-hero-layout {
  align-items: center;
}

.feature-hero .hero-lead {
  margin-top: 20px;
}

.feature-hero .device-shot {
  width: 300px;
}

.feature-jump {
  position: sticky;
  top: 82px;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 0 24px;
  margin-bottom: 28px;
  background: linear-gradient(180deg, var(--paper) 74%, rgba(248, 244, 236, 0));
}

.feature-index-section {
  padding-top: 32px;
}

.feature-index-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: center;
  padding: 76px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 150px;
}

.feature-index-row:first-of-type {
  border-top: 0;
}

.feature-index-copy {
  max-width: 540px;
}

.feature-index-copy h2 {
  margin-bottom: 16px;
}

.feature-index-copy p {
  color: var(--muted);
}

.compact-device {
  width: 276px;
}

.device-pair.compact .device-shot {
  width: 238px;
}

/* Detail pages */

.detail-section {
  background: rgba(255, 253, 248, 0.42);
}

.detail-layout {
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
}

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

.step-list {
  display: grid;
  gap: 12px;
}

.step-item,
.support-steps article,
.summary-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: rgba(255, 253, 248, 0.76);
}

.step-item,
.support-steps article {
  padding: 22px;
}

.step-item span,
.support-steps span {
  display: block;
  margin-bottom: 18px;
  color: var(--moss);
  font-size: 0.88rem;
  font-weight: 780;
}

.step-item h3,
.support-steps h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.step-item p,
.support-steps p {
  color: var(--muted);
  font-size: 0.98rem;
}

.related-section {
  padding-top: 76px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.summary-card {
  display: grid;
  gap: 7px;
  min-height: 174px;
  padding: 18px;
  color: var(--ink);
}

.summary-card:hover {
  color: var(--ink);
  border-color: var(--wine);
}

.summary-card span {
  color: var(--wine);
  font-size: 0.82rem;
  font-weight: 760;
}

.summary-card small {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

/* Support / legal */

.support-section {
  background: rgba(255, 253, 248, 0.45);
}

.support-steps {
  display: grid;
  gap: 12px;
}

.faq-section {
  padding-top: 76px;
}

.faq {
  display: grid;
  gap: 10px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: rgba(255, 253, 248, 0.74);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 720;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--wine);
  font-size: 1.4rem;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "-";
}

.faq details > div {
  padding: 0 20px 18px;
  color: var(--muted);
}

.legal-section {
  padding-top: 70px;
}

.prose {
  color: var(--ink-soft);
  font-size: 1.04rem;
  line-height: 1.8;
}

.prose h2 {
  margin-top: 44px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  font-size: 1.55rem;
}

.prose h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.prose ul {
  padding-left: 1.2em;
}

.legal-meta {
  margin-bottom: 32px;
  padding-bottom: 16px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}

/* Footer */

.site-footer {
  padding: 54px 0 30px;
  color: var(--ink-soft);
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
}

.footer-layout,
.footer-bottom {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.footer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: start;
}

.footer-intro {
  max-width: 420px;
}

.footer-intro img {
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  border-radius: 8px;
}

.footer-intro p {
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: flex-end;
}

.footer-links a {
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 660;
}

.footer-links a:hover {
  color: var(--wine-dark);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

/* 404 */

.notfound {
  display: grid;
  justify-items: center;
  min-height: 68svh;
  padding: 132px 24px 88px;
  text-align: center;
}

.notfound-code {
  margin: 0 0 8px;
  color: var(--wine);
  font-family: var(--font-display);
  font-size: 7rem;
  font-weight: 780;
  line-height: 1;
}

.notfound p {
  max-width: 520px;
  color: var(--muted);
}

.notfound .action-row {
  justify-content: center;
}

/* Motion */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Responsive */

@media (max-width: 1080px) {
  h1 {
    font-size: 3.6rem;
  }

  h2 {
    font-size: 2.2rem;
  }

  .home-hero h1 {
    font-size: 4.4rem;
  }

  .onepage-hero-layout,
  .privacy-hero-layout,
  .privacy-policy-layout,
  .support-story,
  .app-slide,
  .app-slide.is-reversed {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .app-slide.is-reversed .app-slide-copy,
  .app-slide.is-reversed .app-store-shot {
    order: initial;
  }

  .app-slide {
    min-height: auto;
  }

  .main-device {
    right: 7%;
  }

  .side-device {
    right: -8%;
  }

  .flat-device {
    right: 30%;
  }

  .section-layout,
  .catalog-layout,
  .privacy-layout,
  .detail-layout,
  .support-layout,
  .page-hero-layout,
  .feature-hero-layout,
  .feature-index-row,
  .spotlight {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .section-copy,
  .catalog-copy,
  .support-lead,
  .detail-copy {
    max-width: 680px;
  }

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

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

  .privacy-summary-grid,
  .service-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .privacy-toc {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .spotlight.is-reversed .spotlight-copy,
  .spotlight.is-reversed .spotlight-media {
    order: initial;
  }

  .page-hero .hero-lead {
    margin-top: 0;
  }
}

@media (max-width: 760px) {
  :root {
    --gutter: 18px;
  }

  body {
    font-size: 16px;
  }

  h1,
  .page-hero h1,
  .feature-hero h1 {
    font-size: 2.7rem;
  }

  h2 {
    font-size: 1.9rem;
  }

  h3 {
    font-size: 1.28rem;
  }

  .site-header {
    top: 8px;
    width: calc(100% - 16px);
    margin-top: 8px;
    gap: 8px;
  }

  .brand small {
    display: none;
  }

  .site-nav {
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    padding: 8px 9px;
    font-size: 0.86rem;
    white-space: nowrap;
  }

  .header-cta {
    min-height: 34px;
    padding: 0 10px;
    font-size: 0.84rem;
  }

  .home-hero {
    min-height: 74svh;
    margin-top: -54px;
    padding: 122px 0 42px;
  }

  .home-hero h1 {
    font-size: 3.3rem;
  }

  .onepage-hero {
    min-height: auto;
    padding: 104px 0 58px;
  }

  .onepage-hero h1 {
    font-size: 3rem;
  }

  .hero-shot-stack {
    grid-template-columns: repeat(3, 72%);
    gap: 10px;
    overflow-x: auto;
    padding: 4px 0 18px;
    scrollbar-width: none;
  }

  .hero-shot-stack::-webkit-scrollbar {
    display: none;
  }

  .hero-shot-stack figure:nth-child(n) {
    transform: none;
  }

  .home-hero .hero-lead,
  .hero-lead,
  .lead {
    font-size: 1.05rem;
  }

  .main-device {
    right: -112px;
    bottom: -44px;
    width: 248px;
    opacity: 0.42;
  }

  .side-device,
  .flat-device {
    display: none;
  }

  section {
    padding: 68px 0;
  }

  .workflow-grid,
  .feature-lines,
  .summary-grid,
  .privacy-summary-grid,
  .service-list {
    grid-template-columns: 1fr;
  }

  .privacy-hero {
    padding: 92px 0 58px;
  }

  .privacy-hero h1 {
    font-size: 2.55rem;
  }

  .privacy-policy-section {
    padding-top: 54px;
  }

  .privacy-prose > section {
    padding-bottom: 46px;
  }

  .privacy-prose > section + section {
    padding-top: 46px;
  }

  .privacy-prose h2 {
    font-size: 1.7rem;
  }

  .privacy-data-table {
    gap: 10px;
    border: 0;
    background: transparent;
  }

  .privacy-data-head {
    display: none !important;
  }

  .privacy-data-table > div {
    display: grid;
    grid-template-columns: 1fr;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: rgba(255, 253, 248, 0.74);
  }

  .privacy-data-table span {
    display: grid;
    grid-template-columns: 7.5em minmax(0, 1fr);
    gap: 12px;
    padding: 12px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .privacy-data-table span::before {
    content: attr(data-label);
    color: var(--wine);
    font-weight: 760;
  }

  .privacy-data-table span:last-child {
    border-bottom: 0;
  }

  .app-slide {
    padding: 64px 0;
  }

  .app-slide h3 {
    font-size: 2rem;
  }

  .slide-number {
    margin-bottom: 20px;
  }

  .app-store-shot {
    width: min(100%, 360px);
  }

  .support-story {
    gap: 34px;
  }

  .workflow-item {
    min-height: auto;
    padding: 22px;
  }

  .spotlight {
    padding: 54px 0;
  }

  .spotlight-copy h3 {
    font-size: 1.7rem;
  }

  .device-shot,
  .feature-hero .device-shot,
  .compact-device {
    width: 238px;
  }

  .device-pair {
    width: min(100%, 410px);
  }

  .device-pair .device-shot:first-child {
    width: 214px;
    transform: translateX(16px);
  }

  .device-pair .device-shot.rear,
  .device-pair.compact .device-shot {
    width: 196px;
    transform: translateX(-16px);
  }

  .privacy-layout {
    grid-template-columns: 1fr;
  }

  .page-hero,
  .feature-hero {
    padding: 88px 0 58px;
  }

  .feature-jump {
    position: static;
    padding-top: 0;
  }

  .feature-index-row {
    padding: 58px 0;
  }

  .footer-layout,
  .footer-bottom {
    grid-template-columns: 1fr;
  }

  .footer-layout {
    display: grid;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .footer-bottom {
    display: grid;
  }
}

@media (max-width: 430px) {
  .brand strong {
    font-size: 0.9rem;
  }

  .home-hero h1 {
    font-size: 2.85rem;
  }

  .onepage-hero h1 {
    font-size: 2.42rem;
  }

  .site-nav a {
    padding: 7px 7px;
  }

  .action-row {
    align-items: stretch;
  }

  .btn {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
