/* -----------------------------------------------------------------------------
   chord.link - marketing site
   -----------------------------------------------------------------------------
   Ported from the Chord Link Landing design. The design carried its styles
   inline on every element; they are classes here so the same tokens drive the
   signed-in app (assets/css/app.css) and the public reel page.

   The palette is a warm paper ground with a single brick accent. Nothing else
   carries color, so the accent always reads as "this is the action".
   -------------------------------------------------------------------------- */

:root {
    --bg:          #F5F3EE;
    --band:        #D2D0C6;
    --card:        #FCFBF7;
    --panel:       #ffffff;

    --ink:         #201e1d;
    --ink-strong:  #1C1A18;
    --ink-nav:     #3A3630;
    --muted:       #4A443D;
    --faint:       #6B645B;
    --faint-2:     #7A7266;
    --faint-3:     #8B8378;

    --accent:      #A93B2C;
    --accent-dark: #8E2F23;
    --tint:        #F5E7E3;

    --chip:        #F0EEE7;
    --chip-hover:  #E6E3DA;
    --wave:        #D8D4CA;
    --grip:        #BEB8AC;

    /* Hairline rule, used by the reel divider block. */
    --rule:        #D5D0C4;

    --shell:       1240px;
    --gutter:      40px;

    --shadow-card: 0 1px 2px rgba(60,52,44,.05), 0 18px 40px -20px rgba(60,52,44,.3);
    --shadow-lift: 0 2px 3px rgba(60,52,44,.06), 0 30px 70px -14px rgba(60,52,44,.42), 0 1px 0 rgba(255,255,255,.9) inset;
    --shadow-cta:  0 12px 26px rgba(169,59,44,.3);
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 3px; }
::selection { background: rgba(169,59,44,.22); }

img, svg { max-width: 100%; }

h1, h2, h3, h4 { text-wrap: pretty; }

/* -----------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.shell {
    max-width: var(--shell);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

/* The gap between sections, straight from the design. It used to be split
   around a staff-line separator; the separator is gone and the whole 96px is
   plain space again. */
.section { padding-top: 96px; }

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

.h2 {
    font-weight: 800;
    font-size: 40px;
    line-height: 1.08;
    letter-spacing: -.03em;
    margin: 0;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 999px;
    font-family: inherit;
    font-size: 15.5px;
    font-weight: 700;
    padding: 17px 30px;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.btn .arrow { font-weight: 400; }

.btn--primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-cta); }
.btn--primary:hover { background: var(--accent-dark); color: #fff; }

.btn--ghost { background: rgba(255,255,255,.72); color: #2A2622; }
.btn--ghost:hover { background: #fff; color: #2A2622; }

.btn--quiet { background: var(--chip); color: #2A2622; font-size: 14.5px; padding: 13px 24px; }
.btn--quiet:hover { background: var(--chip-hover); color: #2A2622; }

.btn--onbrick { background: #fff; color: var(--accent-dark); }
.btn--onbrick:hover { background: var(--tint); color: var(--accent-dark); }

.btn--onbrick-ghost { background: rgba(255,255,255,.16); color: #fff; }
.btn--onbrick-ghost:hover { background: rgba(255,255,255,.26); color: #fff; }

.btn--sm { font-size: 14px; padding: 12px 22px; }

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

.band {
    background: var(--band);
    border-radius: 0 0 40px 40px;
    padding-bottom: 96px;
}

.masthead { max-width: var(--shell); margin: 0 auto; padding: 26px var(--gutter); }

.navbar {
    background: rgba(255,255,255,.62);
    border-radius: 999px;
    padding: 12px 14px 12px 24px;
    display: flex;
    align-items: center;
    gap: 36px;
    box-shadow: 0 8px 24px rgba(60,52,44,.10);
}
.navbar__logo { display: block; line-height: 0; }
.navbar__logo img { height: 24px; width: auto; }

.navbar__nav { display: flex; gap: 30px; margin-left: 12px; }
.navbar__nav a,
.navbar__auth a.link {
    color: var(--ink-nav);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}
.navbar__nav a:hover, .navbar__auth a.link:hover { color: var(--accent-dark); }
.navbar__auth { margin-left: auto; display: flex; align-items: center; gap: 18px; }

.navbar__toggle { display: none; }

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

.hero {
    max-width: var(--shell);
    margin: 0 auto;
    padding: 44px var(--gutter) 0;
    display: grid;
    grid-template-columns: 1.04fr 1fr;
    gap: 64px;
    align-items: center;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: rgba(255,255,255,.66);
    border-radius: 999px;
    padding: 7px 16px 7px 12px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--accent-dark);
    margin-bottom: 26px;
}
.pill .dot { width: 7px; height: 7px; border-radius: 999px; background: var(--accent); }

.hero h1 {
    font-weight: 800;
    font-size: 62px;
    line-height: 1.04;
    letter-spacing: -.03em;
    margin: 0 0 24px;
    color: var(--ink-strong);
}
.hero .lede {
    font-size: 18.5px;
    line-height: 1.6;
    max-width: 29em;
    color: var(--muted);
    margin: 0 0 34px;
}
.hero__actions { display: flex; gap: 14px; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }
.hero__note { font-size: 13.5px; color: var(--faint); }

.stats { display: flex; gap: 44px; margin-top: 52px; flex-wrap: wrap; }
.stats dt { font-weight: 800; font-size: 29px; letter-spacing: -.02em; color: var(--ink-strong); }
.stats dd { margin: 2px 0 0; font-size: 12.5px; color: var(--faint); }

/* -----------------------------------------------------------------------------
   Demo player card
   -------------------------------------------------------------------------- */

.reelcard__meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 14px;
    padding: 0 6px;
    gap: 12px;
}
.reelcard__meta .label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--faint-2);
}
.reelcard__meta .url { font-size: 12.5px; font-weight: 600; color: var(--faint-2); text-decoration: none; }
.reelcard__meta .url:hover { color: var(--accent-dark); text-decoration: underline; }

/* Attribution for the demo cues. Required by CC BY, and it is also the honest
   place to say the composer on the card is invented. */
.reelcard__credit {
    font-size: 11.5px;
    line-height: 1.5;
    color: var(--faint-2);
    margin: 14px 6px 0;
}
.reelcard__credit a { color: var(--faint); }
.reelcard__credit a:hover { color: var(--accent-dark); }

.reelcard {
    background: var(--card);
    border-radius: 22px;
    box-shadow: var(--shadow-lift);
    overflow: hidden;
}

.reelcard__head { padding: 26px 28px 22px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.reelcard__kicker {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 7px;
}
.reelcard__title { font-weight: 800; font-size: 26px; line-height: 1.1; letter-spacing: -.025em; }
.reelcard__count {
    background: var(--chip);
    border-radius: 999px;
    padding: 6px 13px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--faint);
    white-space: nowrap;
}

.transport { padding: 6px 28px 24px; display: flex; align-items: center; gap: 18px; }

.playbtn {
    width: 56px; height: 56px; flex: none;
    background: var(--accent);
    color: #fff;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 700;
    padding: 0;
    box-shadow: 0 10px 22px rgba(169,59,44,.34);
    transition: background .15s ease;
}
.playbtn:hover { background: var(--accent-dark); }
.playbtn svg { width: 18px; height: 18px; fill: currentColor; display: block; }
.playbtn--sm { width: 40px; height: 40px; box-shadow: none; }
.playbtn--sm svg { width: 13px; height: 13px; }

.transport__body { flex: 1; min-width: 0; }
.transport__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 9px;
}
.transport__title { font-size: 14px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.transport__time { font-size: 12px; font-weight: 600; color: var(--faint-2); font-variant-numeric: tabular-nums; white-space: nowrap; }

.wave { position: relative; height: 58px; cursor: pointer; touch-action: none; }
.wave canvas { display: block; width: 100%; height: 100%; }

/* Track list -------------------------------------------------------------- */

.tracklist { padding: 0 16px 10px; }

.trackrow {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    cursor: grab;
    background: transparent;
    transition: background .12s ease;
}
.trackrow:hover { background: #F2F0E9; }
.trackrow.is-current { background: var(--tint); }
.trackrow.is-dragging { opacity: .45; }

.trackrow__grip { width: 12px; flex: none; display: flex; flex-direction: column; gap: 3px; }
.trackrow__grip i { display: block; height: 1.5px; border-radius: 2px; background: var(--grip); }

.trackrow__num { width: 20px; flex: none; font-size: 12px; font-weight: 700; color: var(--faint-3); font-variant-numeric: tabular-nums; }
.trackrow__title { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trackrow__tag {
    font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: var(--faint-3); background: var(--chip);
    border-radius: 999px; padding: 4px 10px; white-space: nowrap;
}
.trackrow__time { font-size: 12px; font-weight: 600; color: var(--faint-2); font-variant-numeric: tabular-nums; width: 38px; text-align: right; }

.reelcard__foot {
    padding: 16px 28px 20px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.reelcard__foot .terms { font-size: 12.5px; color: var(--faint-2); }
.badge {
    font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--accent); background: var(--tint);
    border-radius: 999px; padding: 5px 12px;
}

/* -----------------------------------------------------------------------------
   How it works / features / pricing
   -------------------------------------------------------------------------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-3--tight { gap: 22px; align-items: start; }

.step {
    background: var(--panel);
    border-radius: 22px;
    padding: 34px 30px 32px;
    box-shadow: var(--shadow-card);
}
.step__n {
    width: 46px; height: 46px; border-radius: 999px;
    background: var(--tint); color: var(--accent);
    font-weight: 800; font-size: 16px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
}
.step h3 { font-weight: 800; font-size: 22px; letter-spacing: -.02em; margin: 0 0 10px; }
.step p { margin: 0; color: var(--muted); }

.split {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 56px;
    align-items: end;
    margin-bottom: 48px;
}

/* :not(.eyebrow) is load-bearing. The eyebrow is a <p> nested inside this
   block, so a bare `.split p` (0,1,1) outranks `.eyebrow` (0,1,0) and the
   section label renders as 18px muted body copy instead of a 12px brick
   caption. Same trap below in .activity and .plan. */
.split p:not(.eyebrow) { font-size: 18px; line-height: 1.6; color: var(--muted); margin: 0; }

.feature { background: var(--panel); border-radius: 20px; padding: 30px 28px; }
.feature__n { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; color: var(--accent); margin-bottom: 14px; }
.feature h4 { font-weight: 800; font-size: 19px; margin: 0 0 8px; letter-spacing: -.015em; }
.feature p:not(.feature__n) { margin: 0; color: var(--muted); font-size: 14.5px; }

/* Two priced cards and one list of what they both buy. The list is a card so
   the row reads as three, but it deliberately has no price and no button: it is
   not a third thing you can choose. */
.pricing {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    align-items: start;
}

.plan { background: var(--panel); border-radius: 22px; padding: 34px 30px; }

.plan--features { background: transparent; box-shadow: none; padding-top: 34px; }
.planlist { list-style: none; margin: 16px 0 0; padding: 0; }
.planlist li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 9px;
    color: var(--muted);
    font-size: 14.5px;
}
.planlist li::before {
    content: "";
    position: absolute;
    left: 2px; top: 8px;
    width: 7px; height: 7px;
    border-radius: 999px;
    background: var(--accent);
}
.plan--featured { background: var(--card); box-shadow: 0 2px 3px rgba(60,52,44,.06), 0 26px 56px -18px rgba(60,52,44,.4); }
.plan__name { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint-3); }
.plan__price { font-weight: 800; font-size: 40px; letter-spacing: -.03em; margin: 12px 0 6px; }
.plan__price span { font-size: 16px; font-weight: 600; color: var(--faint-2); }
.plan p:not(.plan__price) { color: var(--muted); font-size: 14.5px; margin: 0 0 24px; }
.plan__tag {
    background: var(--accent); color: #fff;
    font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    padding: 4px 10px; border-radius: 999px;
}

/* -----------------------------------------------------------------------------
   Delivery / activity
   -------------------------------------------------------------------------- */

.activity {
    background: var(--band);
    border-radius: 32px;
    padding: 56px 52px;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 56px;
    align-items: center;
}
.activity .eyebrow { color: var(--accent-dark); }
.activity h2 { font-weight: 800; font-size: 36px; line-height: 1.1; letter-spacing: -.03em; margin: 0 0 16px; }
.activity p:not(.eyebrow) { color: var(--muted); margin: 0 0 12px; }
.activity p:last-child { margin-bottom: 0; }

.paper {
    background: var(--card);
    border-radius: 22px;
    box-shadow: 0 2px 3px rgba(60,52,44,.06), 0 28px 60px -18px rgba(60,52,44,.4);
    overflow: hidden;
}
.paper__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px 14px; gap: 12px; }
.paper__head strong { font-size: 13px; font-weight: 800; letter-spacing: -.01em; }
.paper__head span { font-size: 12px; font-weight: 600; color: var(--faint-2); }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
    text-align: left;
    padding: 8px 10px 10px;
    font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
    color: var(--faint-3);
}
.table th:first-child, .table td:first-child { padding-left: 24px; }
.table th:last-child, .table td:last-child { padding-right: 24px; }
.table td { padding: 12px 10px; }
.table td:first-child { font-weight: 600; }
.table tbody tr:nth-child(even) { background: #F7F5F0; }
.table tbody tr:last-child td { padding-bottom: 16px; }
.table .num { font-variant-numeric: tabular-nums; }
.table .done { color: var(--accent-dark); font-weight: 600; }
.table .when { color: var(--faint-2); }

.tablewrap { overflow-x: auto; }

/* -----------------------------------------------------------------------------
   Closing call to action + footer
   -------------------------------------------------------------------------- */

.closer {
    background: var(--accent);
    color: #fff;
    border-radius: 32px;
    padding: 76px 56px;
}
.closer h2 {
    font-weight: 800;
    font-size: 64px;
    line-height: 1.02;
    letter-spacing: -.035em;
    margin: 0 0 32px;
    max-width: 20em;
}
.closer__actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

.sitefoot {
    max-width: var(--shell);
    margin: 0 auto;
    padding: 56px var(--gutter) 44px;
    display: flex;
    gap: 64px;
    align-items: flex-start;
}
.sitefoot__brand { flex: 1; }
.sitefoot__brand img { height: 22px; width: auto; margin-bottom: 14px; }
.sitefoot__brand p:not(.sitefoot__copy) { font-size: 13.5px; color: var(--faint-2); max-width: 24em; margin: 0; }
.sitefoot__copy { font-size: 12.5px; color: var(--faint-3); margin-top: 26px; }

.sitefoot__cols { display: flex; gap: 56px; flex-wrap: wrap; }
.sitefoot__col { display: flex; flex-direction: column; gap: 9px; }
.sitefoot__col strong {
    font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    color: var(--faint-3); margin-bottom: 2px;
}
.sitefoot__col a { color: var(--ink-nav); text-decoration: none; font-size: 13.5px; }
.sitefoot__col a:hover { color: var(--accent-dark); }

.visually-hidden {
    position: absolute; width: 1px; height: 1px;
    margin: -1px; padding: 0; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* -----------------------------------------------------------------------------
   Responsive

   The design is a fixed two-column desktop composition. Below 980px the hero,
   the delivery panel and every 3-up grid collapse to one column, and the nav
   links fold away behind a details/summary toggle so the pill keeps its shape.
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
    .hero { grid-template-columns: 1fr; gap: 48px; }
    .split { grid-template-columns: 1fr; gap: 24px; align-items: start; }
    .activity { grid-template-columns: 1fr; gap: 36px; padding: 44px 32px; }
    .closer h2 { font-size: 46px; }
}

@media (max-width: 900px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .pricing { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 780px) {
    :root { --gutter: 20px; }

    .band { border-radius: 0 0 28px 28px; padding-bottom: 64px; }
    .masthead { padding: 16px var(--gutter); }
    .navbar { gap: 12px; padding: 10px 10px 10px 18px; }
    .navbar__nav { display: none; }
    .navbar__auth { gap: 12px; }

    .hero h1 { font-size: 40px; }
    .hero .lede { font-size: 16.5px; }
    .stats { gap: 28px; }
    .stats dt { font-size: 24px; }

    .grid-3 { grid-template-columns: 1fr; }
    .pricing { grid-template-columns: 1fr; }
    .h2 { font-size: 30px; }
    .closer { padding: 44px 28px; border-radius: 24px; }
    .closer h2 { font-size: 34px; }
    .activity h2 { font-size: 28px; }

    .btn { padding: 15px 24px; font-size: 15px; }

    .sitefoot { flex-direction: column; gap: 36px; }
    .sitefoot__cols { gap: 36px; }

    .reelcard__head { padding: 20px 20px 16px; }
    .transport { padding: 6px 20px 20px; gap: 14px; }
    .tracklist { padding: 0 8px 8px; }
    .trackrow { gap: 10px; padding: 11px 10px; }
    .trackrow__tag { display: none; }
    .reelcard__foot { padding: 14px 20px 18px; flex-wrap: wrap; }

}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
