:root {
  color-scheme: light;
  --paper: #f7f5f0;
  --surface: #fffdfa;
  --ink: #25221e;
  --body: #514c45;
  --muted: #827b72;
  --line: #dcd6cc;
  --soft: #ebe6dc;
  --accent: #8d4c3f;
  --shadow: 0 24px 70px rgba(48, 39, 28, .10);
}

* { box-sizing: border-box; }
html {
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", sans-serif;
  line-height: 1.65;
  scroll-behavior: smooth;
}
body { margin: 0; min-width: 320px; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: #aaa39a; text-underline-offset: 4px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.shell { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.reading { width: min(800px, 100%); }

.site-header {
  min-height: 82px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 36px;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.02em;
  text-decoration: none;
  white-space: nowrap;
}
.product-nav { display: flex; align-items: center; gap: 6px; scrollbar-width: none; }
.product-nav::-webkit-scrollbar { display: none; }
.product-nav a, .product-nav span {
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  padding: 8px 13px;
  text-decoration: none;
  white-space: nowrap;
}
.product-nav a:hover { background: rgba(70, 62, 52, .06); color: var(--ink); }
.product-nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.product-nav .soon { opacity: .58; }
.language { display: flex; gap: 5px; }
.language button {
  min-width: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 7px 10px;
}
.language button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }

main { padding: 72px 0 96px; }
.eyebrow { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .19em; text-transform: uppercase; }
h1, h2, h3 { font-family: Georgia, "Noto Serif SC", serif; font-weight: 500; }
h1 { margin: 15px 0 22px; font-size: clamp(44px, 7vw, 76px); line-height: 1.02; letter-spacing: -.035em; }
h2 { margin: 0 0 15px; font-size: clamp(27px, 3vw, 36px); line-height: 1.16; letter-spacing: -.02em; }
h3 { margin: 0 0 10px; font-size: 23px; line-height: 1.2; }
.lead { max-width: 720px; color: var(--body); font-size: clamp(18px, 2.1vw, 22px); line-height: 1.65; }
p, li { font-size: 16px; }
ul, ol { padding-left: 22px; }
li + li { margin-top: 8px; }

.hero { padding: 54px 0 72px; }
.hero-lockup { display: flex; align-items: center; gap: 17px; margin-bottom: 32px; }
.app-icon { width: 76px; height: 76px; border-radius: 18px; box-shadow: 0 12px 32px rgba(43, 37, 30, .14); }
.hero .lead { margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  padding: 10px 19px;
  font-weight: 650;
  text-decoration: none;
}
.button.secondary { border: 1px solid var(--line); background: transparent; color: var(--ink); }
.section-block { padding: 56px 0; border-top: 1px solid var(--line); }
.section-heading { max-width: 650px; margin-bottom: 30px; }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.product-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 253, 250, .72);
  padding: 26px;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
a.product-card:hover { transform: translateY(-3px); border-color: #c9c0b3; box-shadow: var(--shadow); }
.product-card .app-icon { width: 62px; height: 62px; border-radius: 15px; margin-bottom: auto; }
.product-card p { color: var(--body); margin-bottom: 0; }
.product-card .card-link { margin-top: 22px; font-weight: 700; }
.product-card.coming { background: transparent; }
.status { display: inline-flex; align-self: flex-start; margin-top: 20px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); padding: 5px 10px; font-size: 12px; }

.art-wall { display: grid; grid-template-columns: 1.2fr .8fr .8fr; grid-template-rows: 230px 210px; gap: 10px; margin: 18px 0 68px; }
.art-wall figure { margin: 0; overflow: hidden; border-radius: 14px; background: var(--soft); }
.art-wall figure:first-child { grid-row: 1 / 3; }
.art-wall figure:nth-child(4) { grid-column: 2 / 4; }
.art-wall img { width: 100%; height: 100%; object-fit: cover; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--line); }
.feature { min-height: 190px; background: var(--surface); padding: 30px; }
.feature p { margin: 0; color: var(--body); }
.quiet-note { border-left: 2px solid var(--accent); padding-left: 20px; color: var(--body); }

.reading article section { padding: 31px 0; border-top: 1px solid var(--line); }
.reading article section:first-of-type { margin-top: 48px; }
.contact { border: 1px solid var(--line) !important; border-radius: 14px; background: var(--surface); padding: 26px !important; }
details { padding: 15px 0; border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 650; }

footer { padding: 30px 0 46px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 24px; }
footer nav { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 12px; }
.footer-products { text-align: right; }
[data-lang] { display: none; }
[data-lang].active { display: block; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .product-card { transition: none; }
}

@media (max-width: 860px) {
  .site-header { grid-template-columns: 1fr auto; gap: 12px; padding: 18px 0; }
  .product-nav { grid-column: 1 / -1; grid-row: 2; overflow-x: auto; padding-bottom: 2px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card { min-height: 250px; }
  .product-card .app-icon { margin-bottom: 38px; }
  .art-wall { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 190px; }
  .art-wall figure:first-child { grid-row: auto; grid-column: 1 / 3; }
  .art-wall figure:nth-child(4) { grid-column: auto; }
}

@media (max-width: 600px) {
  .shell { width: min(100% - 30px, 1120px); }
  .brand { font-size: 20px; }
  main { padding: 48px 0 70px; }
  .hero { padding: 24px 0 52px; }
  h1 { font-size: 43px; }
  .lead { font-size: 17px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature { min-height: auto; }
  .art-wall { grid-template-columns: 1fr; grid-template-rows: repeat(4, 190px); }
  .art-wall figure:first-child, .art-wall figure:nth-child(4) { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-products { text-align: left; }
}
