/**
 * styles.css
 * The Trigger Tempo website (triggertempo.com): the same colours and fonts as the apps.
 * Mobile first; wider screens get two columns from 760px.
 *
 * Dependencies: fonts.css (Rubik, Unbounded).
 */

/* ============================================
   TOKENS
   ============================================ */
:root {
    --ink: #0e2552;
    --ink-soft: #4d6689;
    --blue: #0f7bf2;
    --blue-deep: #0a5fd8;
    --purple: #6223b2;
    --pink: #e5307f;
    --green: #19b774;
    --yellow: #ffc93c;
    --bg: #eef4fb;
    --card: #ffffff;
    --line: rgba(14, 37, 82, 0.1);
    --shadow: 0 10px 28px rgba(52, 96, 145, 0.14), 0 2px 4px rgba(52, 96, 145, 0.08);
    --radius: 22px;
    --font-ui: "Rubik", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: "Unbounded", "Arial Black", "Segoe UI Black", sans-serif;
    --gradient: linear-gradient(120deg, var(--purple), var(--pink));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; animation: none !important; }
}

body {
    margin: 0;
    font: 500 17px/1.6 var(--font-ui);
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue-deep); }

a:focus-visible, button:focus-visible, summary:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
    border-radius: 8px;
}

.wrap {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 16px;
}

.skip {
    position: absolute;
    left: -999px;
    top: 8px;
    padding: 8px 14px;
    border-radius: 10px;
    background: var(--ink);
    color: #fff;
    z-index: 100;
}

.skip:focus { left: 8px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 900; line-height: 1.15; margin: 0 0 12px; }
h1 { font-size: clamp(2rem, 7vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 4.6vw, 2.3rem); }
h3 { font-size: 1.15rem; font-weight: 800; }
p { margin: 0 0 14px; }

.kicker {
    display: inline-block;
    margin-bottom: 10px;
    font: 800 13px var(--font-ui);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--pink);
}

.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 40em; }

/* ============================================
   HEADER AND FOOTER
   ============================================ */
.site-head {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(238, 244, 251, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.site-head .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 64px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font: 900 18px var(--font-display);
    color: var(--ink);
    text-decoration: none;
}

.brand img { width: 36px; height: 36px; border-radius: 10px; }

.nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: var(--card);
    color: var(--ink);
    box-shadow: var(--shadow);
    cursor: pointer;
}

.site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    padding: 8px 16px 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}

.site-nav.open { display: grid; gap: 4px; }

.site-nav a {
    padding: 12px 10px;
    border-radius: 12px;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
}

.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--card); }

@media (min-width: 760px) {
    .nav-toggle { display: none; }
    .site-nav, .site-nav.open {
        display: flex;
        position: static;
        padding: 0;
        gap: 4px;
        background: none;
        border: 0;
    }
    .site-nav a { padding: 8px 12px; }
}

.site-foot {
    margin-top: 64px;
    padding: 36px 0 48px;
    background: var(--ink);
    color: #dbe6f5;
}

.site-foot a { color: #fff; }

.foot-grid {
    display: grid;
    gap: 24px;
}

.foot-grid h3 { color: #fff; font-size: 1rem; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot-small { margin-top: 28px; font-size: 14px; color: #9fb3d1; }

@media (min-width: 760px) {
    .foot-grid { grid-template-columns: 2fr 1fr 1fr; }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    font: 800 16px var(--font-ui);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #fff; background: linear-gradient(180deg, #2b93ff, var(--blue-deep)); box-shadow: 0 8px 20px rgba(15, 123, 242, 0.35); }
.btn-ghost { color: var(--ink); background: var(--card); box-shadow: var(--shadow); }

/* "Coming soon to Google Play" (no link until the apps are live) */
.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 6px 18px;
    border-radius: 14px;
    color: #fff;
    background: #111;
    text-decoration: none;
}

.store-badge svg { width: 26px; height: 26px; flex-shrink: 0; }
.store-badge small { display: block; font-size: 11px; opacity: 0.8; line-height: 1.2; }
.store-badge strong { display: block; font-size: 17px; line-height: 1.2; }
.store-badge[aria-disabled="true"] { cursor: default; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ============================================
   SECTIONS
   ============================================ */
section { padding: 56px 0 8px; }

/* room below for the second phone (it sits lower) and Mochi */
.hero { padding-top: 40px; padding-bottom: 56px; overflow: hidden; }

.hero-grid { display: grid; gap: 32px; align-items: center; }

.hero-phones {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 14px;
}

.phone {
    width: min(46%, 250px);
    border-radius: 30px;
    border: 6px solid #10213f;
    overflow: hidden;
    background: #10213f;
    box-shadow: 0 24px 50px rgba(14, 37, 82, 0.28);
}

.hero-phones .phone:nth-child(2) { transform: translateY(28px); }

.hero-buddy {
    position: absolute;
    width: 26%;
    max-width: 130px;
    left: -2%;
    bottom: -6%;
    filter: drop-shadow(0 10px 14px rgba(14, 37, 82, 0.25));
}

@media (min-width: 760px) {
    .hero-grid { grid-template-columns: 1.05fr 1fr; }
}

.card {
    padding: 22px;
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow);
}

.grid-3 { display: grid; gap: 16px; }
.grid-2 { display: grid; gap: 16px; }

@media (min-width: 760px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
}

.feature-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 12px;
    border-radius: 16px;
    font-size: 26px;
    background: var(--bg);
}

.feature p { color: var(--ink-soft); margin: 0; }

/* A screenshot beside its words */
.showcase {
    display: grid;
    gap: 28px;
    align-items: center;
}

.showcase .phone { width: min(70%, 290px); margin: 0 auto; }

@media (min-width: 760px) {
    .showcase { grid-template-columns: 1fr 1fr; }
    .showcase.flip .showcase-text { order: 2; }
}

.ticks { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.genres { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.genres li {
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    background: var(--card);
    box-shadow: inset 0 0 0 1.5px var(--line);
}

/* The two apps */
.app-card { position: relative; display: flex; flex-direction: column; }
.app-card .app-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.app-card .app-head img { width: 64px; height: 64px; border-radius: 16px; }
.app-card .tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font: 800 12px var(--font-ui); letter-spacing: 0.05em; color: #fff; }
.tag-kids { background: var(--green); }
.tag-pro { background: var(--gradient); }
.app-card .ticks { flex: 1; }

/* Prices */
.prices { display: grid; gap: 12px; margin: 16px 0; }
.price { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--bg); }
.price strong { font: 900 1.05rem var(--font-display); white-space: nowrap; }
.price span { color: var(--ink-soft); font-size: 15px; }
.price.best { box-shadow: inset 0 0 0 2px var(--purple); }

/* The characters */
.buddies { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.buddy { text-align: center; }
.buddy img { width: 120px; height: 120px; object-fit: contain; margin: 0 auto 8px; }
.buddy strong { display: block; font: 900 1rem var(--font-display); }
.buddy span { font-size: 14px; color: var(--ink-soft); }

@media (min-width: 760px) {
    .buddies { grid-template-columns: repeat(4, 1fr); }
}

.banner {
    padding: 32px 22px;
    border-radius: var(--radius);
    color: #fff;
    background: var(--gradient);
    box-shadow: 0 16px 36px rgba(98, 35, 178, 0.3);
}

.banner .lead { color: rgba(255, 255, 255, 0.92); }

/* ============================================
   TEXT PAGES (privacy, terms, support)
   ============================================ */
.page { padding-top: 32px; }

.prose { max-width: 760px; }
.prose h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
.prose h2 { font-size: 1.2rem; margin-top: 30px; color: var(--blue-deep); }
.prose h3 { margin-top: 18px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: 4px 0; }
.prose .meta { color: var(--ink-soft); }
.prose .box { margin: 18px 0; padding: 16px 18px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1.5px rgba(15, 123, 242, 0.18); }
.prose table { width: 100%; border-collapse: collapse; margin: 10px 0 16px; font-size: 15px; background: var(--card); border-radius: 12px; overflow: hidden; }
.prose th, .prose td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { background: #f6f9fd; }
.table-scroll { overflow-x: auto; }

.toc { padding: 14px 18px; border-radius: 16px; background: var(--card); }
.toc ol { margin: 6px 0 0; padding-left: 1.3em; }

/* FAQ */
.faq details { margin: 10px 0; padding: 4px 18px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); }
.faq summary { padding: 14px 0; font-weight: 800; cursor: pointer; }
.faq details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.faq details p:last-child { margin-bottom: 14px; }

.small-note { margin: 0; font-size: 14px; color: var(--ink-soft); }
.lost-buddy { width: 122px; margin-bottom: 12px; }
