/* heartitude design-sample demos: shared layout layer (loaded after demo-modern.css) */
:root { --accent: #2563EB; --accent-rgb: 37, 99, 235; --ink: #151A20; --soft: #55606E; --mute: #8A94A2; --line: #E5EAEF; --bg: #FFFFFF; --card: #FFFFFF; --r: 22px; }
body { font-family: 'General Sans', 'Anuphan', 'Outfit', system-ui, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.6; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: 'Outfit', 'Anuphan', sans-serif; letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance; }
h1 { font-size: clamp(34px, 5.6vw, 60px); font-weight: 600; }
h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 600; }
h3 { font-size: 18px; font-weight: 600; }
em { font-style: normal; color: var(--accent); }
p { text-wrap: pretty; }

/* demo bar (dark brand strip) */
.demo-bar { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; justify-content: center; gap: 8px 12px; flex-wrap: wrap;
 padding: 8px 14px; font-size: 12.5px; font-weight: 600; background: rgba(8,8,9,0.92); color: #C9CED6; backdrop-filter: blur(14px); }
.demo-bar b { color: #4FD1B5; }
.demo-bar a { color: #F2F2F4; border: 1px solid rgba(79,209,181,0.45); padding: 3px 12px; border-radius: 100px; }

/* nav */
nav.sn { position: sticky; top: 38px; z-index: 50; background: rgba(255,255,255,0.86); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.sn .in { max-width: 1120px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 18px; }
.sn .brand { display: inline-flex; align-items: center; gap: 10px; font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 18px; }
.sn .brand i { width: 36px; height: 36px; border-radius: 11px; background: var(--accent); color: #fff; display: grid; place-items: center; font-style: normal; font-size: 17px; rotate: -6deg; }
.sn .links { display: flex; gap: 18px; margin-left: auto; font-size: 14px; font-weight: 600; color: var(--soft); }
.sn .links a:hover { color: var(--ink); }
.sn .cta { margin-left: 10px; background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 100px; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
@media (max-width: 760px) { .sn .links { display: none; } .sn .cta { margin-left: auto; } }

/* hero */
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; padding: 64px 0 48px; }
.hero .lede { color: var(--soft); font-size: clamp(15.5px, 1.4vw, 18px); margin: 18px 0 26px; max-width: 52ch; }
.hero .ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.hero .facts { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 26px; font-size: 13px; color: var(--soft); font-weight: 600; }
.hero .facts b { display: block; font-family: 'Outfit', sans-serif; font-size: 24px; color: var(--ink); letter-spacing: -0.02em; }
.art { position: relative; border-radius: 28px; aspect-ratio: 4 / 3.2; overflow: hidden; background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.18), rgba(var(--accent-rgb), 0.04)); border: 1px solid var(--line); }
.art .float { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; box-shadow: 0 20px 40px -24px rgba(21,26,32,0.35); font-size: 12.5px; }
.art .float b { display: block; font-family: 'Outfit', sans-serif; font-size: 18px; letter-spacing: -0.02em; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; gap: 26px; padding-top: 40px; } .art { order: -1; aspect-ratio: 16/10; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 100px; font-weight: 600; font-size: 14.5px; border: 0; cursor: pointer; font-family: inherit;
 transition: transform .3s cubic-bezier(.34,1.56,.64,1), background .3s ease, color .3s ease; }
.btn-main { background: var(--accent); color: #fff; }
.btn-main:hover { transform: translateY(-2px); }
.btn-ghost { background: rgba(var(--accent-rgb), 0.08); color: var(--ink); }
.btn-ghost:hover { background: rgba(var(--accent-rgb), 0.14); }
.btn:active { transform: scale(0.97); }

/* sections & grids */
.section { padding: 56px 0; }
.section.alt { background: #F6F8FA; }
.sec-head { margin-bottom: 26px; }
.sec-head .sub { color: var(--soft); margin-top: 8px; max-width: 60ch; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border-radius: 100px; background: rgba(var(--accent-rgb), 0.09); color: var(--accent); font-size: 11.5px; font-weight: 700; letter-spacing: 0.03em; margin-bottom: 14px; }
.eyebrow::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.g2, .g3, .g4 { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; transition: transform .4s cubic-bezier(.22,.61,.36,1), border-color .4s ease, box-shadow .4s ease; }
.card:hover { transform: translateY(-4px); border-color: rgba(var(--accent-rgb), 0.4); box-shadow: 0 22px 44px -28px rgba(21,26,32,0.3); }
.card .pic { border-radius: 14px; aspect-ratio: 16 / 10; margin-bottom: 14px; background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.22), rgba(var(--accent-rgb), 0.05)); display: grid; place-items: center; font-size: 40px; position: relative; overflow: hidden; }
.card .pic::after { content: ''; position: absolute; inset: auto -20% -40% -20%; height: 70%; background: radial-gradient(50% 60% at 50% 100%, rgba(255,255,255,0.7), transparent 70%); }
.card small { color: var(--mute); font-size: 12.5px; }
.card p { color: var(--soft); font-size: 14px; margin-top: 6px; }
.price { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 22px; letter-spacing: -0.02em; color: var(--accent); font-variant-numeric: tabular-nums; }
.price small { color: var(--mute); font-size: 12.5px; font-weight: 500; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 100px; font-size: 11.5px; font-weight: 700; background: rgba(var(--accent-rgb), 0.1); color: var(--accent); }
.badge.ok { background: rgba(16,185,129,0.12); color: #0B8A6C; }
.badge.off { background: rgba(21,26,32,0.08); color: var(--mute); }

/* filters */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip { padding: 8px 14px; border-radius: 100px; background: #F1F4F7; color: var(--soft); font-size: 13px; font-weight: 600; border: 0; cursor: pointer; font-family: inherit; transition: background .25s ease, color .25s ease, transform .3s cubic-bezier(.34,1.56,.64,1); }
.chip.on { background: var(--ink); color: #fff; }
.chip:active { transform: scale(0.95); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.stat b { display: block; font-family: 'Outfit', sans-serif; font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.03em; color: var(--accent); font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; color: var(--soft); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* lists, accordion, forms */
.ticks { list-style: none; display: grid; gap: 10px; }
.ticks li { padding-left: 28px; position: relative; color: var(--soft); font-size: 14.5px; }
.ticks li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: rgba(var(--accent-rgb), 0.12); color: var(--accent); font-size: 12px; font-weight: 800; display: grid; place-items: center; }
details.acc { border: 1px solid var(--line); border-radius: 16px; background: #fff; margin-bottom: 10px; overflow: hidden; }
details.acc summary { list-style: none; cursor: pointer; padding: 16px 20px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary::after { content: '+'; color: var(--accent); font-size: 20px; font-weight: 700; transition: transform .3s ease; }
details.acc[open] summary::after { transform: rotate(45deg); }
details.acc .body { padding: 0 20px 16px; color: var(--soft); font-size: 14.5px; }
.form { display: grid; gap: 14px; }
.form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 600px) { .form .row { grid-template-columns: minmax(0, 1fr); } }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--soft); margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 0 16px; border-radius: 14px; border: 1px solid #D3DAE2; background: #fff; font: inherit; font-size: 15px; color: var(--ink); }
.field textarea { padding: 12px 16px; min-height: 100px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.16); }
.ok { display: none; background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.3); border-radius: 16px; padding: 18px 20px; color: #0B6B52; font-weight: 600; }
.ok .code { display: inline-block; margin-top: 6px; font-family: 'Outfit', monospace; font-weight: 700; letter-spacing: 0.08em; color: var(--ink); }
.summary { background: #F6F8FA; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; font-size: 14px; }
.summary div { display: flex; justify-content: space-between; padding: 4px 0; }
.summary .tot { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; font-weight: 700; }
.summary .tot b { color: var(--accent); }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 120px; gap: 10px; }
.tile { border-radius: 16px; position: relative; overflow: hidden; background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.3), rgba(var(--accent-rgb), 0.06)); display: grid; place-items: end start; padding: 12px; font-size: 12.5px; font-weight: 600; color: var(--ink); }
.tile::before { content: attr(data-ico); position: absolute; right: 12px; top: 10px; font-size: 26px; opacity: 0.9; }
.tile.w2 { grid-column: span 2; } .tile.h2 { grid-row: span 2; } .tile.w3 { grid-column: span 3; }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tile.w3 { grid-column: span 2; } }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 100px; font-size: 13.5px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .3s ease, transform .3s cubic-bezier(.34,1.56,.64,1); z-index: 90; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* footer + pitch */
footer.sf { padding: 28px 20px 34px; text-align: center; color: var(--mute); font-size: 13px; border-top: 1px solid var(--line); }
.pitch { background: #0B0D10; color: #F2F2F4; text-align: center; padding: 48px 20px 56px; }
.pitch .tag { display: inline-block; font-size: 12px; font-weight: 700; color: #8FA0A8; letter-spacing: 0.04em; margin-bottom: 12px; }
.pitch h2 { color: #F2F2F4; }
.pitch h2 em { color: #4FD1B5; }
.pitch .sub { color: #AEB6BE; max-width: 56ch; margin: 12px auto 22px; font-size: 15px; }
.pitch .cta { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(135deg, #4FD1B5, #14B48A); color: #06100D; font-weight: 700; border-radius: 100px; min-height: 50px; padding: 0 26px; }

/* reveal */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.22,.61,.36,1), transform .8s cubic-bezier(.22,.61,.36,1); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } }
@media (max-width: 600px) {
 .demo-bar { padding: 6px 10px; font-size: 11px; gap: 3px 8px; line-height: 1.35; }
 .demo-bar a { padding: 2px 9px; font-size: 11px; }
}
