@font-face {
  font-family: "DayPin Serif";
  src: url("/assets/NotoSerifSC.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --canvas: #f7f2e9;
  --surface: #fffcf7;
  --selection: #ebe2d3;
  --ink: #1b1a18;
  --secondary-ink: #756f68;
  --border: #ded8d1;
  --action: #3b3936;
  --footer: #242522;
  --serif: "DayPin Serif", "Songti SC", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid #8b5f37;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--ink);
  color: #ffffff;
  transform: translateY(-160%);
}

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

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(27, 26, 24, 0.11);
  background: rgba(255, 252, 247, 0.96);
}

.header-inner,
.footer-inner,
.footer-meta {
  width: min(100% - 48px, 1240px);
  margin-inline: auto;
}

.header-inner {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 720;
  text-decoration: none;
}

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

.desktop-nav,
.footer-inner nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.desktop-nav a,
.footer-inner nav a {
  color: var(--secondary-ink);
  font-size: 0.875rem;
  text-decoration: none;
}

.desktop-nav a:hover,
.footer-inner nav a:hover {
  color: var(--ink);
}

.mobile-nav {
  display: none;
  position: relative;
}

.mobile-nav summary {
  display: flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: flex-end;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 700;
  list-style: none;
}

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

.mobile-nav nav {
  position: absolute;
  top: 42px;
  right: 0;
  display: grid;
  width: min(76vw, 260px);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(47, 37, 27, 0.16);
}

.mobile-nav nav a {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}

.mobile-nav nav a:last-child {
  border-bottom: 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(440px, 0.94fr);
  min-height: calc(100vh - 74px);
  border-bottom: 1px solid var(--border);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 96px clamp(40px, 7vw, 118px);
}

.eyebrow,
.feature-number,
.section-label h2,
.card-index {
  margin: 0;
  color: var(--secondary-ink);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 780px;
  margin: 24px 0 26px;
  font-family: var(--serif);
  font-size: clamp(3.4rem, 4.5vw, 6.6rem);
  font-weight: 540;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.hero-intro {
  max-width: 540px;
  margin: 0;
  color: var(--secondary-ink);
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 11px 19px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 720;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--action);
  color: #ffffff;
}

.button-primary:hover {
  background: var(--ink);
}

.button-secondary {
  border-color: #cfc7bd;
  background: var(--surface);
}

.hero-gallery {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: var(--selection);
}

.device-shot {
  position: absolute;
  width: min(36%, 270px);
  margin: 0;
  overflow: hidden;
  border: 9px solid rgba(255, 255, 255, 0.62);
  border-radius: 34px;
  background: #f1eee7;
  box-shadow: 0 32px 70px rgba(48, 36, 25, 0.24);
}

.device-shot img {
  width: 100%;
  height: auto;
}

.device-shot-capture {
  top: 11%;
  left: 12%;
  transform: rotate(-4deg);
}

.device-shot-bookshelf {
  right: 9%;
  bottom: 9%;
  transform: rotate(4deg);
}

.section-label {
  padding: 24px max(24px, 6vw);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 620px;
  border-bottom: 1px solid var(--border);
}

.feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(44px, 8vw, 118px);
  background: var(--surface);
}

.feature-copy h3 {
  margin: 18px 0 16px;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.2vw, 5rem);
  font-weight: 560;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.feature-copy > p:last-child {
  max-width: 520px;
  margin: 0;
  color: var(--secondary-ink);
  font-size: 1.04rem;
  line-height: 1.9;
}

.feature-visual {
  display: grid;
  min-height: 620px;
  place-items: center;
  overflow: hidden;
  background: var(--selection);
}

.feature-visual img {
  width: min(42%, 310px);
  border: 8px solid rgba(255, 255, 255, 0.58);
  border-radius: 34px;
  box-shadow: 0 30px 60px rgba(45, 35, 27, 0.2);
}

.feature-row-reverse .feature-copy {
  order: 2;
}

.feature-row-reverse .feature-visual {
  order: 1;
  background: #e7ddcf;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border-bottom: 1px solid var(--border);
  background: var(--border);
}

.trust-card {
  display: block;
  min-height: 280px;
  padding: 42px clamp(28px, 4vw, 58px);
  background: var(--canvas);
  text-decoration: none;
  transition: background-color 160ms ease;
}

.trust-card:hover {
  background: var(--surface);
}

.trust-card h2 {
  margin: 50px 0 12px;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2vw, 2rem);
  font-weight: 620;
}

.trust-card p {
  max-width: 330px;
  margin: 0;
  color: var(--secondary-ink);
  font-size: 0.92rem;
}

.text-link {
  display: inline-block;
  margin-top: 24px;
  font-size: 0.82rem;
  font-weight: 720;
  text-decoration: underline;
  text-underline-offset: 0.32em;
}

.closing {
  display: grid;
  min-height: 460px;
  place-items: center;
  align-content: center;
  padding: 72px 24px;
  background: #2f302d;
  color: #ffffff;
  text-align: center;
}

.closing img {
  margin-bottom: 24px;
  border-radius: 19px;
}

.closing h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4vw, 4rem);
  font-weight: 560;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.closing p {
  margin: 16px 0 28px;
  color: #c9c5bf;
}

.button-light {
  background: #ffffff;
  color: var(--ink);
}

.site-footer {
  padding: 52px 0 24px;
  background: var(--footer);
  color: #b9b4ad;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 36px;
  padding-bottom: 42px;
}

.footer-brand {
  color: #ffffff;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
}

.footer-inner p {
  margin: 8px 0 0;
  font-size: 0.84rem;
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.76rem;
}

.footer-meta p {
  margin: 0;
}

.document-main {
  min-height: 70vh;
}

.document-hero {
  padding: clamp(76px, 11vw, 150px) max(24px, calc((100vw - 1160px) / 2));
  border-bottom: 1px solid var(--border);
}

.document-hero h1,
.not-found h1 {
  max-width: 900px;
  margin: 20px 0 20px;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 7vw, 7rem);
  font-weight: 540;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.document-hero > p:not(.eyebrow):not(.document-meta) {
  max-width: 720px;
  margin: 0;
  color: var(--secondary-ink);
  font-size: 1.08rem;
  line-height: 1.9;
}

.document-meta {
  margin: 26px 0 0;
  color: var(--secondary-ink);
  font-size: 0.8rem;
}

.document-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 760px);
  gap: clamp(48px, 8vw, 120px);
  width: min(100% - 48px, 1160px);
  margin-inline: auto;
  padding: 80px 0 120px;
}

.document-toc {
  position: sticky;
  top: 110px;
  display: grid;
  align-self: start;
  border-top: 1px solid var(--border);
}

.document-toc a {
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  color: var(--secondary-ink);
  font-size: 0.82rem;
  text-decoration: none;
}

.document-toc a:hover {
  color: var(--ink);
}

.document-content section {
  scroll-margin-top: 100px;
  padding: 0 0 54px;
}

.document-content h2,
.faq-grid h2,
.support-note h2,
.deletion-flow h2,
.important-note h2 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  font-weight: 610;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.document-content p,
.document-content li,
.faq-grid p,
.support-note p,
.deletion-flow p,
.important-note p {
  color: #56514b;
  line-height: 1.95;
}

.document-content ul {
  padding-left: 1.25rem;
}

.document-content a,
.support-note a,
.deletion-flow a {
  font-weight: 700;
}

.faq-grid,
.deletion-flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  width: min(100% - 48px, 1160px);
  margin: 80px auto;
  border: 1px solid var(--border);
  background: var(--border);
}

.faq-grid article,
.deletion-flow section {
  min-height: 300px;
  padding: clamp(34px, 5vw, 60px);
  background: var(--surface);
}

.faq-grid h2,
.deletion-flow h2 {
  margin-top: 38px;
}

.faq-grid article > p:last-child,
.deletion-flow section > p:last-child {
  margin-bottom: 0;
}

.support-note,
.important-note {
  width: min(100% - 48px, 1160px);
  margin: 80px auto 120px;
  padding: clamp(40px, 6vw, 72px);
  border: 1px solid var(--border);
  background: var(--selection);
}

.support-note p,
.important-note p {
  max-width: 760px;
  margin-bottom: 0;
}

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

.step-number {
  margin: 0;
  color: var(--secondary-ink) !important;
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.not-found {
  display: flex;
  min-height: 74vh;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 80px max(24px, calc((100vw - 1160px) / 2));
}

.not-found > img {
  margin-bottom: 30px;
  border-radius: 24px;
}

.not-found > p:not(.eyebrow) {
  max-width: 640px;
  margin: 0;
  color: var(--secondary-ink);
  font-size: 1.04rem;
}

.text-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  padding: 10px 4px;
  font-size: 0.875rem;
  font-weight: 720;
}

.compact-footer {
  padding-top: 44px;
}

@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    min-height: 620px;
    padding: 80px 7vw;
  }

  .hero-gallery {
    min-height: 620px;
  }

  .feature-row {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .feature-copy,
  .feature-visual {
    min-height: 500px;
  }

  .feature-row-reverse .feature-copy,
  .feature-row-reverse .feature-visual {
    order: initial;
  }

  .feature-visual img {
    width: min(46%, 290px);
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .trust-card {
    min-height: 230px;
  }

  .document-layout {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .document-toc {
    position: static;
    grid-template-columns: repeat(2, 1fr);
  }

  .document-toc a:nth-child(odd) {
    border-right: 1px solid var(--border);
    padding-right: 16px;
  }

  .document-toc a:nth-child(even) {
    padding-left: 16px;
  }

  .deletion-flow {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .header-inner,
  .footer-inner,
  .footer-meta {
    width: min(100% - 32px, 1240px);
  }

  .header-inner {
    min-height: 66px;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .hero-copy {
    min-height: 560px;
    padding: 76px 24px 68px;
  }

  .hero h1 {
    margin-top: 20px;
    font-size: clamp(2.1rem, 10vw, 4.4rem);
  }

  .hero-gallery {
    min-height: 500px;
  }

  .device-shot {
    width: 44%;
    border-width: 6px;
    border-radius: 26px;
  }

  .device-shot-capture {
    top: 8%;
    left: 8%;
  }

  .device-shot-bookshelf {
    right: 7%;
    bottom: 8%;
  }

  .feature-copy {
    min-height: 390px;
    padding: 64px 24px;
  }

  .feature-visual {
    min-height: 500px;
  }

  .feature-visual img {
    width: min(56%, 255px);
    border-width: 6px;
    border-radius: 28px;
  }

  .trust-card {
    padding: 36px 24px;
  }

  .trust-card h2 {
    margin-top: 36px;
  }

  .closing {
    min-height: 430px;
  }

  .footer-inner,
  .footer-meta {
    flex-direction: column;
  }

  .footer-inner nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 14px 24px;
  }

  .document-hero {
    padding: 76px 24px;
  }

  .document-hero h1,
  .not-found h1 {
    font-size: clamp(3rem, 15vw, 4.5rem);
  }

  .document-layout,
  .faq-grid,
  .deletion-flow,
  .support-note,
  .important-note {
    width: calc(100% - 32px);
  }

  .document-layout {
    padding: 54px 0 84px;
  }

  .faq-grid {
    grid-template-columns: 1fr;
    margin: 54px auto;
  }

  .faq-grid article,
  .deletion-flow section {
    min-height: 0;
    padding: 42px 24px;
  }

  .support-note,
  .important-note {
    margin: 54px auto 84px;
    padding: 42px 24px;
  }

  .not-found {
    padding: 72px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
