/* Values below are measured from the reference site (primepeptides.co) for the prototype. */
:root {
    --navy: #1b4258;
    --cobalt: #255b7a;
    --muted: #4f6b7b;
    --soft: #7b8e99;
    --mint: #cbf2bd;
    --mint2: #e2ffd7;
    --orange: #b9471a;
    --bone: #f1ece5;
    --line: #dce2e5;
    --cream: #f4ede3;
    --page: #fafafa;
    --hero-bg: #f3f3f1;
    --img-bg: #e5e5e3;
    --body: #444444;
    /* stand-in for the reference's licensed "Gritlen" display face */
    --display: "Fraunces", "IBM Plex Sans Thai", Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--body); font-family: "DM Sans", "IBM Plex Sans Thai", system-ui, sans-serif; font-size: 16px; line-height: 1.5; }
a { color: inherit; }
img { max-width: 100%; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* announcement bar */
.topbar { position: relative; background: var(--cobalt); color: var(--cream); text-align: center; font-size: 14px; font-weight: 500; line-height: 18px; padding: 9px 44px; }
.topbar-x { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--cream); font-size: 20px; line-height: 1; cursor: pointer; }

/* header */
.site-header { background: #fff; }
.header-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 82px; }
.brand { font-family: var(--display); font-weight: 300; font-size: 36px; letter-spacing: -.03em; color: var(--navy); text-decoration: none; line-height: 1; }
.brand.light { color: #fff; }
.main-nav { display: flex; }
.main-nav a { padding: 13px 20px; font-size: clamp(15px, 1.15vw, 20px); font-weight: 500; color: var(--navy); text-decoration: none; }
.main-nav a:hover { color: var(--cobalt); }

/* hero */
.hero { background: var(--hero-bg); padding: 64px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 24px; align-items: center; }
.eyebrow { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); line-height: 18px; }
.hero h1 { margin: 14px 0 20px; font-family: var(--display); font-weight: 300; font-size: clamp(40px, 5.1vw, 76px); line-height: .95; letter-spacing: -.02em; color: var(--navy); max-width: 7.4em; }
.hero .lead { margin: 0 0 28px; font-size: 19px; line-height: 1.55; color: #4a6778; max-width: 470px; }
.btn { display: inline-flex; align-items: center; height: 48px; padding: 0 26px; border-radius: 999px; background: var(--navy); border: 2px solid var(--navy); color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; }
.btn:hover { background: #14334a; border-color: #14334a; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 28px 0 0; padding: 0; list-style: none; font-size: 14px; color: #4a6778; line-height: 21px; }
.ticks li { display: flex; align-items: center; gap: 8px; }
.tick { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--mint); color: var(--navy); font-size: 11px; font-weight: 700; line-height: 1; }
.hero-art img { display: block; width: 100%; height: auto; }

/* ticker */
.ticker { background: var(--navy); color: #fff; overflow: hidden; white-space: nowrap; font: 500 13px/1 "DM Sans", sans-serif; letter-spacing: .02em; }
.track { display: inline-flex; gap: 28px; padding: 13px 0; animation: marq 28s linear infinite; }
.track span { display: inline-flex; align-items: center; gap: 28px; }
.track i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); display: inline-block; }
@keyframes marq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .track { animation: none; } }

/* sections */
.block { padding: 72px 0 64px; }
.sec-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; margin-bottom: 32px; }
.sec-top h2, .h2 { margin: 6px 0 0; font-family: var(--display); font-weight: 300; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.02; letter-spacing: -.02em; color: var(--navy); }

/* made / tested / shipped */
.journey { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); width: min(500px, 100%); padding-top: 6px; }
.jline, .jfill { position: absolute; left: 16.66%; top: 27px; height: 2px; border-radius: 2px; background: var(--line); width: 66.68%; }
.jfill { background: var(--navy); }
.jstop { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 4px; }
.jic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1.5px solid var(--line); color: var(--soft); }
.jic svg { width: 21px; height: 21px; display: block; }
.jstop.on .jic { background: var(--mint); border-color: var(--mint); color: var(--navy); }
.jstop.now .jic { background: var(--navy); border-color: var(--navy); color: var(--mint); transform: scale(1.14); box-shadow: 0 8px 18px -8px rgba(27,66,88,.55); }
.jstop .k { margin: 10px 0 0; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); line-height: 18px; }
.jstop .c { margin: 0; font-size: 15px; line-height: 21px; color: var(--navy); }

/* product grid + cards */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 22px; }
.pcard { display: block; text-decoration: none; }
.pcard .art { border-radius: 18px; background: var(--img-bg); overflow: hidden; aspect-ratio: 1/1; }
.pcard .art img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.pcard:hover .art img { transform: scale(1.04) translateY(-4px); }
.pcard h3 { margin: 12px 0 0; font-size: 16px; font-weight: 600; line-height: 1.3; color: var(--navy); }
.center { text-align: center; margin: 40px 0 0; }

/* problem section */
.problem { border-top: 1px solid var(--line); }
.problem .head { max-width: 640px; margin-bottom: 36px; }
.problem .head p { margin: 10px 0 0; font-size: 17px; color: var(--muted); }
.cmp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cmp-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.cmp-card .lab { display: block; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }
.cmp-card .lab.good { color: var(--cobalt); margin-top: 18px; }
.cmp-card h3 { margin: 4px 0 6px; font-family: var(--display); font-weight: 300; font-size: 26px; line-height: 1.1; color: var(--navy); }
.cmp-card p { margin: 0; font-size: 15px; color: var(--muted); }

/* questions */
.faq { max-width: 760px; margin-top: 28px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.faq details p { margin: 10px 0 0; color: var(--muted); }

/* footer */
.foot { background: var(--navy); color: #cfe0e8; padding: 56px 0 28px; }
.foot-in { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot p { margin: 10px 0 0; }
.foot-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.foot-cols div { display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.foot-cols b { color: #fff; margin-bottom: 4px; }
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; }
.foot-fine { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.16); font-size: 13px; }

/* shop + product pages */
.shop-top { padding-top: 40px; }
.crumbs { font-size: 14px; color: var(--muted); padding: 22px 0 0; }
.crumbs a { color: var(--cobalt); text-decoration: none; }
.pdetail { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; padding: 28px 0 72px; align-items: start; }
.pdetail .stage { border-radius: 18px; background: var(--img-bg); overflow: hidden; aspect-ratio: 1/1; }
.pdetail .stage img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pdetail h1 { margin: 6px 0 12px; font-family: var(--display); font-weight: 300; font-size: clamp(32px, 4.4vw, 52px); line-height: 1; letter-spacing: -.02em; color: var(--navy); }
.pdetail .lead { color: var(--muted); font-size: 17px; margin: 0 0 22px; }
.pdetail h2 { font-size: 18px; margin: 26px 0 10px; color: var(--navy); }
.pdetail ul { margin: 0; padding-left: 20px; color: var(--muted); }
.pdetail li { margin-bottom: 6px; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); }
.specs { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.specs th, .specs td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 15px; vertical-align: top; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }
.specs th { width: 38%; color: var(--muted); font-weight: 500; background: #fafcfc; }
.back { margin-top: 28px; display: inline-block; color: var(--cobalt); font-weight: 600; text-decoration: none; }

@media (max-width: 860px) {
    .header-in { grid-template-columns: auto 1fr; height: 64px; }
    .header-spacer { display: none; }
    .main-nav { justify-content: flex-end; }
    .main-nav a { padding: 10px 10px; }
    .brand { font-size: 28px; }
    .hero { padding: 36px 0 44px; }
    .hero-grid, .pdetail { grid-template-columns: 1fr; }
    .hero-art { order: -1; }
    .sec-top { flex-direction: column; gap: 18px; }
    .grid { grid-template-columns: repeat(2, 1fr); gap: 20px 14px; }
    .cmp { grid-template-columns: 1fr; }
    .block { padding: 48px 0 44px; }
}
