/* Design system: Clay (awesome-design-md), the same look as fondasi.pages.dev —
   cream canvas, near-black CTAs, rounded display type, saturated cards, own clay-style illustrations. */
:root {
  --primary: #0a0a0a;
  --primary-active: #1f1f1f;
  --ink: #0a0a0a;
  --body: #3a3a3a;
  --body-strong: #1a1a1a;
  --muted: #5f5f5f;
  --hairline: #e5e0d2;
  --canvas: #fffaf0;
  --surface-soft: #faf5e8;
  --surface-card: #f5f0e0;
  --surface-strong: #ebe6d6;
  --on-dark-soft: #c9d6d3;
  --pink: #ff4d8b;
  --teal: #1a3a3a;
  --peach: #ffb084;
  --ochre: #e8b94a;
  --mint: #a4d4c5;
  --success: #12703c;

  --display: "Fredoka", "Inter", system-ui, sans-serif;
  --text: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 24px; --r-pill: 9999px;
  --section: clamp(64px, 8vw, 96px);
  --gutter: clamp(16px, 3vw, 32px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--body); font: 400 16px/1.55 var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--ink); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--ochre); color: var(--ink); }
h1, h2, h3, h4, p { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 500; color: var(--ink); text-wrap: balance; }
h3 { font: 600 18px/1.4 var(--text); color: var(--ink); }
.wrap { max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border: 0; border-radius: var(--r-md); font: 600 15px/1 var(--text); text-decoration: none; cursor: pointer; background: var(--primary); color: #fff; transition: transform 140ms var(--ease-out), background-color 160ms ease; }
.btn:active { transform: scale(.97); }
.btn.secondary { background: var(--canvas); color: var(--ink); border: 1px solid #d8d2c2; }
.btn.on-color { background: var(--canvas); color: var(--ink); }
.btn.on-dark { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.45); }
@media (hover: hover) {
  .btn:hover { background: var(--primary-active); }
  .btn.secondary:hover, .btn.on-color:hover { background: #fff; }
  .btn.on-dark:hover { background: rgba(255,255,255,.1); }
}

/* Legal pages: privacy policy and terms */
.doc { max-width: 760px; margin-inline: auto; padding-inline: var(--gutter); padding-top: clamp(32px, 5vw, 64px); }
.doc .back { font: 500 15px/1.4 var(--text); color: var(--muted); text-decoration: none; }
@media (hover: hover) { .doc .back:hover { color: var(--ink); text-decoration: underline; } }
.doc h1 { margin-top: 20px; font-size: clamp(40px, 5vw, 64px); line-height: 1.02; letter-spacing: -0.03em; }
.doc .updated { margin-top: 14px; font-size: 14px; color: var(--muted); }
.doc .intro { margin-top: 24px; font-size: 18px; color: var(--body-strong); }
.doc h2 { margin-top: 44px; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.15; letter-spacing: -0.015em; }
.doc p, .doc li { font-size: 17px; color: var(--body-strong); }
.doc p { margin-top: 14px; }
.doc ul { margin: 14px 0 0; padding-left: 22px; display: grid; gap: 8px; }
.doc .note { margin-top: 44px; background: var(--surface-card); border-radius: var(--r-lg); padding: 22px 24px; }
.doc .note p { margin: 0; }

/* Nav */
.nav { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 24px/1 var(--display); color: var(--ink); white-space: nowrap; }
.logo svg { width: 32px; height: 24px; }
.nav-links { display: flex; align-items: center; gap: 28px; font: 500 15px/1.4 var(--text); }
.nav-links a:not(.btn) { text-decoration: none; color: var(--ink); }
@media (hover: hover) { .nav-links a:not(.btn):hover { text-decoration: underline; } }
.nav .btn { height: 44px; padding: 0 18px; }

/* Hero */
.hero { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 4vw, 64px); align-items: center; padding-block: clamp(32px, 5vw, 72px) 8px; }
.hero h1 { font-size: clamp(44px, 6vw, 80px); line-height: 1; letter-spacing: -0.035em; max-width: 10.5em; }
.hero .lead { margin-top: 24px; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.55; color: var(--body-strong); max-width: 34em; }
.hero-act { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-art { border-radius: var(--r-xl); overflow: hidden; background: var(--teal); aspect-ratio: 600 / 560; }
.hero-art img { width: 100%; height: 100%; }

/* Section heads */
.sec { padding-top: var(--section); scroll-margin-top: 24px; }
.sec-head { display: grid; grid-template-columns: 7fr 5fr; gap: 16px 64px; align-items: end; margin-bottom: 40px; }
.sec-head h2 { font-size: clamp(36px, 4vw, 56px); line-height: 1.05; letter-spacing: -0.03em; }
.sec-head p { font-size: 17px; color: var(--body); max-width: 30em; }

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: var(--r-pill); font: 600 13px/1 var(--text); background: var(--canvas); color: var(--ink); }
.tag.live { background: #cdeee0; color: #0f5a37; }
.tag.dim { background: rgba(255,255,255,.12); color: #fff; }

/* Product + content cards share one split layout */
.card { border-radius: var(--r-xl); padding: clamp(28px, 4vw, 56px); display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 4vw, 56px); }
.card-name { display: flex; align-items: center; gap: 14px; margin-top: 22px; font: 500 clamp(36px, 4vw, 52px)/1 var(--display); letter-spacing: -0.03em; color: inherit; }
.card-name svg { width: 44px; height: 38px; flex: none; }
.card .desc { margin-top: 16px; font-size: 17px; max-width: 34em; }
.card .acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.product { background: var(--peach); color: var(--ink); align-items: start; }
.product .desc { color: var(--body-strong); }
.ticks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; font-size: 16px; color: var(--ink); }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.ticks li::before { content: ""; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--ink) center / 12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' fill='none' stroke='%23ffb084' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

.prices { background: var(--canvas); border-radius: var(--r-lg); padding: 22px 24px 0; }
.prices h4 { font: 600 15px/1.4 var(--text); color: var(--ink); }
.price-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--hairline); }
.price-row:last-of-type { border-bottom: 0; }
.price-row h5 { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font: 600 17px/1.3 var(--text); color: var(--ink); }
.price-row .for { font-size: 14px; color: var(--muted); margin-top: 4px; }
.early { background: var(--ochre); color: var(--ink); font: 600 12px/1 var(--text); padding: 5px 9px; border-radius: var(--r-pill); }
.amt { text-align: right; font: 500 28px/1 var(--display); letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.amt small { display: block; margin-top: 6px; font: 400 13px/1.3 var(--text); letter-spacing: 0; color: var(--muted); }
.amt s { color: inherit; }
.price-foot { margin: 0 -24px; padding: 16px 24px 20px; border-top: 1px solid var(--hairline); font-size: 14px; color: var(--muted); }

.content { background: var(--teal); color: #fff; align-items: center; }
.content .tagline { margin-top: 12px; font: 500 clamp(22px, 2vw, 26px)/1.25 var(--display); color: var(--mint); }
.content .desc { color: var(--on-dark-soft); }
.content .handles { margin-top: 16px; font-size: 14px; color: var(--on-dark-soft); }
.content-art { justify-self: center; width: min(320px, 100%); }

/* About: saturated cards, 3-up */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fcard { border-radius: var(--r-xl); padding: 32px; display: grid; gap: 12px; align-content: start; color: var(--ink); }
.fcard h3 { font: 500 26px/1.15 var(--display); letter-spacing: -0.01em; color: inherit; }
.fcard p { font-size: 15.5px; color: var(--body-strong); }
.f-pink { background: var(--pink); }
.f-ochre { background: var(--ochre); }
.f-mint { background: var(--mint); }

/* Contact band */
.contact { background: var(--surface-strong); border-radius: var(--r-xl); padding: clamp(28px, 5vw, 72px); display: grid; grid-template-columns: 6fr 5fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.contact h2 { font-size: clamp(36px, 4vw, 56px); line-height: 1.05; letter-spacing: -0.03em; }
.contact .sub { margin-top: 16px; font-size: 17px; color: var(--body-strong); max-width: 26em; }
.mail-card { background: var(--canvas); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px); display: grid; gap: 18px; }
.mail-card .label { font-size: 14px; color: var(--muted); }
.mail-card .mail { display: block; margin-top: 6px; font: 500 clamp(22px, 2.4vw, 28px)/1.2 var(--display); color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
@media (hover: hover) { .mail-card .mail:hover { text-decoration: underline; } }
.mail-acts { display: flex; flex-wrap: wrap; gap: 10px; }
html:not(.js) #copy-mail { display: none; }
#copy-status { font-size: 14px; color: var(--success); min-height: 1.5em; }

/* Footer */
.foot { margin-top: var(--section); background: var(--surface-soft); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-block: 72px 40px; }
.foot-grid p { font-size: 15px; max-width: 26em; margin-top: 14px; }
.foot h3 { font: 600 14px/1.4 var(--text); color: var(--ink); margin-bottom: 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.foot ul a { color: var(--body); text-decoration: none; }
@media (hover: hover) { .foot ul a:hover { color: var(--ink); text-decoration: underline; } }
.foot .legal { font-size: 13.5px; color: var(--muted); padding-bottom: 24px; }
.horizon { width: 100%; height: clamp(140px, 18vw, 260px); object-fit: cover; object-position: center bottom; }

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: var(--d, 0ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .hero h1, .js .hero .lead, .js .hero-act { animation: rise 900ms var(--ease-out) both; }
  .js .hero .lead { animation-delay: 80ms; } .js .hero-act { animation-delay: 160ms; }
  .js .hero-art { animation: pop 1000ms var(--ease-out) 120ms both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }

/* Tablet */
@media (max-width: 960px) {
  .card, .contact { grid-template-columns: 1fr; }
  .content-art { width: min(260px, 70%); grid-row: 1; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
/* Mobile */
@media (max-width: 767px) {
  .nav-links a.navlink { display: none; }
  .logo { font-size: 22px; }
  .nav .btn { height: 40px; padding: 0 14px; font-size: 14px; }
  .hero { grid-template-columns: 1fr; padding-top: 16px; }
  .hero h1 { font-size: clamp(34px, 9.4vw, 52px); }
  .sec-head { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .fcard { padding: 24px; }
  .prices { padding-inline: 18px; }
  .price-foot { margin-inline: -18px; padding-inline: 18px; }
  .amt { font-size: 24px; }
  .contact { padding: 24px 20px; }
  .mail-card { padding: 20px; }
  .mail-card .mail { font-size: 20px; }
}
@media (max-width: 420px) {
  .foot-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
