/* Tight Spot website. The colours are the game's: the sunny yellow of its lot, the ink of its panels and the paper of
   its cards (TightSpot/Resource/Qml/Common/GGTheme.qml); buttons have the game's "thickness" shadow. */

:root {
    --sun: #ffd04d;
    --amber: #ffb21f;
    --orange: #f59a0b;
    --ink: #232a3b;
    --muted: #5b6478;
    --paper: #fbfcfe;
    --cloud: #f1f3f8;
    --line: #e3e7ef;
    --good: #2bb673;
    --radius: 20px;
    --font: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", -apple-system, BlinkMacSystemFont, "PingFang SC",
            "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; font-weight: 800; letter-spacing: -0.01em; }

h2 { font-size: clamp(28px, 4vw, 40px); }

h3 { font-size: 19px; }

.wrap { width: min(1120px, 100% - 40px); margin: 0 auto; }

.narrow { width: min(760px, 100% - 40px); }

/* Bar */

.bar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 208, 77, 0.92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(35, 42, 59, 0.08);
}

.bar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 19px; }

.brand img { border-radius: 10px; box-shadow: 0 2px 0 rgba(35, 42, 59, 0.2); }

.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }

.nav a {
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    padding: 8px 12px;
    border-radius: 12px;
}

.nav a:hover { background: rgba(255, 255, 255, 0.5); }

.nav .nav-download { background: var(--ink); color: #fff; }

.nav .nav-download:hover { background: #343d52; }

.nav .lang { border: 2px solid rgba(35, 42, 59, 0.25); padding: 6px 10px; }

/* Hero */

.hero {
    background: linear-gradient(180deg, var(--sun) 0%, var(--amber) 100%);
    overflow: hidden;
}

.hero-in {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
    gap: 40px;
    padding: 56px 0 64px;
}

.eyebrow { font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; font-size: 14px; margin: 0 0 12px; opacity: 0.75; }

.hero h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 900; margin-bottom: 18px; }

.lead { font-size: 19px; max-width: 34em; margin: 0 0 26px; }

.note { font-weight: 700; font-size: 15px; margin: 18px 0 0; opacity: 0.8; }

.hero-shot { display: flex; justify-content: center; }

.phone {
    border-radius: 34px;
    border: 6px solid var(--ink);
    box-shadow: 0 24px 50px rgba(35, 42, 59, 0.28);
    background: var(--ink);
}

.hero .phone { width: min(330px, 100%); transform: rotate(3deg); }

/* Buttons */

.buttons { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 20px;
    border-radius: 16px;
    background: #fff;
    color: var(--ink);
    font-weight: 800;
    font-size: 16px;
    text-decoration: none;
    box-shadow: 0 4px 0 rgba(35, 42, 59, 0.22);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn:hover { transform: translateY(-1px); box-shadow: 0 5px 0 rgba(35, 42, 59, 0.22); }

.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(35, 42, 59, 0.22); }

.btn svg { width: 22px; height: 22px; flex: none; }

/* The download the visitor's device wants (site.js) stands out. */
.pick-appstore .btn-appstore,
.pick-googleplay .btn-googleplay,
.pick-apk .btn-apk { background: var(--ink); color: #fff; }

/* Sections */

.section { padding: 76px 0; }

.section.alt { background: var(--cloud); }

.section-lead { color: var(--muted); max-width: 46em; margin: 0 0 34px; }

.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
}

.steps li {
    background: #fff;
    border-radius: var(--radius);
    padding: 22px 20px 20px;
    box-shadow: 0 4px 0 var(--line);
    border: 1px solid var(--line);
}

.steps p { margin: 0; color: var(--muted); font-size: 15.5px; }

.num {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--amber);
    font-weight: 900;
    margin-bottom: 12px;
    box-shadow: 0 3px 0 var(--orange);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 22px;
    margin: 10px 0 46px;
}

.gallery figure { margin: 0; }

.gallery .phone { border-width: 4px; border-radius: 24px; margin-bottom: 16px; }

.gallery h3 { font-size: 17px; }

.gallery p { margin: 0; color: var(--muted); font-size: 15px; }

.wide { border-radius: var(--radius); box-shadow: 0 16px 40px rgba(35, 42, 59, 0.16); width: 100%; }

.pricing { text-align: center; }

.pricing p { font-size: 18px; }

.small { font-size: 14.5px; color: var(--muted); }

.pricing .small { font-size: 15px; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

.card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: 0 4px 0 var(--line);
    padding: 26px 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.card > p { margin: 0 0 18px; color: var(--muted); }

.card .btn { margin-bottom: 14px; background: var(--amber); box-shadow: 0 4px 0 var(--orange); }

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--sun);
    display: grid;
    place-items: center;
    margin-bottom: 14px;
}

.card-icon svg { width: 26px; height: 26px; }

.card .small { margin: 0 0 6px; }

.sha { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; word-break: break-all; }

/* Articles (privacy, support) */

.article { padding: 56px 0 80px; }

.article h1 { font-size: clamp(32px, 5vw, 46px); }

.article h2 { font-size: 22px; margin-top: 1.6em; }

.article p, .article li { color: #39415a; }

.article ul { padding-left: 1.2em; }

.back { margin-top: 40px; font-weight: 800; }

/* Footer */

.foot { background: var(--ink); color: #d7dbe6; padding: 38px 0 44px; font-size: 14.5px; }

.foot p { margin: 8px 0 0; }

.foot a { color: #fff; }

.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 700; }

.foot-nav a { text-decoration: none; }

.health { color: #a9b0c2; font-size: 13px; }

/* Narrow windows */

@media (max-width: 1000px) {
    .gallery { grid-template-columns: repeat(5, 62%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
    .gallery figure { scroll-snap-align: start; }
    .cards { grid-template-columns: 1fr; }
}

@media (min-width: 640px) and (max-width: 1000px) {
    .gallery { grid-template-columns: repeat(5, 34%); }
}

@media (max-width: 760px) {
    body { font-size: 16px; }
    .nav a:not(.nav-download):not(.lang) { display: none; }
    .hero-in { grid-template-columns: 1fr; padding: 36px 0 48px; gap: 34px; }
    .hero .phone { width: min(64vw, 300px); }
    .section { padding: 56px 0; }
    .buttons .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn { transition: none; }
}
