:root {
  --bg: #faf7f2;
  --bg-alt: #f2ece2;
  --surface: #ffffff;
  --ink: #14110f;
  --muted: #5f574f;
  --line: #e4dccf;
  --accent: #e2552d;
  --accent-ink: #ffffff;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(20, 17, 15, .04), 0 8px 24px rgba(20, 17, 15, .06);
  --display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14110f;
    --bg-alt: #1c1815;
    --surface: #221d1a;
    --ink: #f5efe6;
    --muted: #b3a99d;
    --line: #342d28;
    --accent: #f26a42;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.1; margin: 0; letter-spacing: -0.03em; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow > * { max-width: 720px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; }
.brand-mark { width: 40px; height: 40px; flex: none; color: var(--ink); }
.brand-name {
  display: flex; flex-direction: column; align-items: flex-end; gap: 3px;
  margin-right: -.14em; /* cancel trailing letter-spacing so the text edge meets the icon */
  font: 700 17px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
}
.brand-name small { font: 500 9px/1 var(--sans); letter-spacing: .5em; color: var(--muted); margin-right: -.24em; }
nav { display: flex; gap: 22px; }
nav a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; }
nav a:hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 20px; border-radius: 999px;
  font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, background .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { border-color: var(--line); background: var(--surface); }
.btn[aria-disabled="true"] { background: var(--line); color: var(--muted); cursor: default; transform: none; }

/* Hero */
.hero { padding: clamp(64px, 12vw, 128px) 0 clamp(56px, 9vw, 96px); text-align: left; }
.hero h1 { max-width: 820px; }
.eyebrow { margin: 0 0 16px; color: var(--accent); font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.hero h1 { font-size: clamp(38px, 7vw, 68px); }
.lede { margin: 20px 0 32px; max-width: 560px; color: var(--muted); font-size: clamp(17px, 2.2vw, 20px); }
.hero-actions { display: flex; gap: 12px; justify-content: flex-start; flex-wrap: wrap; }

/* Sections */
.section { padding: clamp(56px, 9vw, 96px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: 36px; }
.section-head h2 { font-size: clamp(30px, 4.5vw, 42px); }
.section-head p { margin: 10px 0 0; color: var(--muted); }

/* Product cards */
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.card-art { aspect-ratio: 4 / 3; }
.art-1 { background: radial-gradient(circle at 30% 30%, #f6b48f, transparent 60%), linear-gradient(135deg, #e2552d, #f2a65a); }
.art-2 { background: radial-gradient(circle at 70% 30%, #c6d8c9, transparent 60%), linear-gradient(135deg, #2f5d50, #8fb59c); }
.art-3 { background: radial-gradient(circle at 40% 70%, #d9cff2, transparent 60%), linear-gradient(135deg, #3d3a7a, #9d8fd6); }
.card.is-placeholder .card-art { filter: saturate(.75); }
.card-body { display: flex; flex-direction: column; gap: 10px; padding: 22px; flex: 1; }
.card h3 { font-size: 22px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.badge {
  align-self: flex-start; padding: 4px 10px; border-radius: 999px;
  background: var(--bg-alt); color: var(--muted); font-size: 12px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
}
.card-foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price { font-family: var(--display); font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.step-num {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font-weight: 600; margin-bottom: 16px;
}
.steps h3 { font-size: 21px; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--muted); transition: transform .2s ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 12px 0 0; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

@media (max-width: 600px) {
  nav { gap: 14px; }
  nav a:nth-child(2) { display: none; }
  .brand-name { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
.price .currency { font: 600 12px/1 var(--sans); color: var(--muted); letter-spacing: .04em; margin-left: 2px; }

/* Product showcase
   Each product gets its own accent (--p) on the studio's warm base.
   --p is the solid color (white text on it passes AA), --p-soft a tint,
   --p-text the accent used as text on the page background. */
.product-galeria    { --p: #b8336a; --p2: #e78aa9; --p-text: #a52a5d; }
.product-tripkawan  { --p: #23794f; --p2: #6cc497; --p-text: #1f6e48; }
.product-tourism    { --p: #1f6aa5; --p2: #74b2e0; --p-text: #1b5f95; }
.product-mindgame   { --p: #5a48c0; --p2: #a89cf0; --p-text: #4f3fb0; }
.product-templates  { --p: #e2552d; --p2: #f2a65a; --p-text: #c2441f; }
@media (prefers-color-scheme: dark) {
  .product-galeria    { --p-text: #f08cb0; }
  .product-tripkawan  { --p-text: #6fd3a0; }
  .product-tourism    { --p-text: #7cbcf0; }
  .product-mindgame   { --p-text: #b2a8ff; }
  .product-templates  { --p-text: #f58a63; }
}

.products { display: grid; gap: 24px; grid-template-columns: repeat(6, 1fr); }
.product {
  grid-column: span 2;
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  border-top: 4px solid var(--p);
}
.product-wide { grid-column: span 3; }
.product-art {
  display: grid; place-items: center; aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 80% 15%, color-mix(in srgb, var(--p2) 70%, transparent), transparent 55%),
    linear-gradient(135deg, var(--p), color-mix(in srgb, var(--p) 55%, var(--p2)));
}
.product-wide .product-art { aspect-ratio: 2 / 1; }
.product-art svg { width: min(46%, 200px); height: auto; }
.product-body { display: flex; flex-direction: column; gap: 10px; padding: 22px; flex: 1; }
.product h3 { font-size: 24px; }
.product p { margin: 0; color: var(--muted); font-size: 15px; }
.product-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tag {
  padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--p-text); background: color-mix(in srgb, var(--p) 12%, transparent);
}
.product-link {
  margin-top: auto; padding-top: 10px; align-self: flex-start;
  color: var(--p-text); font-weight: 600; font-size: 15px; text-decoration: none;
}
.product-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.product-link:focus-visible { outline-color: var(--p); }
.product-link[aria-disabled="true"] { color: var(--muted); font-weight: 500; }
.product[data-placeholder] .product-art { filter: saturate(.85); }

/* Placeholder text: dashed outline so unfinished copy is obvious */
.ph { outline: 1.5px dashed color-mix(in srgb, var(--muted) 70%, transparent); outline-offset: 2px; border-radius: 3px; }

@media (max-width: 900px) {
  .product, .product-wide { grid-column: span 3; }
  .product-templates { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .products { grid-template-columns: 1fr; }
  .product, .product-wide, .product-templates { grid-column: auto; }
  .product-wide .product-art { aspect-ratio: 16 / 9; }
}

/* Template shop (Google Sheets templates sold through Payhip) */
.card-shot { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; border-bottom: 1px solid var(--line); background: #faf7f2; }


#templates .grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
@media (min-width: 1000px) { #templates .grid { grid-template-columns: repeat(4, 1fr); } }
.card-shot { height: auto; }
.bundle-card { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.bundle-card p { color: color-mix(in srgb, var(--bg) 75%, transparent); }
.bundle-card .tag { color: #fff; background: var(--accent); }
.bundle-card .badge { background: color-mix(in srgb, var(--bg) 15%, transparent); color: color-mix(in srgb, var(--bg) 80%, transparent); }
.bundle-card .currency { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.bundle-art {
  aspect-ratio: 4 / 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: radial-gradient(circle at 75% 20%, #f2a65a, transparent 55%), linear-gradient(135deg, #e2552d, #b83f1f);
  color: #fff; border-bottom: 1px solid color-mix(in srgb, var(--bg) 15%, transparent);
}
.bundle-art span { font: 800 clamp(72px, 9vw, 104px)/1 var(--display); letter-spacing: -0.03em; }
.bundle-art small { font: 600 13px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.price .was { font: 500 15px/1 var(--sans); color: color-mix(in srgb, currentColor 60%, transparent); margin-left: 6px; }
.bundle-card .btn[aria-disabled="true"] { background: color-mix(in srgb, var(--bg) 20%, transparent); color: color-mix(in srgb, var(--bg) 75%, transparent); }
#templates .card-body { padding: 20px; }
#templates .card-foot { flex-wrap: nowrap; }
#templates .price { white-space: nowrap; }
#templates .btn-buy { padding: 0 16px; white-space: nowrap; flex: none; }
#templates .bundle-card .price .was { display: block; margin-top: 6px; }
#templates .bundle-card .price .was { margin-left: 0; }

/* About */
.about .section-head { text-align: left; }
.values { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.values li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; }
.values h3 { font-size: 20px; }
.values p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.values .value-tag { margin: 0 0 6px; color: var(--accent); font: 600 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
@media (max-width: 600px) {
  .values { grid-template-columns: 1fr; gap: 12px; }
  .values li { padding: 18px; }
}
