/* The homepage. Brand colors, type and buttons come from app/css/brand.css. */
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
    font-family: var(--ct-sans);
    font-size: 19px;
    line-height: 1.5;
    color: var(--ct-ink);
    background: var(--ct-paper);
}
a { color: var(--ct-green); }
h1, h2, h3 { font-family: var(--ct-serif); line-height: 1.2; }
h2 { font-size: 34px; margin: 0 0 28px; text-align: center; }
h3 { font-size: 22px; margin: 0 0 6px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
section { padding: 64px 0; }
/* "How it works" in the top bar lands below the sticky bar, not under it. */
section[id] { scroll-margin-top: 72px; }

/* Top bar */
.top { background: var(--ct-card); border-bottom: 1px solid var(--ct-rule); position: sticky; top: 0; z-index: 10; }
.top-bar { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.top-nav { display: flex; align-items: center; gap: 24px; }
.top-nav a:not(.ct-button) { color: var(--ct-ink); text-decoration: none; font-size: 18px; }
.top-nav a:not(.ct-button):hover { text-decoration: underline; }
.ct-button.small { min-height: 44px; padding: 0 18px; font-size: 18px; }
.ct-button.big { min-height: 60px; padding: 0 40px; font-size: 22px; }

/* Opening section: felt green, the card on the table */
.hero {
    background:
        radial-gradient(ellipse at 70% 40%, rgba(255,255,255,0.10), transparent 60%),
        var(--ct-green);
    color: #fff;
    padding: 72px 0 80px;
}
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 46px; margin: 0 0 16px; color: #fff; }
.hero .lead { font-size: 24px; margin: 0 0 16px; }
.hero .intro { font-size: 19px; margin: 0 0 28px; opacity: 0.92; max-width: 34em; }
.hero .ct-button { background: #fff; color: var(--ct-green); }
.hero .ct-button:hover { background: var(--ct-green-tint); }
.hero .fine { font-size: 16px; margin: 12px 0 0; opacity: 0.85; }

.sample { margin: 0; display: flex; justify-content: center; }
.paper {
    width: min(100%, 440px);
    background: var(--ct-card);
    color: #000;
    padding: 22px 22px 14px;
    border-radius: 3px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.35);
    transform: rotate(-3deg);
    font-family: Arial, Helvetica, sans-serif;
}
.paper-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.paper-name { font-size: 32px; font-weight: 700; letter-spacing: 0.5px; }
.paper-no { font-size: 19px; font-weight: 700; margin-left: 6px; }
.paper-corner { text-align: right; font-size: 11px; line-height: 1.3; }
.paper-sub { font-size: 12px; margin: 2px 0 10px; }
.paper table { width: 100%; border-collapse: collapse; font-size: 14px; }
.paper th { font-size: 10px; font-weight: 400; text-align: left; border-bottom: 1.5px solid #000; padding: 0 4px 3px; }
.paper td { border-bottom: 0.5px solid #000; padding: 4px; }
.paper td:first-child { font-weight: 700; }
.paper td.t { font-size: 22px; font-weight: 700; line-height: 1; }
.paper .box { display: inline-block; width: 34px; height: 16px; border: 1px solid #000; vertical-align: middle; }
.paper tr.fade { opacity: 0.35; }

/* How it works */
.how { background: var(--ct-card); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 24px; }
.steps li { position: relative; padding: 24px 24px 24px 84px; background: var(--ct-paper); border-radius: 12px; }
.step-no {
    position: absolute; left: 24px; top: 22px;
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--ct-serif); font-size: 24px; font-weight: 700;
    color: #fff; background: var(--ct-green);
}
.steps p { margin: 0; color: var(--ct-muted); }

/* What you get */
.tiles { display: grid; grid-template-columns: 1fr; gap: 20px; }
.tile { background: var(--ct-card); border: 1px solid var(--ct-rule); border-radius: 12px; padding: 24px; }
.tile svg { width: 48px; height: 48px; fill: none; stroke: var(--ct-green); stroke-width: 2; stroke-linecap: round; margin-bottom: 8px; }
.tile p { margin: 0; color: var(--ct-muted); }

/* Fair play */
.fair { background: var(--ct-green-tint); }
.promises { display: grid; grid-template-columns: 1fr; gap: 24px; }
.promises > div { border-left: 4px solid var(--ct-red); padding: 4px 0 4px 18px; }
.promises p { margin: 0; color: var(--ct-muted); }

/* Games */
.games { text-align: center; padding: 56px 0; }
.games h2 { margin-bottom: 12px; }
.game-list { font-family: var(--ct-serif); font-style: italic; font-size: 26px; margin: 0; color: var(--ct-green); }
.game-list span { color: var(--ct-red); padding: 0 6px; font-style: normal; }

/* Last call */
.cta { background: var(--ct-green); color: #fff; text-align: center; }
.cta h2 { color: #fff; }
.cta .ct-button { background: #fff; color: var(--ct-green); }
.cta .ct-button:hover { background: var(--ct-green-tint); }

/* Footer: the brand, the blog posts, the copyright */
.foot { background: var(--ct-card); border-top: 1px solid var(--ct-rule); padding: 28px 0; }
/* Two columns: on the left, the logo and name at the top and the copyright at the bottom,
   level with the last blog link; on the right, the blog links. */
.foot-bar { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr; column-gap: 40px; row-gap: 6px; align-items: start; }
.foot .ct-brand { grid-column: 1; grid-row: 1; }
.foot-copy { grid-column: 1; grid-row: 2; align-self: end; margin: 0; padding-bottom: 4px; color: var(--ct-muted); font-size: 16px; }
.foot-blog { grid-column: 2; grid-row: 1 / span 2; }
.foot-blog h2 { font-size: 17px; text-align: left; margin: 0 0 6px; }
.foot-blog ul { list-style: none; margin: 0; padding: 0; }
.foot-blog li { margin: 2px 0; }
.foot-blog a { display: inline-block; min-height: 32px; padding: 4px 0; font-size: 16px; }

/* Blog posts: one readable column on paper */
.post { padding: 48px 0 64px; }
.post-wrap { max-width: 760px; }
.post h1 { font-size: 40px; margin: 0 0 24px; }
.post h2 { font-size: 26px; text-align: left; margin: 36px 0 10px; }
.post p, .post li { font-size: 19px; line-height: 1.65; }
.post ul, .post ol { padding-left: 1.4em; }
.post li { margin: 0 0 12px; }
.post-photo {
    float: right; width: 240px; height: auto; margin: 4px 0 16px 24px;
    border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}
.post-map { margin: 28px 0; clear: both; }
.post-map img { width: 100%; height: auto; display: block; border: 1px solid var(--ct-rule); border-radius: 8px; }
.post .pin { float: left; width: 21px; height: 34px; margin: 4px 12px 0 0; }
.post-cta {
    clear: both; margin: 48px 0 0; padding: 28px; text-align: center;
    background: var(--ct-green); color: #fff; border-radius: 12px;
}
.post-cta h2 { color: #fff; text-align: center; margin: 0 0 8px; }
.post-cta p { margin: 0 0 20px; }
.post-cta .ct-button { background: #fff; color: var(--ct-green); }
.post-cta .ct-button:hover { background: var(--ct-green-tint); }
.post-more { margin-top: 36px; }
.post-more h2 { margin-top: 0; }
.post-more ul { list-style: none; padding: 0; }
.post-more li { margin: 6px 0; }

@media (min-width: 860px) {
    .hero-grid { grid-template-columns: 1.1fr 1fr; }
    .hero h1 { font-size: 56px; }
    .steps { grid-template-columns: repeat(3, 1fr); }
    .steps li { padding: 84px 24px 24px; }
    .tiles { grid-template-columns: repeat(4, 1fr); }
    .promises { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 520px) {
    .top-nav a:not(.ct-button) { display: none; }
    .post h1 { font-size: 32px; }
    .post-photo { float: none; width: 100%; margin: 0 0 20px; }
    .foot-bar { grid-template-columns: 1fr; grid-template-rows: auto; }
    .foot .ct-brand { grid-column: 1; grid-row: 1; }
    .foot-blog { grid-column: 1; grid-row: 2; margin-top: 14px; }
    .foot-copy { grid-column: 1; grid-row: 3; margin-top: 14px; }
    .hero h1 { font-size: 36px; }
    h2 { font-size: 28px; }
    section { padding: 48px 0; }
}
