/*
 * The redesigned marketing site (Justin's 2026 mock, Redesign/website/home.jpg).
 *
 * Self-contained: no Bootstrap. The mock is a 1440-wide canvas captured at 2x, so every
 * measurement here is half a mock pixel. The content column is 1040 wide, centred.
 *
 * Colours are sampled from the mock. The teal is the app's brand teal; the dark teal is
 * what the mock uses wherever teal has to carry small text or an icon on a light ground.
 */

:root {
    --ground: #FAF9F5;
    --surface: #FFFFFF;
    --ink: #101B17;
    --ink-soft: #1B2121;
    --grey: #565F5C;
    --rule: #E5E4E0;
    --teal: #56D2C6;
    --teal-deep: #0F7466;
    --teal-tint: #E3F4F1;
    --teal-band: #E8F7F6;
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    background: var(--ground);
    color: var(--ink);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

.container {
    width: 100%;
    max-width: 1072px;      /* 1040 of content + the 16px gutters */
    margin: 0 auto;
    padding: 0 16px;
}

.narrow { max-width: 832px; }

/* Buttons
   ------------------------------------------------------------------ */

.button {
    display: inline-block;
    padding: 12px 36px;
    border-radius: 999px;
    background: var(--teal);
    color: var(--ink);
    font-weight: 600;
    font-size: 16px;
    line-height: 1.25;
    transition: background-color .15s ease;
}

.button:hover { background: #45C3B6; }

.button--small {
    padding: 7px 18px;
    font-size: 14px;
}

.eyebrow {
    margin-bottom: 14px;
    color: var(--teal);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.eyebrow--deep { color: var(--teal-deep); }

.icon {
    width: 1em;
    height: 1em;
    fill: currentColor;
    flex: none;
}

/* Header
   ------------------------------------------------------------------ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--ground);
    border-bottom: 1px solid var(--rule);
}

.site-header__row {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 64px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: auto;
}

.brand__mark {
    width: 28px;
    height: 28px;
    border-radius: 7px;
}

.brand__name {
    color: var(--teal);
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1;
}

.site-nav {
    display: flex;
    gap: 20px;
    color: var(--grey);
    font-size: 14px;
}

.site-nav a:hover { color: var(--ink); }

/* Hero
   ------------------------------------------------------------------ */

.hero { padding: 64px 0 96px; }

.hero__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

.hero__copy { max-width: 600px; }

.hero__title {
    font-size: 60px;
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1.08;
}

.accent { color: var(--teal); }

.hero__lead {
    margin-top: 26px;
    max-width: 560px;
    color: var(--grey);
    font-size: 20px;
    line-height: 1.5;
}

.hero__cta {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 36px;
}

.app-store-badge {
    width: 150px;
    height: 50px;
}

.hero__free {
    color: var(--grey);
    font-size: 15px;
}

/* The phone. The screenshot carries its own status bar and Dynamic Island, so the frame
   only has to be the bezel: a black body with a hairline grey edge, and the screen
   rounded to sit inside it. Sized from the mock (230 wide at 1x). */

.hero__phone { flex: none; }

.phone {
    width: 230px;
    padding: 9px;
    border-radius: 38px;
    background: #111;
    box-shadow: 0 0 0 2px #3a3a3c, 0 24px 48px -16px rgba(16, 27, 23, .35);
    position: relative;
}

.phone::before,
.phone::after {
    content: "";
    position: absolute;
    width: 3px;
    border-radius: 2px;
    background: #2c2c2e;
}

/* Volume buttons on the left, power on the right. */
.phone::before {
    left: -4px;
    top: 92px;
    height: 32px;
    box-shadow: 0 46px 0 #2c2c2e;
}

.phone::after {
    right: -4px;
    top: 120px;
    height: 56px;
}

.phone__screen {
    width: 100%;
    border-radius: 30px;
}

/* Sections
   ------------------------------------------------------------------ */

.section {
    padding: 80px 0;
    /* The header is sticky, so a jump to #features lands below it, not under it. */
    scroll-margin-top: 64px;
}

.section--center { text-align: center; }

.section__title {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.2;
}

.section__lead {
    margin-top: 18px;
    color: var(--grey);
    font-size: 18px;
    line-height: 1.55;
}

.section--center .section__lead { margin-left: auto; margin-right: auto; }

/* Overview: the category chips */

.chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 32px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border: 1px solid var(--rule);
    border-radius: 999px;
    background: var(--surface);
    font-size: 15px;
    font-weight: 600;
}

.chip .icon { font-size: 18px; }

/* Each chip wears its folder's colour from the app (DataController.bootstrapCategories). */
.chip--movies   { color: #EF4760; }
.chip--tv       { color: #3BB4CF; }
.chip--books    { color: #FED161; }
.chip--music    { color: #09C98F; }
.chip--podcasts { color: #AE71A8; }
.chip--places   { color: #FF8F17; }

/* Features: the card grid */

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

.card {
    padding: 24px;
    border: 1px solid var(--rule);
    border-radius: 16px;
    background: var(--surface);
}

.card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--teal-tint);
    color: var(--teal-deep);
    font-size: 27px;
}

.card__title {
    margin-top: 16px;
    font-size: 18px;
    font-weight: 700;
}

.card__text {
    margin-top: 8px;
    color: var(--grey);
    font-size: 14px;
    line-height: 1.5;
}

/* Premium: the full-width band */

.premium {
    background: var(--teal-band);
    padding: 72px 0 80px;
}

.premium__row {
    display: flex;
    align-items: center;
    gap: 64px;
}

.premium__copy { flex: 1 1 0; max-width: 420px; }

.premium .section__lead { font-size: 17px; }

.perks { margin-top: 32px; }

.perk {
    display: flex;
    gap: 18px;
    margin-top: 18px;
}

.perk__check {
    width: 26px;
    height: 26px;
    flex: none;
    fill: var(--teal-deep);
    margin-top: 1px;
}

.perk__title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.perk__text {
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.4;
}

.plan-card {
    flex: 0 0 500px;
    padding: 32px 36px 36px;
    border-radius: 16px;
    background: var(--surface);
    text-align: center;
    box-shadow: 0 1px 2px rgba(16, 27, 23, .04);
}

.plan-card__title {
    font-size: 20px;
    font-weight: 700;
}

.plans {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 24px;
}

.plan {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 22px 16px 20px;
    border: 1px solid var(--rule);
    border-radius: 12px;
}

.plan--featured { border: 2px solid var(--teal); }

.plan__price {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.1;
}

.plan__period {
    color: var(--grey);
    font-size: 15px;
}

.plan-card__note {
    margin-top: 8px;
    text-align: right;
    color: var(--grey);
    font-size: 12px;
    font-style: italic;
}

.plan-card .button { margin-top: 28px; }

.plan-card__fine {
    margin-top: 18px;
    color: var(--grey);
    font-size: 15px;
}

/* About: the two of us */

.founders {
    display: flex;
    justify-content: center;
    gap: 100px;
    margin-top: 44px;
}

.founder {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.founder__photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    filter: grayscale(1);
}

.founder__name {
    margin-top: 20px;
    font-size: 17px;
    font-weight: 700;
}

.founder__role {
    margin-top: 2px;
    color: var(--grey);
    font-size: 15px;
}

/* Footer
   ------------------------------------------------------------------ */

.site-footer {
    padding: 40px 0 44px;
    border-top: 1px solid var(--rule);
    text-align: center;
}

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    font-size: 15px;
}

.site-footer__links a:hover { color: var(--teal-deep); }

.site-footer__fine {
    margin-top: 22px;
    color: var(--grey);
    font-size: 13px;
}

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

@media (max-width: 960px) {
    .hero__title { font-size: 48px; }
    .cards { grid-template-columns: repeat(2, 1fr); }
    .premium__row { flex-direction: column; align-items: stretch; }
    .premium__copy { max-width: none; }
    .plan-card { flex: none; max-width: 500px; margin: 0 auto; width: 100%; }
}

@media (max-width: 720px) {
    body { font-size: 16px; }
    .site-nav { display: none; }

    .hero { padding: 40px 0 64px; }
    .hero__row { flex-direction: column; align-items: flex-start; gap: 40px; }
    .hero__title { font-size: 40px; }
    .hero__lead { font-size: 18px; margin-top: 18px; }
    .hero__cta { flex-wrap: wrap; gap: 16px; margin-top: 28px; }
    .hero__phone { align-self: center; }

    .section { padding: 56px 0; }
    .section__title { font-size: 30px; }
    .section__lead { font-size: 17px; }

    .cards { grid-template-columns: 1fr; gap: 14px; margin-top: 28px; }

    .premium { padding: 56px 0; }
    .plan-card { padding: 24px 20px 28px; }
    .plan__price { font-size: 24px; }

    .founders { gap: 40px; }
    .founder__photo { width: 100px; height: 100px; }
}

/* Legal pages
   ------------------------------------------------------------------
   The privacy, terms and acknowledgements BODIES are shared with the in-app renderings
   (app-legal.css) and are not edited for the site, so these rules work against the
   markup as it is: a .container, a capitalised <h2> title with the effective date as a
   lone <strong> under it, <h4>/<h5> sections, and in Acknowledgements an <h2> per
   library. */

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

.legal .container { max-width: 784px; }   /* 752 of text + the gutters */

.legal h2 {
    margin-top: 40px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.25;
}

/* The first <h2> is the page title. */
.legal .container > h2:first-child {
    margin-top: 0;
    font-size: 36px;
    letter-spacing: -.02em;
    line-height: 1.2;
}

.legal .container > h2:first-child + p strong {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--grey);
    font-size: 15px;
    font-weight: 500;
}

.legal h4 {
    margin-top: 36px;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
}

.legal h5 {
    margin-top: 24px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
}

.legal p {
    margin: 10px 0 0;
    color: var(--ink-soft);
    line-height: 1.6;
}

.legal strong { font-weight: 600; }

.legal ul,
.legal ol {
    margin: 8px 0 0;
    padding-left: 1.4em;
    list-style: disc;
    color: var(--ink-soft);
}

.legal ol { list-style: decimal; }
.legal li { margin-top: 6px; line-height: 1.55; }

.legal a {
    color: var(--teal-deep);
    text-decoration: underline;
    text-decoration-color: rgba(15, 116, 102, .35);
    text-underline-offset: 2px;
}

.legal a:hover { text-decoration-color: currentColor; }

.legal img { display: inline-block; }

/* The spacing helper the bodies use (h4.margin-top, div.margin-top). */
.legal .margin-top { margin-top: 36px; }
.legal h4.margin-top { margin-top: 36px; }

@media (max-width: 720px) {
    .legal { padding: 36px 0 56px; }
    .legal .container > h2:first-child { font-size: 30px; }
}
