:root {
  color-scheme: light;
  --paper: #f4e4d1;
  --paper-soft: #fbf4e9;
  --ink: #2c2825;
  --muted: #6f6259;
  --copper: #bd5734;
  --copper-dark: #8f3c24;
  --line: rgba(77, 53, 39, 0.16);
  --shadow: 0 24px 70px rgba(75, 48, 31, 0.15);
  --shell: min(1120px, calc(100vw - 40px));
}

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

html {
  scroll-behavior: smooth;
  background: var(--paper-soft);
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 84% 4%, rgba(189, 87, 52, 0.1), transparent 30rem),
    var(--paper-soft);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--line);
}

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

.wordmark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.header-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.header-links a:hover,
.footer-links a:hover {
  color: var(--copper-dark);
}

.hero {
  padding: 90px 0 82px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(500px, 1.14fr);
  align-items: center;
  gap: clamp(54px, 8vw, 110px);
}

.eyebrow {
  color: var(--copper);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 620px;
  margin-top: 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.5rem, 8vw, 7.6rem);
  line-height: 0.88;
  letter-spacing: -0.065em;
}

.hero h1 span {
  display: block;
  margin-top: 18px;
  color: var(--copper);
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: 0.18em;
  font-weight: 800;
  letter-spacing: 0.26em;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 570px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 18px;
}

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

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 750;
}

.button-primary {
  border-color: var(--copper);
  background: var(--copper);
  color: #fffaf3;
}

.button-appstore {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  border: 1px solid #1a1614;
  border-radius: 999px;
  background: #1a1614;
  color: #fffaf3;
  font-size: 14px;
  font-weight: 750;
  box-shadow: 0 10px 24px rgba(26, 22, 20, 0.18);
  transition: transform 200ms ease, box-shadow 200ms ease, opacity 200ms ease;
}

.button-appstore svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

.button-appstore:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(26, 22, 20, 0.28);
  opacity: 0.96;
}

.button-muted {
  color: var(--muted);
}

.device-stage {
  position: relative;
  display: flex;
  min-height: 650px;
  align-items: flex-end;
  justify-content: center;
}

.device-stage::before {
  content: "";
  position: absolute;
  inset: 8% 0 0;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.device {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(55, 40, 31, 0.22);
  border-radius: 34px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.device img {
  width: 100%;
}

.device-main {
  z-index: 3;
  width: 285px;
}

.device-side {
  position: absolute;
  bottom: 22px;
  z-index: 1;
  width: 215px;
  opacity: 0.9;
}

.device-left {
  left: 4%;
  transform: rotate(-7deg);
}

.device-right {
  right: 4%;
  transform: rotate(7deg);
}

.intro-strip {
  border-block: 1px solid var(--line);
  background: rgba(244, 228, 209, 0.42);
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 70px;
  padding-block: 72px;
}

.intro-grid h2,
.section-heading h2 {
  margin-top: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 5vw, 5rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.intro-grid > p {
  align-self: end;
  max-width: 650px;
  color: var(--muted);
  font-size: 19px;
}

.features {
  padding: 110px 0;
}

.section-heading {
  max-width: 720px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 54px;
}

.feature-card {
  min-height: 260px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.44);
}

.feature-card span {
  color: var(--copper);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 800;
}

.feature-card h3 {
  margin-top: 44px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 29px;
}

.feature-card p {
  max-width: 500px;
  margin-top: 12px;
  color: var(--muted);
}

.detail {
  padding: 0 0 110px;
}

.detail-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  padding: 60px;
  border-radius: 34px;
  background: #25211f;
  color: #f9eddd;
}

.detail-card h2 {
  margin-top: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 4.5vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.detail-copy {
  display: grid;
  gap: 24px;
  align-content: center;
  color: #cfc0b2;
}

.detail-copy strong {
  display: block;
  margin-bottom: 4px;
  color: #fff7ed;
}

/* App Store Screenshot Gallery */
.appstore-gallery {
  padding: 40px 0 110px;
}

.appstore-gallery-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 54px;
}

.appstore-gallery-header h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 4.5vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-top: 12px;
}

.appstore-gallery-header p {
  color: var(--muted);
  font-size: 18px;
  margin-top: 14px;
  line-height: 1.5;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.gallery-item {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
}

.gallery-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(55, 40, 31, 0.18);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--shadow);
  aspect-ratio: 1320 / 2868;
  transition: transform 250ms ease, box-shadow 250ms ease;
}

.gallery-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item:hover .gallery-frame {
  transform: translateY(-6px);
  box-shadow: 0 24px 44px rgba(55, 40, 31, 0.18);
}

.gallery-item figcaption {
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

.gallery-item figcaption strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  color: var(--ink);
}

.gallery-item figcaption span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.closing {
  padding: 100px 0;
  text-align: center;
}

.closing h2 {
  max-width: 780px;
  margin: 14px auto 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.closing p:not(.eyebrow) {
  max-width: 560px;
  margin: 24px auto 0;
  color: var(--muted);
}

.closing .hero-actions {
  justify-content: center;
}

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

.footer-inner {
  display: flex;
  min-height: 100px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.legal-main {
  padding: 80px 0 110px;
}

.legal-copy {
  max-width: 760px;
}

.legal-copy h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.legal-copy .updated {
  margin-top: 18px;
  color: var(--muted);
}

.legal-copy h2 {
  margin-top: 46px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
}

.legal-copy p,
.legal-copy ul {
  margin: 12px 0 0;
  color: var(--muted);
}

.legal-copy li + li {
  margin-top: 8px;
}

.legal-note {
  margin-top: 36px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(244, 228, 209, 0.46);
}

@media (max-width: 900px) {
  .hero-grid,
  .intro-grid,
  .detail-card {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 68px;
  }

  .device-stage {
    min-height: 590px;
  }

  .detail-card {
    gap: 42px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 620px) {
  :root {
    --shell: min(100% - 28px, 1120px);
  }

  .header-links a:first-child {
    display: none;
  }

  .hero {
    padding: 58px 0 54px;
  }

  .hero h1 {
    font-size: clamp(4.2rem, 23vw, 6rem);
  }

  .device-stage {
    min-height: 470px;
  }

  .device-main {
    width: 205px;
  }

  .device-side {
    width: 142px;
  }

  .device-left {
    left: -2%;
  }

  .device-right {
    right: -2%;
  }

  .intro-grid {
    gap: 26px;
    padding-block: 56px;
  }

  .features {
    padding: 78px 0;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    margin-top: 38px;
  }

  .feature-card {
    min-height: 220px;
    padding: 28px;
  }

  .detail {
    padding-bottom: 72px;
  }

  .detail-card {
    padding: 36px 26px;
    border-radius: 26px;
  }

  .closing {
    padding: 76px 0;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 28px;
  }
}

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