:root {
  color-scheme: light;
  --paper: #fffaf0;
  --surface: #ffffff;
  --mist: #f4eadb;
  --ink: #18130f;
  --muted: #766457;
  --line: rgba(24, 19, 15, 0.12);
  --sun: #ffc43b;
  --bronze: #b86b37;
  --aqua: #17a9b0;
  --danger: #d94f3d;
  --shadow: 0 14px 34px rgba(58, 38, 20, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.site {
  min-height: 100svh;
  overflow: hidden;
  padding-top: 76px;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 10px 14px;
  border: 1px solid rgba(24, 19, 15, 0.08);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.78);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px rgba(58, 38, 20, 0.08);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo img {
  width: 148px;
  height: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 760;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.nav-toggle {
  display: none;
}

.hero {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.68fr);
  gap: 42px;
  align-items: center;
  min-height: auto;
  padding: 72px 0 58px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--bronze);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 740px;
  margin-bottom: 20px;
  font-size: clamp(40px, 6.2vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero-copy {
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.52;
  font-weight: 560;
}

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

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 850;
  text-decoration: none;
}

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

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
}

.text-link {
  display: inline-flex;
  margin-top: 6px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
  border-bottom: 2px solid var(--sun);
}

.hero-visual {
  position: relative;
}

.hero-photo-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: var(--mist);
  box-shadow: var(--shadow);
}

.hero-photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24, 19, 15, 0) 52%, rgba(24, 19, 15, 0.42));
}

.hero-photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3.35;
  object-fit: cover;
  object-position: 47% 50%;
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0;
}

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

.section-heading h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.section-heading p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.48;
  font-weight: 560;
}

.app-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
}

.app-panel {
  min-height: 260px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.app-panel.featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 20px;
  align-items: center;
  background: #16110d;
  color: var(--paper);
}

.app-panel h3 {
  margin-bottom: 10px;
  font-size: 26px;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.app-panel p {
  color: var(--muted);
  line-height: 1.48;
  font-weight: 560;
}

.app-panel.featured p {
  color: rgba(255, 250, 240, 0.72);
}

.hourglass {
  width: min(86%, 240px);
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.24));
}

.product-stack {
  position: relative;
  min-height: 360px;
}

.product-shot {
  display: block;
  width: 100%;
  height: 360px;
  border-radius: 22px;
  object-fit: cover;
}

.product-stack .hourglass {
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 130px;
  padding: 12px;
  border-radius: 24px;
  background: rgba(255, 250, 240, 0.9);
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.24));
}

.home-app-preview {
  display: grid;
  grid-template-columns: minmax(220px, 0.46fr) minmax(200px, 0.38fr) minmax(260px, 0.6fr);
  gap: 24px;
  align-items: center;
}

.phone-frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 9px solid #16110d;
  border-radius: 34px;
  background: #16110d;
  box-shadow: 0 24px 58px rgba(58, 38, 20, 0.18);
}

.phone-frame::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  z-index: 2;
  width: 72px;
  height: 6px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.72);
}

.phone-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 390 / 844;
  object-fit: cover;
}

.home-phone {
  max-width: 270px;
}

.secondary-phone {
  transform: translateY(36px);
}

.home-app-notes {
  display: grid;
  gap: 14px;
}

.home-app-notes article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.home-app-notes strong,
.home-app-notes span {
  display: block;
}

.home-app-notes strong {
  margin-bottom: 6px;
  font-size: 17px;
}

.home-app-notes span {
  color: var(--muted);
  line-height: 1.45;
  font-weight: 620;
}

.app-site {
  background:
    linear-gradient(180deg, rgba(255, 196, 59, 0.12), rgba(255, 250, 240, 0) 34%),
    var(--paper);
}

.app-hero {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.76fr);
  gap: 46px;
  align-items: center;
  padding: 54px 0 42px;
}

.app-hero h1 {
  max-width: 620px;
}

.app-hero-gallery {
  position: relative;
  min-height: 590px;
}

.hero-phone {
  position: absolute;
}

.hero-phone-main {
  top: 0;
  right: 86px;
  width: 286px;
}

.hero-phone-float {
  right: 0;
  bottom: 0;
  width: 236px;
  transform: rotate(4deg);
}

.app-flow-section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 78px;
}

.compact-heading {
  max-width: 620px;
}

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

.flow-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  min-height: 520px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
}

.flow-card.wide {
  grid-column: span 2;
  grid-template-columns: minmax(0, 0.88fr) minmax(220px, 0.42fr);
}

.flow-card.dark-card {
  background: #16110d;
  color: var(--paper);
}

.flow-card.dark-card p:not(.flow-number) {
  color: rgba(255, 250, 240, 0.72);
}

.flow-card .phone-frame {
  width: min(100%, 260px);
  justify-self: center;
}

.flow-card h3 {
  max-width: 560px;
  margin-bottom: 12px;
  font-size: clamp(28px, 3.8vw, 48px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.flow-card p {
  max-width: 540px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
  font-weight: 560;
}

.flow-number {
  margin-bottom: 16px;
  color: var(--bronze);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.app-detail-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.64fr) minmax(360px, 1fr);
  gap: 36px;
  align-items: center;
  padding: 76px max(16px, calc((100% - 1120px) / 2));
  background: #16110d;
  color: var(--paper);
}

.detail-copy h2 {
  margin-bottom: 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.detail-copy p:not(.eyebrow) {
  color: rgba(255, 250, 240, 0.72);
  font-size: 18px;
  line-height: 1.5;
  font-weight: 560;
}

.detail-phones {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: flex-end;
}

.detail-phones .phone-frame {
  width: min(48%, 260px);
}

.detail-phones .phone-frame:first-child {
  transform: translateY(32px);
}

.app-feature-list {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 76px 0 58px;
}

.app-feature-list article {
  min-height: 210px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.app-feature-list span,
.app-feature-list strong {
  display: block;
}

.app-feature-list span {
  margin-bottom: 14px;
  color: var(--bronze);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-feature-list strong {
  margin-bottom: 10px;
  font-size: 23px;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.app-feature-list p {
  color: var(--muted);
  line-height: 1.48;
  font-weight: 560;
}

.crew-hero {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(340px, 0.62fr);
  gap: 44px;
  align-items: center;
  padding: 74px 0 54px;
}

.crew-hero h1 {
  max-width: 680px;
}

.crew-hero-stack {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  min-height: 360px;
}

.crew-hero-stack img {
  width: 138px;
  height: 260px;
  object-fit: cover;
  border: 8px solid var(--paper);
  border-radius: 999px;
  box-shadow: 0 18px 42px rgba(58, 38, 20, 0.16);
}

.crew-hero-stack img:nth-child(1) {
  transform: translate(18px, 18px) rotate(-8deg);
}

.crew-hero-stack img:nth-child(2) {
  transform: translate(4px, -20px) rotate(5deg);
}

.crew-hero-stack img:nth-child(3) {
  transform: translate(-8px, 34px) rotate(-2deg);
}

.crew-hero-stack img:nth-child(4) {
  transform: translate(-18px, -6px) rotate(7deg);
}

.crew-hero-stack img:nth-child(5) {
  transform: translate(-30px, 22px) rotate(-6deg);
}

.crew-grid {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 20px 0 64px;
}

.crew-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
}

.crew-card-media {
  position: relative;
  min-height: 420px;
  background: #f1e6d8;
}

.crew-card-image {
  display: block;
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: 50% 34%;
}

.crew-avatar {
  position: absolute;
  right: 18px;
  bottom: -34px;
  display: block;
  width: 86px;
  height: 86px;
  padding: 5px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 14px 30px rgba(58, 38, 20, 0.16);
}

.crew-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.crew-card-body {
  padding: 24px;
}

.crew-card h2 {
  margin-bottom: 6px;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.crew-role {
  margin-bottom: 14px;
  color: var(--bronze);
  font-weight: 880;
}

.crew-card p:not(.eyebrow, .crew-role) {
  color: var(--muted);
  line-height: 1.5;
  font-weight: 560;
}

.crew-facts {
  margin: 18px 0;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.crew-facts div {
  display: grid;
  gap: 4px;
}

.crew-facts dt {
  color: var(--bronze);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.crew-facts dd {
  margin: 0;
  color: var(--ink);
  font-weight: 760;
  line-height: 1.38;
}

.crew-posts {
  display: grid;
  gap: 10px;
}

.crew-posts a {
  display: block;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 250, 240, 0.82);
  text-decoration: none;
}

.crew-posts span,
.crew-posts strong {
  display: block;
}

.crew-posts span,
.crew-empty {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.crew-posts strong {
  margin-top: 4px;
  line-height: 1.18;
}

.diary-band {
  background: #f2eadf;
}

.diary-layout {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 78px 0;
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 38px;
  align-items: center;
}

.author-mini {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 24px;
}

.author-mini img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}

.author-mini strong,
.author-mini span {
  display: block;
}

.author-mini span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.diary-card {
  overflow: hidden;
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.diary-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
}

.diary-card-body {
  padding: 24px;
}

.diary-card-body h3 {
  margin-bottom: 10px;
  font-size: 32px;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.diary-card-body p {
  color: var(--muted);
  line-height: 1.46;
  font-weight: 560;
}

.safety {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 48px;
  padding: 26px;
  border-radius: 26px;
  background: #18130f;
  color: var(--paper);
}

.safety h2 {
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.safety p {
  max-width: 840px;
  margin-bottom: 0;
  color: rgba(255, 250, 240, 0.72);
  line-height: 1.5;
  font-weight: 560;
}

footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 0 36px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

footer div {
  display: flex;
  gap: 18px;
}

.legal-page {
  width: min(100%, 720px);
  min-height: 100svh;
  margin: 0 auto;
  padding: 28px 18px 42px;
  background: var(--paper);
}

.back-link {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

.legal-doc h1 {
  margin-bottom: 18px;
  font-size: clamp(36px, 8vw, 56px);
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.legal-doc h2 {
  margin-top: 32px;
  font-size: 24px;
}

.legal-doc p,
.legal-doc li {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.56;
}

.legal-doc ul {
  padding-left: 20px;
}

@media (max-width: 840px) {
  .site-nav {
    align-items: center;
    min-height: 66px;
  }

  .nav-toggle {
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    gap: 0;
    position: relative;
    z-index: 2;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--ink);
    cursor: pointer;
  }

  .nav-toggle span {
    width: 18px;
    height: 2px;
    display: block;
    grid-area: 1 / 1;
    border-radius: 999px;
    background: currentColor;
    transition:
      transform 180ms ease,
      opacity 180ms ease;
  }

  .nav-toggle span:first-child {
    transform: translateY(-4px);
  }

  .nav-toggle span:last-child {
    transform: translateY(4px);
  }

  .site-nav.is-open .nav-toggle span:first-child {
    transform: rotate(42deg);
  }

  .site-nav.is-open .nav-toggle span:last-child {
    transform: rotate(-42deg);
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: grid;
    gap: 6px;
    padding: 10px;
    border: 1px solid rgba(24, 19, 15, 0.09);
    border-radius: 24px;
    background: rgba(255, 250, 240, 0.96);
    box-shadow: 0 18px 48px rgba(58, 38, 20, 0.14);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      opacity 180ms ease,
      transform 180ms ease;
  }

  .site-nav.is-open .nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    border-radius: 16px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 850;
  }

  .nav-links a:hover,
  .nav-links a[aria-current="page"] {
    background: rgba(255, 196, 59, 0.22);
  }

  .nav-links a[href="#safety"],
  .nav-links a[href="/#safety"] {
    display: flex;
  }

  .hero,
  .diary-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 26px;
  }

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

  .app-panel.featured {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .product-stack {
    min-height: 320px;
  }

  .product-shot {
    height: 320px;
  }

  .home-app-preview,
  .app-hero,
  .flow-card.wide,
  .app-detail-band,
  .app-feature-list,
  .crew-hero,
  .crew-grid {
    grid-template-columns: 1fr;
  }

  .home-app-preview {
    justify-items: center;
  }

  .secondary-phone {
    transform: none;
  }

  .home-app-notes {
    width: 100%;
  }

  .app-hero {
    min-height: auto;
    padding-top: 28px;
  }

  .app-hero-gallery {
    min-height: 560px;
  }

  .hero-phone-main {
    left: 0;
    right: auto;
    width: min(68vw, 280px);
  }

  .hero-phone-float {
    width: min(56vw, 230px);
  }

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

  .flow-card.wide {
    grid-column: auto;
  }

  .detail-phones {
    justify-content: center;
  }

  .crew-hero {
    padding-top: 32px;
  }

  .crew-hero-stack {
    min-height: 300px;
  }

  .crew-hero-stack img {
    width: 112px;
    height: 220px;
  }

  .crew-card-media,
  .crew-card-image {
    height: 390px;
    min-height: 390px;
  }
}

@media (max-width: 520px) {
  .site-nav,
  .hero,
  .section,
  .diary-layout,
  .safety,
  footer,
  .crew-hero,
  .crew-grid {
    width: min(100% - 24px, 1120px);
  }

  .nav-logo img {
    width: 118px;
  }

  h1 {
    font-size: clamp(48px, 17vw, 72px);
  }

  .hero-copy {
    font-size: 18px;
  }

  .section,
  .diary-layout {
    padding: 54px 0;
  }

  footer {
    flex-direction: column;
  }

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

  .phone-frame {
    border-width: 7px;
    border-radius: 28px;
  }

  .hero-phone-main {
    width: min(70vw, 248px);
  }

  .hero-phone-float {
    width: min(56vw, 198px);
  }

  .flow-card {
    min-height: auto;
    padding: 18px;
  }

  .flow-card .phone-frame {
    width: min(100%, 238px);
  }

  .detail-phones {
    gap: 12px;
  }

  .detail-phones .phone-frame {
    width: min(50%, 188px);
  }

  .crew-hero-stack {
    min-height: 250px;
  }

  .crew-hero-stack img {
    width: 86px;
    height: 180px;
    border-width: 6px;
  }

  .crew-card-media,
  .crew-card-image {
    height: 330px;
    min-height: 330px;
  }

  .crew-card h2 {
    font-size: 30px;
  }
}
