:root {
  color-scheme: light;
  --paper: #f6f2e8;
  --paper-soft: #fffaf0;
  --ink: #171716;
  --muted: #5f625f;
  --faint: #7a7d79;
  --line: #d8d0c0;
  --line-strong: #b9ad99;
  --green: #1f7a4d;
  --blue: #2466a1;
  --violet: #7151a8;
  --amber: #9b6117;
  --red: #9f3d39;
  --panel: #20242a;
  --panel-2: #111827;
  --shadow: 0 18px 50px rgba(39, 33, 22, 0.13);
  --radius: 8px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Yu Gothic UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.65;
}

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

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

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #2f88c8;
  outline-offset: 3px;
}

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 242, 232, 0.93);
  backdrop-filter: blur(14px);
}

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

.brand {
  font-size: 21px;
  font-weight: 850;
  letter-spacing: 0;
}

.site-nav,
.nav-actions,
.hero-actions,
.footer-links,
.inline-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.site-nav {
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

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

.btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font-weight: 750;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
}

.btn.dark {
  background: var(--ink);
  color: #fff;
}

.btn.light {
  background: var(--paper-soft);
}

.btn.green {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.btn:hover {
  transform: translateY(-1px);
}

.hero {
  padding: 66px 0 36px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  align-items: center;
  gap: 46px;
}

.eyebrow,
.section-kicker,
.stat-label {
  color: var(--green);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: currentColor;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.03;
  letter-spacing: 0;
}

.lead {
  max-width: 650px;
  margin-bottom: 26px;
  color: #3e403e;
  font-size: 18px;
}

.hero-actions {
  margin-bottom: 20px;
}

.hero-actions .btn.dark,
.hero-actions .btn.green {
  min-height: 56px;
  padding-inline: 24px;
  font-size: 16px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.trust-row span {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

.hero-visual {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-soft);
  box-shadow: var(--shadow);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
}

.app-launch {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.8);
  overflow: hidden;
}

.app-launch a {
  min-height: 82px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 14px;
  border-right: 1px solid var(--line);
}

.app-launch a:last-child {
  border-right: 0;
}

.app-launch strong {
  font-size: 15px;
}

.app-launch span {
  color: var(--muted);
  font-size: 13px;
}

.app-launch a:hover {
  background: #fffdf7;
}

.section {
  padding: 58px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 24px;
}

h2 {
  margin-bottom: 0;
  font-size: 32px;
  line-height: 1.18;
  letter-spacing: 0;
}

.section-note {
  max-width: 460px;
  margin-bottom: 0;
  color: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.service-card {
  min-height: 310px;
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.service-card.primary {
  grid-column: span 3;
  background: var(--panel);
  color: #fff;
  border-color: var(--panel);
}

.service-card.memory {
  grid-column: span 3;
}

.persona {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
}

.primary .persona {
  color: #c3cbd5;
}

.service-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.service-name h3 {
  margin-bottom: 8px;
  font-size: 24px;
  line-height: 1.15;
}

.mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
}

.budget .mark { background: var(--green); }
.novel .mark { background: var(--violet); }
.article .mark { background: var(--amber); }
.memory .mark { background: var(--blue); }
.tba .mark { background: var(--red); }

.service-card p {
  margin-bottom: 16px;
  color: #4f504e;
  font-size: 15px;
}

.primary p {
  color: #dde3eb;
}

.mini-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 13px;
}

.primary .mini-list {
  color: #c5ccd5;
}

.mini-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  display: inline-block;
  margin-right: 8px;
  border-radius: 50%;
  background: currentColor;
  vertical-align: middle;
}

.workflow,
.download-grid,
.foundation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.step,
.download-card,
.foundation-card,
.legal-panel,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
}

.step,
.download-card,
.foundation-card {
  padding: 22px;
}

.step-num {
  margin-bottom: 12px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
}

.step h3,
.download-card h3,
.foundation-card h3 {
  margin-bottom: 8px;
  font-size: 19px;
}

.step p,
.download-card p,
.foundation-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

.dark-band {
  background: var(--panel-2);
  color: #fff;
}

.dark-band .section-kicker,
.dark-band .section-note {
  color: #a7b4c4;
}

.dark-band .download-card,
.dark-band .foundation-card {
  border-color: #313b49;
  background: #1c2430;
}

.dark-band p {
  color: #c9d2dd;
}

.release-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.release-list a {
  color: #fff;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-main {
  padding: 54px 0 70px;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 780px) minmax(220px, 1fr);
  gap: 28px;
  align-items: start;
}

.legal-panel,
.contact-card {
  padding: 28px;
  box-shadow: var(--shadow);
}

.legal-panel h1 {
  font-size: 36px;
  line-height: 1.16;
}

.updated {
  margin-bottom: 28px;
  color: var(--faint);
  font-size: 14px;
}

.legal-panel h2 {
  margin: 30px 0 8px;
  font-size: 19px;
}

.legal-panel p,
.legal-panel li,
.legal-panel td,
.legal-panel th {
  font-size: 15px;
}

.legal-panel p,
.legal-panel li {
  color: #454744;
}

.legal-panel ul {
  margin: 8px 0 18px 22px;
  padding: 0;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
}

.legal-table th,
.legal-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal-table tr:last-child th,
.legal-table tr:last-child td {
  border-bottom: 0;
}

.legal-table th {
  width: 32%;
  color: var(--muted);
  background: #f1eadc;
  white-space: nowrap;
}

.side-note {
  position: sticky;
  top: 88px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #efe8da;
}

.side-note h2 {
  margin-bottom: 8px;
  font-size: 20px;
}

.side-note p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
}

.contact-card {
  max-width: 640px;
  margin-top: 24px;
  text-align: center;
}

.mail-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}

.note {
  color: var(--faint);
  font-size: 13px;
}

.site-footer {
  padding: 34px 0;
  color: var(--muted);
  font-size: 13px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

@media (max-width: 1040px) {
  .hero-grid,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .service-card,
  .service-card.primary,
  .service-card.memory {
    grid-column: span 3;
  }

  .side-note {
    position: static;
  }
}

@media (max-width: 820px) {
  .wrap {
    width: min(100% - 28px, 1180px);
  }

  .site-nav {
    display: none;
  }

  .site-header-inner {
    min-height: 58px;
  }

  .hero {
    padding-top: 40px;
  }

  .hero-grid {
    gap: 28px;
  }

  .hero-actions .btn,
  .nav-actions .btn.dark,
  .inline-actions .btn {
    width: 100%;
  }

  .app-launch,
  .workflow,
  .download-grid,
  .foundation-grid {
    grid-template-columns: 1fr;
  }

  .app-launch a {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .app-launch a:last-child {
    border-bottom: 0;
  }

  .section-head {
    display: block;
  }

  .section-note {
    margin-top: 10px;
  }

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

  .service-card,
  .service-card.primary,
  .service-card.memory {
    min-height: auto;
    grid-column: auto;
  }

  .legal-panel {
    padding: 22px;
  }

  .legal-table th,
  .legal-table td {
    display: block;
    width: 100%;
  }

  .legal-table th {
    border-bottom: 0;
  }
}

@media (max-width: 520px) {
  .nav-actions .btn.light {
    display: none;
  }

  .brand {
    font-size: 19px;
  }

  h2 {
    font-size: 27px;
  }
}
