/* ChatGO — site styles.
 *
 * Deliberately the same design language as the app, not a generic landing page: the pastel
 * palette, the square corners, the monospace face and the hard offset shadows are all taken
 * from ui/theme/Theme.kt and ChatGoColors. If the app's palette moves, this should move with
 * it — the two are meant to look like one product.
 *
 * Colours are copied by value rather than imported because this is static HTML, so they are
 * listed once here in :root and referenced everywhere below.
 */

:root {
    --paper: #FFF7F3;     /* app background: warm cream */
    --card: #FFFFFF;
    --card-alt: #F3EEF9;
    --ink: #3B2A4A;       /* outlines and primary text */
    --pink: #FF9ECD;
    --pink-deep: #E56AAE;
    --mint: #6FD79B;
    --mint-deep: #3FAE73;
    --rose: #FF7A93;
    --coin: #FFC94A;
    --text-secondary: #6E5C82;
    --text-muted: #9C8DAE;

    /* 3 dp of the app, scaled for a page read at arm's length */
    --hard: 4px;
    --border: 2px;
}

* { box-sizing: border-box; }

/* Replaced elements carry width/height attributes; without height:auto the intrinsic
   height wins and a 520x1167 screenshot stays 1167 tall however narrow the column gets. */
img { max-width: 100%; height: auto; }

/* A grid or flex child defaults to min-width:auto, which means it refuses to shrink below
   its content's intrinsic width and silently widens the whole page. This is what pushed
   the mobile layout past the viewport. */
.hero > *, .steps > *, .features > *, .screens > *, .step, .feature, .screen {
    min-width: 0;
}

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
                 "Liberation Mono", monospace;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- the square panel, the app's one and only container ------------------ */

.card {
    background: var(--card);
    border: var(--border) solid var(--ink);
    box-shadow: var(--hard) var(--hard) 0 var(--ink);
    padding: 20px;
}

.pill {
    display: inline-block;
    border: var(--border) solid var(--ink);
    padding: 3px 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    background: var(--pink);
    box-shadow: 2px 2px 0 var(--ink);
}

/* --- header -------------------------------------------------------------- */

header {
    border-bottom: var(--border) solid var(--ink);
    background: var(--paper);
    position: sticky;
    top: 0;
    z-index: 10;
}

header .wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
}

header img { width: 40px; height: 40px; image-rendering: pixelated; }

header .name {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
}

header nav { margin-left: auto; display: flex; gap: 18px; font-size: 14px; }

header nav a { color: var(--text-secondary); text-decoration: none; }
header nav a:hover { color: var(--pink-deep); }

@media (max-width: 640px) {
    header nav { display: none; }
}

/* --- hero ---------------------------------------------------------------- */

.hero {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 40px;
    align-items: center;
    padding: 60px 0 40px;
}

.hero h1 {
    font-size: 52px;
    line-height: 1.05;
    margin: 0 0 12px;
    letter-spacing: 2px;
}

.hero .tagline {
    font-size: 19px;
    color: var(--text-secondary);
    margin: 0 0 20px;
}

.hero .lede { color: var(--text-secondary); margin: 0 0 22px; }

.hero .logo-big {
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
    display: block;
    image-rendering: pixelated;
    filter: drop-shadow(6px 6px 0 rgba(59, 42, 74, .18));
}

@media (max-width: 780px) {
    .hero { grid-template-columns: 1fr; text-align: center; padding-top: 36px; }
    .hero h1 { font-size: 40px; }
    .hero .logo-big { order: -1; max-width: 180px; }
}

.note {
    display: inline-block;
    margin-top: 6px;
    padding: 8px 12px;
    background: var(--coin);
    border: var(--border) solid var(--ink);
    box-shadow: 2px 2px 0 var(--ink);
    font-size: 13px;
}

/* --- sections ------------------------------------------------------------ */

section { padding: 46px 0; }

h2 {
    font-size: 27px;
    margin: 0 0 8px;
    letter-spacing: 1px;
}

h2 + .sub { color: var(--text-muted); margin: 0 0 26px; font-size: 15px; }

/* --- steps --------------------------------------------------------------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.step .num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: var(--mint);
    border: var(--border) solid var(--ink);
    box-shadow: 2px 2px 0 var(--ink);
    font-weight: 700;
    margin-bottom: 12px;
}

.step h3 { margin: 0 0 6px; font-size: 17px; }
.step p { margin: 0; color: var(--text-secondary); font-size: 15px; }

@media (max-width: 780px) { .steps { grid-template-columns: 1fr; } }

/* --- screens ------------------------------------------------------------- */

.screens {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.screen { text-align: center; }

.screen img {
    width: 100%;
    height: auto;
    border: var(--border) solid var(--ink);
    box-shadow: var(--hard) var(--hard) 0 var(--ink);
    display: block;
    background: var(--card);
}

.screen .cap { margin-top: 10px; font-size: 14px; }
.screen .cap b { display: block; }
.screen .cap span { color: var(--text-muted); font-size: 13px; }

@media (max-width: 900px) { .screens { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .screens { grid-template-columns: 1fr; max-width: 300px; margin: 0 auto; } }

/* --- features ------------------------------------------------------------ */

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

.feature h3 {
    margin: 0 0 8px;
    font-size: 17px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature .dot {
    width: 14px; height: 14px;
    border: var(--border) solid var(--ink);
    flex: 0 0 auto;
}

.feature p { margin: 0; color: var(--text-secondary); font-size: 15px; }

@media (max-width: 780px) { .features { grid-template-columns: 1fr; } }

/* --- privacy list -------------------------------------------------------- */

.pledge { list-style: none; padding: 0; margin: 0; }

.pledge li {
    padding: 12px 0 12px 30px;
    position: relative;
    border-bottom: 1px solid rgba(59, 42, 74, .12);
    color: var(--text-secondary);
    font-size: 15px;
}

.pledge li:last-child { border-bottom: 0; }
.pledge li b { color: var(--ink); }

.pledge li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 19px;
    width: 10px;
    height: 10px;
    background: var(--mint);
    border: 2px solid var(--ink);
}

/* --- footer -------------------------------------------------------------- */

footer {
    border-top: var(--border) solid var(--ink);
    margin-top: 40px;
    padding: 26px 0 40px;
    color: var(--text-muted);
    font-size: 14px;
}

footer .wrap { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
footer img { width: 26px; height: 26px; image-rendering: pixelated; }

a { color: var(--pink-deep); }
