/*
 * Cooklify website. Colors of the app (see CLAUDE.md, design system), in a
 * warm and playful mood: every color is a token below, none is written in a
 * rule. Fonts are served by the site itself (no call to Google Fonts):
 * Fredoka for titles, Nunito for text, Caveat for the handwritten notes.
 * All three under the SIL Open Font License.
 */

@font-face {
    font-family: "Fredoka";
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/fredoka-600-latin-5FsLNeV.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Fredoka";
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/fredoka-600-latin-ext-VUWmbbU.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Fredoka";
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/fredoka-700-latin-rwTC4Pt.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Fredoka";
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/fredoka-700-latin-ext-MTrsL8y.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Nunito";
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/nunito-400-latin-sGPAjRX.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Nunito";
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/nunito-400-latin-ext-s0W6W1u.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Nunito";
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/nunito-700-latin-9DwS6xD.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Nunito";
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/nunito-700-latin-ext-b75qWGI.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Nunito";
    font-weight: 800;
    font-display: swap;
    src: url("../fonts/nunito-800-latin-GUQR0gT.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Nunito";
    font-weight: 800;
    font-display: swap;
    src: url("../fonts/nunito-800-latin-ext-W5KmqAn.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Caveat";
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/caveat-700-latin-CPkli8Z.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Caveat";
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/caveat-700-latin-ext-sjsKqot.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --terracotta: #C85A3C;
    --terracotta-dark: #A63A24;
    --terracotta-deep: #7A2716;
    --terracotta-soft: #FBE7DF;
    --sage: #8FAA88;
    --forest: #3D5E48;
    --mint: #DCEFD9;
    --surface: #F4F7FB;
    --card: #FFFFFF;
    --text-primary: #1C1C1E;
    --text-secondary: #55555C;
    --border: #E3E7EE;
    --error: #B42318;
    --error-soft: #FDECEA;
    --todo: #FFF1B8;
    /* Warm tones of the app's poster. */
    --cream: #FFF6EE;
    --sun: #F5A04B;
    --sun-soft: #FFE6C7;
    --marker: #FFD27A;
    --phone-edge: #4A4A4F;
    /* Outlines and hard shadows of the "sticker" cards. */
    --ink: #2B2321;

    --radius-card: 22px;
    --radius-pill: 999px;
    --shadow: 0 6px 24px rgba(28, 28, 30, 0.07);
    --shadow-strong: 0 18px 50px rgba(28, 28, 30, 0.16);
    --sticker: 4px 4px 0 var(--ink);
    --font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-display: "Fredoka", "Nunito", system-ui, sans-serif;
    --font-hand: "Caveat", "Segoe Print", cursive;
    --container: 1120px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--terracotta-dark);
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.12;
    margin: 0 0 0.5em;
}

h1 {
    font-size: clamp(2.3rem, 5vw, 3.6rem);
}

h2 {
    font-size: clamp(1.8rem, 3.4vw, 2.5rem);
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

p {
    margin: 0 0 1em;
}

[hidden] {
    display: none !important;
}

:focus-visible {
    outline: 3px solid var(--terracotta);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    left: -9999px;
}

.skip-link:focus {
    left: 16px;
    top: 16px;
    z-index: 10;
    padding: 8px 16px;
    background: var(--card);
    border-radius: var(--radius-pill);
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 16px;
}

.container--narrow {
    max-width: 760px;
}

.container--form {
    max-width: 500px;
    display: grid;
    gap: 22px;
}

/* A handwritten note above the titles. */
.eyebrow {
    display: inline-block;
    margin: 0 0 6px;
    font-family: var(--font-hand);
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--terracotta);
    transform: rotate(-2deg);
}

/* A word crossed with a highlighter. */
.highlight {
    padding: 0 0.12em;
    border-radius: 0.3em 0.5em 0.4em 0.6em;
    background: linear-gradient(100deg, transparent 2%, var(--marker) 4%, var(--marker) 96%, transparent 98%) 0 72% / 100% 46% no-repeat;
    color: inherit;
}

.lead {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 640px;
}

.muted {
    color: var(--text-secondary);
}

.stack {
    display: grid;
    gap: 12px;
}

/* Header and footer */

.site-header {
    position: sticky;
    top: 0;
    z-index: 5;
    background: rgba(255, 246, 238, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--sun-soft);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 70px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--terracotta);
}

.brand img {
    border-radius: 12px;
    transition: transform 0.2s ease;
}

.brand:hover img {
    transform: rotate(-8deg) scale(1.05);
}

.brand__name {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.site-nav > a:not(.button) {
    padding: 10px 12px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    border-radius: var(--radius-pill);
    color: var(--text-primary);
    font-weight: 700;
    text-decoration: none;
}

.site-nav > a:not(.button):hover {
    background: var(--sun-soft);
}

.site-nav > a[aria-current="page"]:not(.button) {
    color: var(--terracotta-dark);
    background: var(--sun-soft);
}

.site-footer {
    margin-top: 72px;
    padding: 44px 0 36px;
    background: var(--terracotta-deep);
    color: var(--cream);
    font-size: 0.95rem;
}

.site-footer__inner {
    display: grid;
    gap: 16px;
}

.site-footer__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-hand);
    font-size: 1.5rem;
}

.site-footer__brand img {
    border-radius: 8px;
}

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;
}

.site-footer__links a {
    color: var(--cream);
    text-decoration: none;
    padding: 6px 0;
    font-weight: 700;
}

.site-footer__links a:hover {
    text-decoration: underline;
}

.site-footer__copy {
    margin: 0;
    opacity: 0.8;
}

/* Buttons and links: chunky, they sink when pressed. */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 12px 28px;
    border: 2px solid var(--terracotta-deep);
    border-radius: var(--radius-pill);
    background: var(--terracotta-dark);
    color: var(--card);
    box-shadow: 0 4px 0 var(--terracotta-deep);
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 var(--terracotta-deep);
}

.button:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 var(--terracotta-deep);
}

.button:disabled {
    opacity: 0.6;
    cursor: progress;
    transform: none;
}

.button--small {
    min-height: 44px;
    padding: 8px 18px;
    font-size: 0.98rem;
}

.button--wide {
    width: 100%;
}

.button--outline {
    background: var(--card);
    color: var(--terracotta-dark);
}

.button--provider {
    width: 100%;
    background: var(--card);
    color: var(--text-primary);
    border-color: var(--ink);
    box-shadow: 0 4px 0 var(--ink);
}

.button--provider:hover {
    box-shadow: 0 6px 0 var(--ink);
}

.button--apple {
    background: var(--text-primary);
    color: var(--card);
}

.provider-icon {
    width: 20px;
    height: 20px;
}

.link-button {
    min-height: 44px;
    padding: 8px;
    border: 0;
    background: none;
    color: var(--terracotta-dark);
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

.link {
    text-align: center;
    font-weight: 700;
}

/* Store badges */

.stores {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.store {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 8px 18px 8px 14px;
    border: 2px solid var(--ink);
    border-radius: 14px;
    background: var(--text-primary);
    color: var(--card);
    text-decoration: none;
    box-shadow: 3px 3px 0 var(--terracotta);
}

.store--soon {
    background: var(--card);
    color: var(--text-primary);
    box-shadow: 3px 3px 0 var(--sun);
}

.store__icon {
    width: 26px;
    height: 26px;
    flex: none;
}

.store__text {
    display: grid;
    line-height: 1.15;
}

.store__text small {
    font-size: 0.74rem;
    color: var(--text-secondary);
}

.store:not(.store--soon) .store__text small {
    color: inherit;
}

.store__text strong {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
}

/* Home: hero */

.hero {
    position: relative;
    padding: 48px 0 96px;
    overflow: hidden;
    background: var(--cream);
}

/* Warm shape in the top left corner, as on the app's poster. */
.hero::before {
    content: "";
    position: absolute;
    top: -110px;
    left: -110px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: var(--sun);
    opacity: 0.85;
}

.hero__inner {
    position: relative;
    display: grid;
    gap: 40px;
    align-items: center;
}

.hero__lead {
    font-size: 1.18rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin-bottom: 26px;
}

.hero__note {
    margin-top: 18px;
    font-weight: 700;
}

.hero__visual {
    display: flex;
    justify-content: center;
}

/* Wavy bottom edge of the hero, into the next section. */
.wave {
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 60px;
    fill: var(--surface);
}

/*
 * Two phones on warm shapes: the home screen in front, the planning behind.
 * Sizes follow --phone, the width of the front phone.
 */
.phones {
    --phone: min(250px, 44vw);
    position: relative;
    width: calc(var(--phone) * 1.75);
    height: calc(var(--phone) * 2.45);
}

.phones__shape {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, var(--sun) 0%, var(--terracotta) 100%);
}

.phones__shape--big {
    right: -8%;
    top: 12%;
    width: calc(var(--phone) * 1.5);
    height: calc(var(--phone) * 1.5);
    opacity: 0.9;
}

.phones__shape--small {
    left: 2%;
    bottom: 4%;
    width: calc(var(--phone) * 0.55);
    height: calc(var(--phone) * 0.55);
    opacity: 0.55;
}

.phone {
    position: absolute;
    width: var(--phone);
    aspect-ratio: 9 / 19.5;
    padding: calc(var(--phone) * 0.035);
    border-radius: calc(var(--phone) * 0.16);
    background: linear-gradient(145deg, var(--phone-edge), var(--text-primary) 40%);
    box-shadow: var(--shadow-strong), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
}

/* The camera island. */
.phone::before {
    content: "";
    position: absolute;
    top: calc(var(--phone) * 0.06);
    left: 50%;
    width: 30%;
    height: calc(var(--phone) * 0.075);
    transform: translateX(-50%);
    border-radius: var(--radius-pill);
    background: var(--text-primary);
    z-index: 1;
}

/* The screen: a status bar under the camera, then the app. */
.phone__screen {
    height: 100%;
    padding-top: calc(var(--phone) * 0.17);
    border-radius: calc(var(--phone) * 0.13);
    background: var(--surface);
    overflow: hidden;
}

.phone img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.phone--front {
    right: 0;
    top: 0;
    z-index: 2;
    transform: rotate(8deg);
}

.phone--front img {
    object-position: 50% 10%;
}

.phone--back {
    left: 0;
    top: 22%;
    z-index: 1;
    width: calc(var(--phone) * 0.9);
    transform: rotate(-12deg);
}

.phone--back img {
    object-position: 50% 6%;
}

/* Ingredients floating around the phones. */
.floater {
    position: absolute;
    z-index: 3;
    font-size: calc(var(--phone) * 0.2);
    line-height: 1;
    filter: drop-shadow(0 8px 10px rgba(28, 28, 30, 0.2));
    animation: float 6s ease-in-out infinite;
}

.floater--tomato {
    left: -4%;
    top: 4%;
}

.floater--basil {
    right: -6%;
    top: -2%;
    animation-delay: -1.5s;
}

.floater--avocado {
    left: -8%;
    bottom: 14%;
    animation-delay: -3s;
}

.floater--garlic {
    right: 0;
    bottom: 0;
    font-size: calc(var(--phone) * 0.16);
    animation-delay: -4.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(-6deg); }
    50% { transform: translateY(-12px) rotate(6deg); }
}

/* A sticker stuck on the picture. */
.scribble {
    position: absolute;
    z-index: 4;
    left: 30%;
    top: 2%;
    margin: 0;
    padding: 4px 14px;
    border: 2px solid var(--ink);
    border-radius: 12px;
    background: var(--mint);
    box-shadow: 3px 3px 0 var(--ink);
    font-family: var(--font-hand);
    font-size: calc(var(--phone) * 0.12);
    font-weight: 700;
    color: var(--forest);
    transform: rotate(-8deg);
}

/* Sections */

.section {
    padding: 64px 0;
    background: var(--surface);
}

.section--tinted {
    background: var(--sun-soft);
}

/* The four steps: sticker cards, each its color, slightly askew. */
.steps {
    list-style: none;
    margin: 36px 0 0;
    padding: 0;
    display: grid;
    gap: 22px;
    counter-reset: step;
}

.step {
    position: relative;
    padding: 28px 24px 24px;
    border: 2px solid var(--ink);
    border-radius: var(--radius-card);
    background: var(--card);
    box-shadow: var(--sticker);
    counter-increment: step;
    transition: transform 0.2s ease;
}

.step:nth-child(1) { background: var(--terracotta-soft); transform: rotate(-1.5deg); }
.step:nth-child(2) { background: var(--mint); transform: rotate(1deg); }
.step:nth-child(3) { background: var(--sun-soft); transform: rotate(-1deg); }
.step:nth-child(4) { background: var(--card); transform: rotate(1.5deg); }

.step:hover {
    transform: rotate(0) translateY(-4px);
}

.step::before {
    content: counter(step);
    position: absolute;
    top: -16px;
    left: 20px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 2px solid var(--ink);
    border-radius: 50%;
    background: var(--terracotta);
    color: var(--card);
    font-family: var(--font-display);
    font-weight: 700;
}

.step__icon {
    display: inline-grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 12px;
    border: 2px solid var(--ink);
    border-radius: 18px;
    background: var(--card);
    font-size: 1.8rem;
}

.step p {
    margin: 0;
    color: var(--text-primary);
}

/* Plans */

.plans {
    display: grid;
    gap: 24px;
    margin-top: 36px;
}

.plan {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 30px 28px;
    border: 2px solid var(--ink);
    border-radius: var(--radius-card);
    background: var(--card);
    box-shadow: var(--sticker);
}

.plan--premium {
    background: var(--cream);
    box-shadow: 6px 6px 0 var(--terracotta);
}

.plan__badge {
    position: absolute;
    top: -18px;
    right: 22px;
    margin: 0;
    padding: 4px 16px;
    border: 2px solid var(--ink);
    border-radius: var(--radius-pill);
    background: var(--marker);
    color: var(--ink);
    font-family: var(--font-hand);
    font-size: 1.4rem;
    font-weight: 700;
    transform: rotate(4deg);
}

.plan__name {
    margin: 0 0 4px;
    font-size: 1.5rem;
}

.plan__price {
    margin: 0 0 8px;
    color: var(--text-secondary);
}

.plan__price strong {
    font-family: var(--font-display);
    font-size: 2.6rem;
    color: var(--text-primary);
}

.plan--premium .plan__price strong {
    color: var(--terracotta-dark);
}

.plan__lead {
    color: var(--text-secondary);
}

.plan__features {
    flex: 1;
    margin: 8px 0 24px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.plan__features li {
    position: relative;
    padding-left: 32px;
}

.plan__features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 22px;
    height: 22px;
    border: 2px solid var(--forest);
    border-radius: 50%;
    background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%233D5E48' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}

/* FAQ */

.faq {
    display: grid;
    gap: 14px;
}

.faq details {
    padding: 4px 20px;
    border: 2px solid var(--ink);
    border-radius: 18px;
    background: var(--card);
    box-shadow: 3px 3px 0 var(--ink);
}

.faq summary {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    list-style: none;
    cursor: pointer;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    flex: none;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--sun-soft);
    color: var(--terracotta-dark);
    font-size: 1.4rem;
    transition: transform 0.2s ease;
}

.faq details[open] summary::after {
    transform: rotate(45deg);
}

.faq details p {
    color: var(--text-secondary);
}

/* Cards and forms */

.card {
    padding: 28px;
    border: 2px solid var(--ink);
    border-radius: var(--radius-card);
    background: var(--card);
    box-shadow: var(--sticker);
}

.card--soft {
    background: var(--sun-soft);
}

.card--center {
    text-align: center;
}

.card__title {
    font-size: 2rem;
}

.card__subtitle {
    font-size: 1.4rem;
}

.card__lead {
    color: var(--text-secondary);
}

.card__emoji {
    margin: 0;
    font-size: 3rem;
}

.field {
    display: grid;
    gap: 6px;
}

.field label {
    font-weight: 700;
}

.field input,
.field select,
.field textarea {
    min-height: 50px;
    padding: 10px 14px;
    border: 2px solid var(--ink);
    border-radius: 14px;
    font: inherit;
    color: var(--text-primary);
    background: var(--card);
}

.field textarea {
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--terracotta);
    box-shadow: 0 0 0 4px var(--terracotta-soft);
    outline: none;
}

.field--invalid input,
.field--invalid select,
.field--invalid textarea {
    border-color: var(--error);
}

.field__error {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--error);
}

/* Field that only robots see (contact form). */
.trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-note {
    margin: 0;
    font-size: 0.85rem;
}

.check {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 14px;
    font-size: 0.95rem;
    cursor: pointer;
}

.check input {
    flex: none;
    width: 22px;
    height: 22px;
    margin-top: 2px;
    accent-color: var(--forest);
}

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    font-family: var(--font-hand);
    font-size: 1.4rem;
    color: var(--text-secondary);
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 2px;
    background: var(--border);
}

.alert {
    margin-bottom: 16px;
    padding: 12px 16px;
    border-radius: 14px;
    font-weight: 700;
}

.alert--error {
    background: var(--error-soft);
    color: var(--error);
}

.alert--info {
    background: var(--mint);
    color: var(--forest);
}

/* Premium page */

.premium-layout {
    display: grid;
    gap: 28px;
    align-items: start;
}

.premium-layout .plans {
    margin-top: 0;
}

/* On the Premium page, the offer comes first. */
.premium-layout .plan--premium {
    order: -1;
}

.checkout__price strong {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--terracotta-dark);
}

.checkout__secure {
    margin: 12px 0 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
}

/* Account page: every card of the account, read only. */

.account__grid {
    display: grid;
    gap: 24px;
    margin-top: 8px;
}

.account__identity {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.account__identity .card__subtitle {
    margin: 0;
}

.account__email {
    margin: 0;
    font-weight: 700;
    color: var(--text-secondary);
    word-break: break-all;
}

.avatar {
    flex: none;
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    overflow: hidden;
    border: 2px solid var(--ink);
    border-radius: 50%;
    background: var(--terracotta);
    color: var(--card);
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Label / value pairs. */
.facts {
    display: grid;
    gap: 12px;
    margin: 0;
}

.facts div {
    display: grid;
    gap: 4px;
}

.facts dt {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
}

.facts dd {
    margin: 0;
    font-weight: 700;
}

.tiles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.tile {
    display: grid;
    gap: 2px;
    padding: 14px;
    border: 2px solid var(--ink);
    border-radius: 16px;
    background: var(--sun-soft);
}

.tile:nth-child(2) { background: var(--mint); }
.tile:nth-child(3) { background: var(--terracotta-soft); }
.tile:nth-child(4) { background: var(--cream); }

.tile strong {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
}

.tile span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.chip {
    padding: 3px 12px;
    border: 2px solid var(--forest);
    border-radius: var(--radius-pill);
    background: var(--mint);
    color: var(--forest);
    font-size: 0.9rem;
    font-weight: 700;
}

.chip--empty {
    border-color: var(--border);
    background: var(--surface);
    color: var(--text-secondary);
}

.account__family-name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
}

.members {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.members li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 14px;
    background: var(--surface);
    font-weight: 700;
}

.status {
    display: inline-block;
    margin-bottom: 8px;
    padding: 4px 16px;
    border: 2px solid var(--ink);
    border-radius: var(--radius-pill);
    background: var(--card);
    font-family: var(--font-display);
    font-weight: 600;
}

.status--premium {
    background: var(--forest);
    color: var(--card);
}

/* Legal pages */

.prose h2 {
    margin-top: 1.6em;
    font-size: 1.45rem;
}

.prose ul {
    padding-left: 1.2em;
}

.prose li {
    margin-bottom: 0.4em;
}

.todo {
    padding: 0 4px;
    border-radius: 4px;
    background: var(--todo);
    color: var(--text-primary);
}

@media (min-width: 720px) {
    .steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .plans {
        grid-template-columns: repeat(2, 1fr);
    }

    .site-footer__inner {
        grid-template-columns: auto 1fr;
        align-items: center;
    }

    .site-footer__links {
        justify-content: flex-end;
    }

    .site-footer__copy {
        grid-column: 1 / -1;
    }
}

@media (min-width: 960px) {
    .hero {
        padding: 72px 0 120px;
    }

    .hero::before {
        top: -140px;
        left: -140px;
        width: 300px;
        height: 300px;
    }

    .hero__inner {
        grid-template-columns: 1.1fr 0.9fr;
    }

    .steps {
        grid-template-columns: repeat(4, 1fr);
    }

    .premium-layout {
        grid-template-columns: 1.6fr 1fr;
    }

    .premium-layout .plans {
        grid-template-columns: 1fr;
    }

    .account__grid {
        grid-template-columns: repeat(2, 1fr);
        align-items: start;
    }

    .checkout {
        position: sticky;
        top: 92px;
    }
}

@media (max-width: 420px) {
    .brand__name {
        display: none;
    }

    .site-nav > a:not(.button) {
        padding: 10px 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}
