/* Tapstill home page. The subpages (support, privacy) use style.css. */
:root {
  --sand: #F1E8DA;
  --wash: rgba(241, 233, 219, 0.72);
  --ink: #2A2B36;
  --body: #4A4540;
  --muted: #6E5F53;
  --clay: #8A5A40;
  --path: #B9A89C;
  --card: rgba(255, 255, 255, 0.5);
  --night: #171A25;
  --moon: #F1ECE4;
  --pebble: 55% 45% 52% 48% / 58% 50% 50% 42%;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body { margin: 0; background: var(--sand); color: var(--ink); font: 18px/1.6 Inter, system-ui, sans-serif; }
a { color: var(--ink); }
a:hover { color: #6B5A4E; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; }
figure { margin: 0; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.btn { height: 54px; padding: 0 26px; border-radius: 999px; background: var(--ink); color: #F6F0E6; text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; }
.btn:hover { color: #fff; background: #3A3B48; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }

h1, h2, .serif { font-family: Fraunces, Georgia, serif; }
h2 { margin: 16px 0 0; font-weight: 400; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.12; letter-spacing: -1px; }
.kicker { margin: 0; font-size: 16px; font-weight: 500; color: var(--muted); }

.stone { position: relative; display: block; border-radius: var(--pebble); background-image: radial-gradient(120% 90% at 30% 22%, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0) 52%), radial-gradient(90% 80% at 76% 86%, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0) 62%); box-shadow: inset -12px -14px 22px rgba(0, 0, 0, 0.26), inset 9px 11px 18px rgba(255, 255, 255, 0.22), 0 22px 26px -14px rgba(0, 0, 0, 0.55); }

/* Hero: the photo, a light wash behind the text so it reads, a fade into the page */
.hero { position: relative; overflow: hidden; min-height: 820px; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 82% 60%; }
.hero::before, .hero::after { z-index: 1; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--wash) 0%, var(--wash) 42%, rgba(241, 233, 219, 0) 72%), linear-gradient(180deg, rgba(241, 233, 219, 0.6) 0, rgba(241, 233, 219, 0) 140px); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; background: linear-gradient(180deg, rgba(241, 233, 219, 0), var(--sand)); }
.top, .hero-copy { position: relative; z-index: 2; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; }
/* "Tapstill" pressed into the wall, like the app draws it */
.logo { font-family: Fraunces, Georgia, serif; font-weight: 700; font-size: 24px; letter-spacing: -0.2px; text-decoration: none; color: rgba(96, 78, 52, 0.5); text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75), 0 -1px 0 rgba(70, 56, 34, 0.28); }
.logo:hover { color: rgba(96, 78, 52, 0.7); }
.nav { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.45); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7), 0 10px 30px -18px rgba(42, 43, 54, 0.35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.nav a { padding: 8px 14px; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 500; }
.nav a:hover { background: rgba(255, 255, 255, 0.6); color: var(--ink); }
.hero-copy { padding-top: 120px; padding-bottom: 160px; }
h1 { margin: 0; max-width: 9.5em; font-weight: 400; font-size: clamp(52px, 7.4vw, 100px); line-height: 0.98; letter-spacing: -2.5px; }
h1 em { font-weight: 300; color: #5C4A3D; }
.lede { margin: 28px 0 0; max-width: 25em; font-size: 19px; color: #3A3631; }
.actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.actions a:not(.btn) { font-size: 16px; font-weight: 500; }

/* The story: chapters along a dotted walk */
.story { position: relative; }
.path { position: absolute; left: 34px; top: 40px; width: 40px; height: calc(100% - 80px); }
.chapter { position: relative; padding: 0 0 120px 72px; }
.chapter:first-of-type { padding-top: 64px; }
.split { display: flex; flex-wrap: wrap; gap: 48px 72px; align-items: center; }
.flip { flex-wrap: wrap-reverse; }
.mark { position: absolute; left: 26px; top: 8px; width: 18px; height: 14px; border-radius: var(--pebble); }
.chapter:first-of-type .mark { top: 72px; }
.text { flex: 1 1 420px; min-width: 0; }
.text p, .intro { margin: 28px 0 0; max-width: 32em; color: var(--body); }
.text p + p { margin-top: 16px; }
.cols { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px 72px; color: var(--body); }
.cols p { margin: 0; }

/* One: the pings */
.pings { position: relative; flex: 0 1 380px; min-width: 300px; height: 380px; margin: 0 auto; }
.ping { position: absolute; display: flex; align-items: center; gap: 12px; width: 300px; padding: 14px 16px; border-radius: 20px; background: rgba(255, 255, 255, 0.82); box-shadow: 0 18px 40px -22px rgba(42, 43, 54, 0.45); font-size: 15px; line-height: 1.35; }
.ping i { flex: none; width: 34px; height: 34px; border-radius: 10px; }
.ping small { display: block; font-size: 13px; color: #7D776F; }

/* Two: the limit screen */
.limit { flex: 0 1 340px; min-width: 0; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.device { width: 272px; height: 548px; border-radius: 46px; background: #1E1F26; padding: 9px; box-shadow: 0 40px 70px -36px rgba(42, 43, 54, 0.6); }
.screen { position: relative; height: 100%; border-radius: 37px; overflow: hidden; background: #ECE5DA; text-align: center; }
.screen svg { display: block; margin: 120px auto 0; fill: none; stroke: #8A8177; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.screen b { display: block; margin-top: 16px; font-size: 19px; }
.screen p { margin: 6px 28px 0; font-size: 14px; line-height: 1.4; color: #6E675F; }
.dim { position: absolute; inset: 0; background: rgba(24, 24, 32, 0.32); }
.sheet { position: absolute; left: 9px; right: 9px; bottom: 12px; font-size: 15px; color: #4E6A8A; }
.sheet span { display: block; padding: 13px 8px; background: rgba(250, 248, 244, 0.97); border-bottom: 1px solid rgba(0, 0, 0, 0.08); }
.sheet span:first-child { border-radius: 16px 16px 0 0; }
.sheet span:nth-child(3) { border-radius: 0 0 16px 16px; border: 0; }
.sheet span:last-child { margin-top: 8px; border-radius: 16px; border: 0; font-weight: 600; }
.limit figcaption { margin-top: 22px; max-width: 18em; text-align: center; font-family: Fraunces, Georgia, serif; font-style: italic; font-size: 19px; line-height: 1.35; color: var(--clay); }

/* Three: the room */
.room { position: relative; margin-top: 48px; border-radius: 28px; overflow: hidden; aspect-ratio: 16 / 9; background: #D8C6AE; }
.room img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.room .ring { position: absolute; left: 64.6%; top: 54.5%; width: 56px; height: 56px; transform: translate(-50%, -50%); border-radius: 50%; border: 2px solid rgba(255, 248, 238, 0.95); }
.room .label, .room figcaption { position: absolute; color: #FFF8EE; text-shadow: 0 1px 12px rgba(40, 30, 20, 0.6); }
.room .label { left: 64.6%; top: 46%; transform: translate(-50%, -100%); font-family: Fraunces, Georgia, serif; font-style: italic; font-size: 22px; white-space: nowrap; }
.room figcaption { left: 24px; bottom: 20px; font-size: 14px; }

/* Four: the day */
.day { margin: 48px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.day li { border-radius: 24px; padding: 24px; min-height: 220px; display: flex; flex-direction: column; }
.day time { font-family: Fraunces, Georgia, serif; font-size: 40px; font-weight: 300; letter-spacing: -1px; }
.day strong { margin-top: auto; display: flex; align-items: center; gap: 10px; font-weight: 600; }
.day .stone { width: 34px; height: 25px; box-shadow: inset -3px -4px 6px rgba(0, 0, 0, 0.25), 0 4px 6px -3px rgba(40, 34, 24, 0.4); }
.day span { margin-top: 6px; font-size: 16px; opacity: 0.85; }

/* Five: the urge fades before the wait ends */
.wait { flex: 0 1 380px; min-width: 0; margin: 0 auto; padding: 24px 24px 18px; border-radius: 24px; background: var(--card); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7); }
.wait b { display: block; font-family: Fraunces, Georgia, serif; font-weight: 400; font-size: 22px; }
.wait small { display: block; font-size: 13px; color: var(--muted); }
.wait svg { display: block; width: 100%; height: auto; margin-top: 16px; overflow: visible; }

/* Six: the letter */
.letter { max-width: 760px; border-radius: 28px; background: rgba(251, 247, 240, 0.94); box-shadow: 0 30px 60px -40px rgba(42, 43, 54, 0.5); padding: clamp(28px, 5vw, 56px); }
.letter h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.15; letter-spacing: -0.6px; }
.letter p { margin: 16px 0 0; color: var(--body); }
.letter h2 + p { margin-top: 24px; }
.letter .sign { margin-top: 28px; font-family: Fraunces, Georgia, serif; font-style: italic; font-size: 20px; color: var(--ink); }

/* The app, then dusk into night */
.dusk { background: linear-gradient(180deg, var(--sand) 0%, #E6D9D0 22%, #A9A2AE 46%, #4A4D60 60%, #1E2130 74%, var(--night) 100%); }
.app { padding-top: 24px; padding-bottom: 40px; text-align: center; }
.app h2 { max-width: 16em; margin-left: auto; margin-right: auto; }
.app .intro { margin-left: auto; margin-right: auto; margin-top: 24px; }
.fan { margin: 64px auto 0; display: flex; justify-content: center; align-items: flex-start; }
.fan img { display: block; width: 100%; height: auto; border-radius: 40px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5), 0 50px 80px -40px rgba(30, 30, 46, 0.7); }
.fan .mid { position: relative; z-index: 2; width: 300px; margin: 0 -28px; }
.fan .side { width: 250px; padding-top: 56px; }
.fan .left img { transform: rotate(-5deg); }
.fan .right img { transform: rotate(5deg); }

.get { padding: 120px 24px 140px; text-align: center; color: var(--moon); }
.get .stones { display: flex; justify-content: center; align-items: flex-end; gap: 22px; }
.get .stones svg { fill: none; stroke: rgba(10, 14, 20, 0.5); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.get p { margin: 28px auto 0; max-width: 32em; font-size: 16px; color: #C8C6D6; }
.get p a { color: var(--moon); }
.get h2 { margin-top: 56px; font-size: clamp(44px, 6.4vw, 88px); line-height: 1; letter-spacing: -2px; }
.get .btn { margin-top: 36px; background: var(--moon); color: var(--night); }
.get .btn:hover { background: #fff; }
.get .note { margin-top: 16px; font-size: 14px; color: #9EA0B4; }

.foot { padding-top: 24px; padding-bottom: 48px; border-top: 1px solid rgba(241, 236, 228, 0.14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 14px; color: #9EA0B4; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot a { color: #9EA0B4; }
.foot a:hover { color: var(--moon); }

@media (max-width: 760px) {
  .nav { display: none; }
  /* The photo moves under the text, so the stone never sits behind it */
  .hero { min-height: 0; display: flex; flex-direction: column; }
  .hero::before, .hero::after { display: none; }
  .hero .wrap { width: 100%; }
  .hero-img { position: relative; order: 3; height: 340px; object-position: 88% 72%; -webkit-mask-image: linear-gradient(transparent, #000 35%); mask-image: linear-gradient(transparent, #000 35%); }
  .hero-copy { padding-top: 56px; padding-bottom: 8px; }
  .path { left: 0; }
  .chapter { padding-left: 32px; }
  .mark { left: -13px; }
  .pings { min-width: 0; flex-basis: 100%; height: 340px; }
  .ping { width: calc(100% - 70px); }
  .room .ring { width: 32px; height: 32px; }
  .room .label { top: 44%; font-size: 14px; }
  .room figcaption { left: 16px; bottom: 12px; font-size: 13px; }
  .fan .side { display: none; }
  .fan .mid { margin: 0; }
}
