/* GoodsChat site: one stylesheet, no third-party requests (CSP: style-src 'self'). Ocean-blue brand, Inter (self-hosted subset).
   Direction (ui-ux-pro-max, "App Store style landing"): bold gradient hero with a phone peeking in, real screenshots in a swipe
   carousel, icon features, big type, generous section gaps, a call to action repeated down the page. */
@font-face { font-family: 'Inter'; font-weight: 400; font-style: normal; font-display: swap; src: url('fonts/Inter-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-style: normal; font-display: swap; src: url('fonts/Inter-SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-style: normal; font-display: swap; src: url('fonts/Inter-Bold.woff2') format('woff2'); }

:root {
  --bg: #F6F7F9; --surface: #FFFFFF; --fg: #12161C; --muted: #5A6577; --line: #DEE3EA;
  --accent: #0369A1; --accent-2: #075985; --on-accent: #FFFFFF; --accent-soft: #E0F2FE; --on-accent-soft: #082F49;
  --grad: linear-gradient(135deg, #0369A1 0%, #075985 62%, #0C4A6E 100%);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px)); --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1217; --surface: #171B22; --fg: #EEF1F5; --muted: #9AA5B4; --line: #262C36;
    --accent: #38A9E0; --accent-2: #0369A1; --on-accent: #04202F; --accent-soft: #0B2F47; --on-accent-soft: #BAE6FD;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 17px; line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible, .btn:focus-visible, .carousel:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.on-grad a:focus-visible, .on-grad .btn:focus-visible { outline-color: #fff; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(38px, 8.5vw, 64px); font-weight: 700; }
h2 { font-size: clamp(28px, 5vw, 40px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { max-width: 1080px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 10; }

/* ---- header: gradient hero on the home page, a slim gradient bar on the other pages ---- */
.hero-wrap, .bar { background: var(--grad); color: #fff; position: relative; overflow: hidden; }
.hero-wrap::before, .bar::before { content: ""; position: absolute; right: -90px; top: -110px; width: 340px; height: 340px; border-radius: 50%; background: rgb(255 255 255 / .09); }
.hero-wrap::after { content: ""; position: absolute; left: -110px; bottom: 30px; width: 260px; height: 260px; border-radius: 50%; background: rgb(255 255 255 / .06); }
.bar::after { content: ""; position: absolute; left: 40%; bottom: -70px; width: 140px; height: 140px; border-radius: 50%; background: rgb(255 255 255 / .06); }
.top { position: relative; z-index: 2; display: flex; align-items: center; gap: 20px; padding-block: 14px; }
.brand { font-weight: 700; font-size: 20px; letter-spacing: -0.02em; color: inherit; text-decoration: none; margin-right: auto; display: flex; align-items: center; gap: 10px; min-height: 44px; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.top nav { display: flex; gap: 6px; align-items: center; }
.top nav a:not(.btn) { color: rgb(255 255 255 / .88); text-decoration: none; font-size: 15px; font-weight: 600; padding: 10px 12px; border-radius: 10px; min-height: 44px; display: inline-flex; align-items: center; }
.top nav a:not(.btn):hover { background: rgb(255 255 255 / .12); color: #fff; }
@media (max-width: 640px) { .top nav a:not(.btn) { display: none; } }
.bar .top { padding-block: 8px; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 17px;
       text-decoration: none; border: 2px solid var(--accent); color: var(--accent); background: transparent; transition: background-color .18s, color .18s, transform .18s; cursor: pointer; }
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-2); color: #fff; }
.btn:not(.primary):hover { background: var(--accent-soft); }
.btn:active { transform: scale(.98); }
.btn.small-btn { min-height: 44px; padding: 0 18px; font-size: 15px; }
.on-grad .btn { border-color: rgb(255 255 255 / .75); color: #fff; }
.on-grad .btn:not(.primary):hover { background: rgb(255 255 255 / .14); }
.on-grad .btn.primary { background: #fff; color: #075985; border-color: #fff; }
.on-grad .btn.primary:hover { background: #E0F2FE; color: #082F49; }

/* ---- hero ---- */
.hero { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(20px, 5vw, 56px); align-items: end; padding-top: clamp(24px, 5vw, 56px); }
.hero .copy { display: flex; flex-direction: column; gap: 22px; padding-bottom: clamp(28px, 6vw, 72px); align-self: center; }
.hero .lead { font-size: clamp(18px, 2.4vw, 22px); color: rgb(255 255 255 / .92); max-width: 30em; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.chips li { font-size: 14px; font-weight: 600; padding: 6px 14px; border-radius: 999px; background: rgb(255 255 255 / .15); border: 1px solid rgb(255 255 255 / .22); }
.hero .note { font-size: 14px; color: rgb(255 255 255 / .85); }
.peek { justify-self: center; width: min(290px, 100%); height: clamp(300px, 78vw, 480px); overflow: hidden; align-self: end; }
.device { border: 9px solid #0B1220; border-radius: 38px; overflow: hidden; background: #0B1220; box-shadow: 0 0 0 1.5px rgb(255 255 255 / .22), 0 30px 70px rgb(0 0 0 / .35); }
.peek .device { border-bottom: 0; border-radius: 38px 38px 0 0; }
@media (max-width: 760px) { .hero { grid-template-columns: minmax(0, 1fr); } .peek { width: min(270px, 80%); } }

/* ---- sections ---- */
.section { padding-block: clamp(48px, 8vw, 96px) 0; display: flex; flex-direction: column; gap: 28px; }
.section.last { padding-bottom: clamp(48px, 8vw, 96px); }
.section > p.intro { color: var(--muted); max-width: 40em; margin-top: -12px; font-size: 18px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card p, .card li { color: var(--muted); font-size: 16px; }
.card ul { margin: 4px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.card .tagline { font-size: 13px; font-weight: 700; color: var(--accent); }
.feature { flex-direction: row; gap: 16px; align-items: flex-start; }
.feature > div:last-child { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ic { width: 48px; height: 48px; border-radius: 15px; background: var(--grad); color: #fff; display: grid; place-items: center; flex: none; box-shadow: 0 8px 18px rgb(3 105 161 / .28); }
.ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* screenshot carousel: swipe on a phone, scroll or arrow keys elsewhere */
.carousel { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding: 4px var(--gutter-r) 20px var(--gutter-l); margin-inline: calc(var(--gutter-l) * -1) calc(var(--gutter-r) * -1); scrollbar-width: thin; }
.carousel figure { flex: 0 0 min(66vw, 250px); scroll-snap-align: center; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.carousel figcaption { font-size: 15px; color: var(--muted); text-align: center; }
.carousel figcaption b { display: block; color: var(--fg); font-size: 16px; }
.carousel .device { border-width: 7px; border-radius: 32px; box-shadow: 0 18px 44px rgb(3 105 161 / .22), 0 0 0 1px var(--line); }

/* steps: a vertical line joins the numbers */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; counter-reset: step; }
.steps li { counter-increment: step; display: flex; gap: 18px; align-items: flex-start; position: relative; padding-bottom: 28px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: counter(step); flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 18px; z-index: 1; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: var(--line); }
.steps b { display: block; font-size: 20px; line-height: 1.3; }
.steps span { color: var(--muted); }
@media (min-width: 761px) { .steps { flex-direction: row; gap: 24px; } .steps li { flex: 1; flex-direction: column; padding-bottom: 0; } .steps li:not(:last-child)::after { left: 56px; right: -24px; top: 21px; bottom: auto; width: auto; height: 2px; } }

.limits { background: var(--accent-soft); color: var(--on-accent-soft); border-radius: 26px; padding: clamp(22px, 4vw, 40px); display: flex; flex-direction: column; gap: 14px; }
.limits ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.limits a { color: inherit; font-weight: 700; }

.band { position: relative; overflow: hidden; background: var(--grad); color: #fff; border-radius: 28px; padding: clamp(28px, 6vw, 56px); display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.band::before { content: ""; position: absolute; right: -60px; top: -80px; width: 240px; height: 240px; border-radius: 50%; background: rgb(255 255 255 / .09); }
.band > * { position: relative; }
.band p { color: rgb(255 255 255 / .92); max-width: 32em; font-size: 18px; }

/* faq */
details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; }
details + details { margin-top: 10px; }
summary { cursor: pointer; font-weight: 600; padding: 18px 0; min-height: 56px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--accent); font-size: 26px; line-height: 1; font-weight: 400; }
details[open] summary::after { content: '\2013'; }
details p { padding-bottom: 20px; color: var(--muted); }

/* footer */
.foot { border-top: 1px solid var(--line); padding-block: 28px 48px; display: flex; flex-wrap: wrap; gap: 12px 24px; color: var(--muted); font-size: 14px; }
.foot nav { display: flex; gap: 6px 8px; flex-wrap: wrap; margin-right: auto; }
.foot a { color: var(--muted); padding: 10px 6px; min-height: 44px; display: inline-flex; align-items: center; }

/* article pages (keamanan, privasi, syarat) */
.doc { max-width: 720px; padding-block: 36px 56px; display: flex; flex-direction: column; gap: 18px; }
.doc h1 { font-size: clamp(30px, 5vw, 42px); }
.doc h2 { font-size: 22px; margin-top: 14px; }
.doc ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.doc .draft { background: var(--accent-soft); color: var(--on-accent-soft); border-radius: 12px; padding: 12px 16px; font-size: 15px; }

/* invite page */
.invite { min-height: 70vh; display: grid; place-items: center; padding-block: 32px; }
.invite .box { width: min(420px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 32px 24px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.invite .box > div { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; }
.invite .box > div[hidden] { display: none; }
.invite .avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 30px; font-weight: 700; }
.invite .btn { width: 100%; }
.invite h1 { font-size: 26px; overflow-wrap: anywhere; }
