:root {
  --ink: #101820;
  --muted: #5c6b75;
  --paper: #eef2f4;
  --surface: #f7f9fa;
  --line: rgba(16, 24, 32, 0.1);
  --accent: #0b6e4f;
  --accent-2: #c45c26;
  --deep: #0a2f24;
  --radius: 2px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100%;
  font-family: "Instrument Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

/* Atmosphere */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(165deg, #e8eef1 0%, #dfe8e4 42%, #e9e4dc 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.35;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(16, 24, 32, 0.12) 1px, transparent 0);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
}

.nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-links { display: flex; gap: 18px; align-items: center; }

.logo {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  color: var(--deep);
  text-decoration: none;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-link:hover { color: var(--ink); }

/* Hero — one composition */
.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 24px 56px;
  min-height: calc(100vh - 88px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.brand-mark {
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(3.2rem, 8vw, 5.6rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--deep);
  margin: 0 0 18px;
  animation: rise 0.8s ease both;
}

.hero h1 {
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  max-width: 18ch;
  animation: rise 0.8s ease 0.08s both;
}

.lede {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 34ch;
  animation: rise 0.8s ease 0.16s both;
}

.cta { animation: rise 0.8s ease 0.24s both; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font: inherit;
  font-weight: 600;
  padding: 13px 20px;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
.btn.primary {
  background: var(--deep);
  color: #f4faf7;
}
.btn.primary:hover {
  background: #134536;
  transform: translateY(-1px);
}

.hero-visual {
  position: relative;
  height: min(520px, 70vh);
  animation: float-in 1s ease 0.2s both;
}

.sheet {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(16, 24, 32, 0.12);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sheet span {
  display: block;
  height: 10px;
  background: rgba(16, 24, 32, 0.08);
}

.sheet span:first-child {
  width: 42%;
  height: 14px;
  background: rgba(11, 110, 79, 0.35);
}

.s1 {
  width: 58%;
  height: 62%;
  left: 6%;
  top: 8%;
  transform: rotate(-6deg);
  animation: drift 7s ease-in-out infinite;
}
.s2 {
  width: 54%;
  height: 58%;
  right: 4%;
  top: 22%;
  transform: rotate(5deg);
  background: #fbf7f0;
  animation: drift 8s ease-in-out 0.6s infinite reverse;
}
.s2 span:first-child { background: rgba(196, 92, 38, 0.4); }
.s3 {
  width: 48%;
  height: 42%;
  left: 28%;
  bottom: 4%;
  transform: rotate(-2deg);
  background: #f0f6f3;
  animation: drift 6.5s ease-in-out 0.3s infinite;
}
.s3 span:first-child { background: rgba(16, 24, 32, 0.25); width: 55%; }

/* Shop */
main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 24px 80px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.section-head h2 {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.8rem;
  margin: 0;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}

.card {
  background: rgba(247, 249, 250, 0.9);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: rise 0.55s ease both;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(16, 24, 32, 0.1);
}

.cover {
  height: 190px;
  position: relative;
  overflow: hidden;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(145deg, var(--c1), var(--c2));
  z-index: 0;
}

.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.25;
  background-image: var(--pattern);
  z-index: 1;
}

.cover.photo::before,
.cover.photo::after {
  display: none;
}

.cover.photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.cover.photo::after {
  display: block;
  opacity: 1;
  background-image: none;
  background: linear-gradient(180deg, rgba(10, 20, 28, 0.15) 0%, rgba(10, 20, 28, 0.55) 100%);
  z-index: 1;
}

.cover-label,
.cover-price {
  position: relative;
  z-index: 2;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.cover-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.9;
}

.cover-price {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 600;
  align-self: flex-end;
}

.card-body {
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card h3 {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.2rem;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.card p {
  margin: 0;
  flex: 1;
  color: var(--muted);
  font-size: 0.92rem;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}

.amount {
  font-weight: 700;
  font-size: 1rem;
}

button.buy {
  appearance: none;
  border: 0;
  background: var(--accent);
  color: #f4fff9;
  font: inherit;
  font-weight: 600;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.2s ease;
}
button.buy:hover { background: var(--deep); }

/* Modal */
dialog {
  border: 1px solid var(--line);
  padding: 0;
  background: var(--surface);
  color: var(--ink);
  width: min(420px, calc(100vw - 32px));
  box-shadow: 0 24px 60px rgba(16, 24, 32, 0.2);
}
dialog::backdrop { background: rgba(10, 20, 28, 0.5); }

.sheet-modal {
  margin: 0;
  padding: 0 22px 26px;
  position: relative;
}

.co-cover {
  height: 160px;
  margin: 0 -22px 16px;
  background: linear-gradient(145deg, var(--c1, #0b6e4f), var(--c2, #0a2f24));
  position: relative;
  overflow: hidden;
}

.co-cover.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sheet-modal h2 {
  font-family: "Newsreader", Georgia, serif;
  margin: 0 28px 8px 0;
  font-size: 1.4rem;
}
.sheet-modal .price { font-weight: 700; font-size: 1.15rem; }
.hint { font-size: 0.85rem; color: var(--muted); }
.close {
  position: absolute;
  right: 12px;
  top: 8px;
  z-index: 2;
  border: 0;
  background: rgba(255, 255, 255, 0.75);
  width: 32px;
  height: 32px;
  font-size: 1.35rem;
  cursor: pointer;
  color: var(--ink);
}
#download-area a {
  color: var(--deep);
  font-weight: 700;
}

/* Trust strip */
.trust {
  max-width: 1120px;
  margin: 0 auto 28px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.trust-item {
  border: 1px solid var(--line);
  background: rgba(247, 249, 250, 0.75);
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.trust-item strong {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--deep);
}

.trust-item span {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.35;
}

.trust-item a { color: var(--deep); }

@media (max-width: 860px) {
  .trust { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .trust { grid-template-columns: 1fr; }
}

/* Checkout legal */
.co-facts {
  margin: 0 0 14px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.88rem;
}
.co-facts a { color: var(--deep); }

.agree {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.86rem;
  color: var(--ink);
  margin-bottom: 14px;
  line-height: 1.4;
}
.agree input {
  margin-top: 3px;
  flex-shrink: 0;
}
.agree a { color: var(--deep); }

.pay-locked {
  opacity: 0.45;
  pointer-events: none;
  filter: grayscale(0.3);
}
.pay-locked.is-open {
  opacity: 1;
  pointer-events: auto;
  filter: none;
}

/* Footer */
footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 24px 48px;
  color: var(--muted);
  font-size: 0.88rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
}
footer .logo { font-size: 1.1rem; display: inline-block; margin-bottom: 6px; }
.footer-brand p { margin: 0; max-width: 52ch; }
.footer-brand a, .footer-links a { color: var(--deep); }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-note { margin: 0; font-size: 0.82rem; }

/* Legal pages */
.legal-page .legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 12px 24px 64px;
}
.legal h1 {
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.legal .meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 28px;
}
.legal h2 {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.25rem;
  margin: 28px 0 10px;
}
.legal p, .legal li { color: #2a3640; }
.legal a { color: var(--deep); }
.legal ul, .legal ol { padding-left: 1.2rem; }
.legal .callout {
  border: 1px solid var(--line);
  background: rgba(247, 249, 250, 0.9);
  padding: 14px 16px;
  margin: 18px 0 8px;
  font-size: 0.95rem;
}
.legal-footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.legal-footer a { color: var(--deep); font-size: 0.9rem; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float-in {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@keyframes drift {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-bottom: 40px;
    gap: 28px;
  }
  .hero-visual {
    height: 280px;
    order: -1;
  }
  .brand-mark { font-size: clamp(2.8rem, 14vw, 4rem); }
  .section-head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero-visual { height: 220px; }
  .s1 { width: 62%; }
  .s2 { width: 58%; }
}
