/* Side-Kick landing page. Colours from the app icon. */
:root {
    --teal: #0e4951;
    --teal-deep: #173644;
    --teal-line: rgba(255, 255, 255, 0.12);
    --yellow: #ffcc33;
    --ink: #ffffff;
    --muted: rgba(255, 255, 255, 0.72);
    --faint: rgba(255, 255, 255, 0.5);
    --radius: 18px;
    --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }
body { overflow-x: clip; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: linear-gradient(180deg, var(--teal) 0%, var(--teal-deep) 100%) fixed;
    background-color: var(--teal-deep);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--yellow); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

.wrap { max-width: 1040px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; padding-top: 22px; padding-bottom: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 650; letter-spacing: -0.01em; }
.brand img { border-radius: 9px; }
.top-link { font-size: 14px; font-weight: 600; text-decoration: none; }

/* Hero: the words on the left, the ferret on the right. On phones he sits above the words. */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 48px; padding-top: 56px; padding-bottom: 88px; }
.eyebrow { margin: 0 0 14px; color: var(--yellow); font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
h1 { margin: 0; max-width: 15ch; font-size: clamp(38px, 6.4vw, 66px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 750; }
.lede { max-width: 52ch; margin: 22px 0 0; font-size: clamp(17px, 2vw, 20px); color: var(--muted); }

.hero-art { position: relative; width: clamp(240px, 34vw, 380px); aspect-ratio: 1; }
.hero-art img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.28)); }

/* The rings: the circle Side-Kick draws on screen, pulsing out from behind the badge */
.rings { position: absolute; inset: 0; pointer-events: none; }
.rings span { position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--yellow); opacity: 0; animation: ring 6s ease-out infinite; }
.rings span:nth-child(2) { animation-delay: 2s; }
.rings span:nth-child(3) { animation-delay: 4s; }
@keyframes ring {
    0%   { transform: scale(0.95); opacity: 0; }
    12%  { opacity: 0.4; }
    100% { transform: scale(1.7); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .rings span { animation: none; opacity: 0.12; }
    .rings span:nth-child(1) { transform: scale(1.15); }
    .rings span:nth-child(2) { transform: scale(1.35); }
    .rings span:nth-child(3) { transform: scale(1.55); }
}
@media (max-width: 760px) {
    .hero { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 40px; }
    /* Right-aligned, so he still looks into the page, across at the words */
    .hero-art { order: -1; width: 168px; justify-self: end; }
}

/* Sign-up */
.signup { margin: 0 auto; max-width: 520px; padding: 24px; text-align: left; border-radius: var(--radius); background: rgba(0, 0, 0, 0.18); border: 1px solid var(--teal-line); }
.signup-slot { min-height: 24px; }
.signup-slot:has(form) .signup-fallback { display: none; }
.signup-fallback { margin: 0; color: var(--muted); }
.small { margin: 14px 0 0; font-size: 13px; color: var(--faint); }

/* The Email Octopus form. Sizing and the button colour are set here, so the field and button
   line up and the button matches the page's yellow. Their embed CSS is scoped to [data-form],
   uses !important on its margin helpers and has blue hover, focus and active states, hence the
   longer selectors and the one !important below. */
.signup .emailoctopus-form .main-form { align-items: stretch; gap: 8px; }
.signup .emailoctopus-form .main-form .btn,
.signup .emailoctopus-form .emailoctopus-form-row { margin: 0 !important; }
.signup .emailoctopus-form .form-control { height: 48px; padding: 0 14px; border-radius: 12px; }
.signup .signup-slot .emailoctopus-form input[type="submit"] { height: 48px; padding: 0 22px; line-height: 1; border-radius: 12px; }
.signup .signup-slot .emailoctopus-form input[type="submit"],
.signup .signup-slot .emailoctopus-form input[type="submit"]:hover,
.signup .signup-slot .emailoctopus-form input[type="submit"]:focus,
.signup .signup-slot .emailoctopus-form input[type="submit"]:active {
    background-color: var(--yellow); border-color: var(--yellow); color: #0b1f26; font-weight: 700; box-shadow: none;
}
.signup .signup-slot .emailoctopus-form input[type="submit"]:hover { filter: brightness(1.05); }
.signup .signup-slot .emailoctopus-form input[type="submit"]:focus-visible { outline: 0; box-shadow: 0 0 0 3px rgba(255, 204, 51, 0.45); }

/* The "Powered by EmailOctopus" badge is an image drawn for a light background, so it is turned
   pale here. The thank-you and error messages take their colour from a --text-colour variable
   (set !important by the embed), so the variable is set instead of the colour. */
.signup .mastfoot p { filter: brightness(0) invert(1); opacity: 0.5; transition: opacity 0.15s; }
.signup .mastfoot p:hover,
.signup .mastfoot p:focus-within { opacity: 0.85; }
.signup .signup-slot .emailoctopus-success-message { --text-colour: var(--ink); font-size: 17px; font-weight: 600; }
.signup .signup-slot .emailoctopus-error-message { --text-colour: var(--yellow); }
.signup .signup-slot .emailoctopus-success-message:not(:empty),
.signup .signup-slot .emailoctopus-error-message:not(:empty) { margin-bottom: 12px; }

/* Screens */
.screens { padding-bottom: 80px; }
.screens-row { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.screens-row img { flex: 0 0 auto; width: min(240px, 62vw); height: auto; border-radius: 28px; border: 1px solid var(--teal-line); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25); scroll-snap-align: start; }

/* Bands */
.band { padding-top: 56px; padding-bottom: 56px; border-top: 1px solid var(--teal-line); }
h2 { margin: 0 0 22px; font-size: clamp(22px, 3vw, 28px); letter-spacing: -0.02em; line-height: 1.2; }
.band p { margin: 0; color: var(--muted); }
.band .band-intro { max-width: 62ch; margin-bottom: 24px; }
.band strong { color: var(--ink); }
.cols-2 { display: grid; gap: 20px 48px; grid-template-columns: 1fr; max-width: 900px; }
@media (min-width: 760px) { .cols-2 { grid-template-columns: 1fr 1fr; } }

.cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .cards { grid-template-columns: repeat(4, 1fr); } }
/* Three cards: one column until there is room for all three, so none sits alone on a row. */
@media (min-width: 640px) { .cards-3 { grid-template-columns: 1fr; } }
@media (min-width: 760px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }
.card { padding: 22px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--teal-line); }
.card h3 { margin: 0 0 8px; font-size: 16px; color: var(--yellow); }
.card p { font-size: 15px; }

/* CTA */
.cta { padding-top: 72px; padding-bottom: 72px; border-top: 1px solid var(--teal-line); text-align: center; }
.cta > p { margin: 0 auto 24px; max-width: 46ch; color: var(--muted); }

/* Footer */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 28px; padding-bottom: 40px; border-top: 1px solid var(--teal-line); font-size: 14px; color: var(--faint); }
.foot p { margin: 0; }
