:root {
    --ink: #2d2b28;
    --ink-soft: #6f6a63;
    --paper: #fbf9f3;
    --cream: #f2f0eb;
    --line: rgba(45, 43, 40, 0.15);
    --navy: #142640;
    --gold: #d3aa5c;
    --font-ui: "Segoe UI Variable Text", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    background: #e5e2dc;
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(rgba(55, 53, 49, 0.09) 0.58px, transparent 0.68px) 0 0 / 10px 10px,
        linear-gradient(118deg, rgba(255, 255, 255, 0.92), rgba(239, 237, 232, 0.88)),
        var(--cream);
    font-family: var(--font-ui);
    font-optical-sizing: auto;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
}

a:focus-visible {
    outline: 3px solid rgba(45, 43, 40, 0.45);
    outline-offset: 4px;
}

.about-header,
.about-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1240px, calc(100% - 56px));
    margin: 0 auto;
}

.about-header {
    padding: 27px 0;
}

.about-logo img {
    display: block;
    width: 104px;
    height: auto;
}

.about-header-actions,
.about-language,
.about-footer-legal {
    display: flex;
    gap: 18px;
    align-items: center;
}

.about-back,
.about-language a,
.about-footer-legal a {
    color: rgba(45, 43, 40, 0.56);
    text-decoration: none;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.about-back {
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(45, 43, 40, 0.24);
}

.about-back:hover,
.about-language a:hover,
.about-footer-legal a:hover {
    color: var(--ink);
}

.about-language {
    gap: 8px;
    color: rgba(45, 43, 40, 0.28);
}

.about-language a {
    position: relative;
    padding: 5px 1px;
}

.about-language a[aria-current="page"] {
    color: var(--ink);
}

.about-language a[aria-current="page"]::after {
    position: absolute;
    right: 1px;
    bottom: 1px;
    left: 1px;
    height: 1px;
    background: currentColor;
    content: "";
}

main {
    overflow: hidden;
}

.about-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(250px, 0.62fr);
    gap: clamp(54px, 9vw, 140px);
    align-items: center;
    width: min(1240px, calc(100% - 56px));
    min-height: 650px;
    margin: 0 auto;
    padding: 80px clamp(28px, 6vw, 92px);
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(249, 247, 241, 0.76);
    box-shadow: 0 30px 90px rgba(31, 29, 25, 0.1);
}

.about-hero::before {
    position: absolute;
    inset: 0 42% 0 0;
    z-index: -1;
    background: linear-gradient(150deg, rgba(185, 182, 175, 0.22), rgba(117, 115, 109, 0.13));
    clip-path: polygon(0 0, 76% 0, 100% 100%, 0 100%);
    content: "";
}

.about-hero-copy {
    position: relative;
    padding: 28px 0 30px clamp(30px, 4vw, 52px);
}

.about-hero-copy::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 1px;
    background: rgba(45, 43, 40, 0.2);
    content: "";
}

.about-hero-copy::after {
    position: absolute;
    top: 0;
    left: 0;
    width: 44px;
    height: 1px;
    background: rgba(45, 43, 40, 0.2);
    content: "";
}

h1,
h2,
h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
}

h1 {
    max-width: 700px;
    margin: 0;
    font-size: clamp(46px, 5.4vw, 72px);
    letter-spacing: -0.055em;
    line-height: 0.92;
    text-wrap: balance;
}

.about-hero-copy > p {
    max-width: 610px;
    margin: 30px 0 0;
    color: var(--ink-soft);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
    line-height: 1.65;
}

.about-cta {
    display: inline-flex;
    gap: 22px;
    align-items: center;
    margin-top: 34px;
    padding: 16px 0 8px;
    border-bottom: 1px solid rgba(45, 43, 40, 0.4);
    text-decoration: none;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.13em;
}

.about-cta span:last-child {
    font-size: 15px;
    transition: transform 160ms ease;
}

.about-cta:hover span:last-child {
    transform: translate(2px, -2px);
}

.about-store-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.about-app-store-badge,
.about-google-play-badge {
    display: block;
    line-height: 0;
}

.about-app-store-badge,
.about-google-play-badge {
    width: 144px;
}

.about-app-store-badge img,
.about-google-play-badge img {
    display: block;
    width: 100%;
    height: auto;
}

.about-app-store-badge:focus-visible,
.about-google-play-badge:focus-visible {
    border-radius: 9px;
    outline: 3px solid rgba(244, 240, 231, 0.65);
    outline-offset: 4px;
}

.about-cover {
    position: relative;
    width: min(290px, 100%);
    aspect-ratio: 0.72;
    margin: auto;
    transform: rotate(2.2deg);
}

.about-cover-front,
.about-cover-pages {
    position: absolute;
    display: block;
}

.about-cover-pages {
    inset: 11px -11px 6px 14px;
    border-radius: 4px 10px 10px 4px;
    background: repeating-linear-gradient(90deg, #eee7d8 0 2px, #d8cfbd 2px 3px);
    box-shadow: 5px 6px 13px rgba(27, 25, 18, 0.16);
}

.about-cover-front {
    inset: 0;
    z-index: 2;
    padding: 21px 19px 24px 29px;
    border: 1px solid rgba(3, 11, 22, 0.92);
    border-radius: 8px 11px 11px 8px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.05), transparent 13%, transparent 86%, rgba(0, 0, 0, 0.22)),
        linear-gradient(145deg, #2b3d57, #182a43 58%, #09172a);
    box-shadow: -10px 17px 25px rgba(31, 25, 20, 0.14), 23px 30px 46px rgba(31, 25, 20, 0.24);
}

.about-cover-front::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 14px;
    width: 1px;
    background: rgba(255, 239, 209, 0.16);
    box-shadow: 4px 0 8px rgba(4, 10, 19, 0.35);
    content: "";
}

.about-cover-frame {
    display: flex;
    width: 100%;
    height: 100%;
    padding: 84px 23px 38px;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(242, 222, 180, 0.3);
    border-radius: 3px 8px 8px 3px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.28);
}

.about-cover-logo {
    width: 90%;
    aspect-ratio: 1707 / 765;
    background: linear-gradient(105deg, #b7883f, #e6c77e 45%, #f1dda5 57%, #c2964c);
    -webkit-mask: url("../images/cesca-wordmark.png?v=1") center / contain no-repeat;
    mask: url("../images/cesca-wordmark.png?v=1") center / contain no-repeat;
}

.about-cover-type {
    margin-top: 8px;
    color: #d7b66d;
    font-family: Inter, Arial, sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.24em;
    line-height: 1;
    text-shadow: 0 1px rgba(0, 0, 0, 0.22);
}

.about-cover-rule {
    width: 36px;
    height: 1px;
    margin-top: auto;
    margin-bottom: 25px;
    background: rgba(242, 222, 180, 0.52);
}

.about-cover-frame strong {
    color: #d7b66d;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 31px;
    font-weight: 400;
    letter-spacing: 0.14em;
}

.about-cover-ribbon {
    position: absolute;
    bottom: -25px;
    left: 20px;
    z-index: 1;
    width: 15px;
    height: 34px;
    background: linear-gradient(90deg, #b98b40, #d2ad63 58%, #b98b40);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
}

.about-definition {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    gap: clamp(50px, 9vw, 150px);
    width: min(1080px, calc(100% - 56px));
    margin: 140px auto;
}

.about-definition h2,
.about-section-heading h2,
.about-closing h2 {
    margin: 0;
    font-size: clamp(40px, 5vw, 64px);
    letter-spacing: -0.045em;
    line-height: 0.98;
    text-wrap: balance;
}

.about-definition-copy {
    padding-top: 5px;
}

.about-definition-copy p {
    margin: 0 0 20px;
    color: var(--ink-soft);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    line-height: 1.7;
}

.about-preview-section {
    padding: 110px max(28px, calc((100vw - 1240px) / 2));
    background: #302f2c;
    color: #f5f1e8;
}

.about-section-heading {
    display: flex;
    gap: 36px;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 55px;
}

.about-section-heading h2 {
    max-width: 760px;
}

.about-section-heading p {
    max-width: 280px;
    margin: 0 0 6px;
    color: rgba(245, 241, 232, 0.56);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    line-height: 1.55;
}

.planner-demo {
    margin: 0;
}

.planner-demo-toolbar {
    display: flex;
    gap: 13px;
    align-items: center;
    min-height: 74px;
    padding: 14px 22px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px 18px 0 0;
    background: #3a3936;
}

.planner-demo-toolbar img {
    width: 86px;
    margin-right: auto;
    filter: invert(1);
    opacity: 0.66;
}

.planner-demo-saved {
    display: flex;
    gap: 7px;
    align-items: center;
    color: rgba(255, 255, 255, 0.58);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.planner-demo-saved i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #89c7a4;
    box-shadow: 0 0 0 4px rgba(137, 199, 164, 0.11);
}

.planner-demo-pill {
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.planner-demo-book {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 570px;
    padding: 22px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 0 18px 18px;
    background: #3a3936;
}

.demo-page {
    position: relative;
    min-width: 0;
    padding: 43px 55px 38px;
    color: #323f3b;
    background:
        radial-gradient(rgba(52, 69, 64, 0.1) 0.55px, transparent 0.7px) 0 0 / 11px 11px,
        #fbf9f2;
    box-shadow: inset 0 0 0 1px rgba(82, 76, 65, 0.12);
}

.demo-page-left {
    border-radius: 7px 0 0 7px;
    box-shadow: inset -16px 0 20px -20px rgba(31, 28, 23, 0.75), inset 0 0 0 1px rgba(82, 76, 65, 0.12);
}

.demo-page-right {
    border-radius: 0 7px 7px 0;
    box-shadow: inset 16px 0 20px -20px rgba(31, 28, 23, 0.75), inset 0 0 0 1px rgba(82, 76, 65, 0.12);
}

.demo-date {
    display: flex;
    gap: 13px;
    align-items: center;
    width: fit-content;
    min-width: 170px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(41, 67, 59, 0.5);
}

.demo-date-right {
    margin-left: auto;
    text-align: right;
}

.demo-date strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 54px;
    font-weight: 400;
    letter-spacing: -0.06em;
    line-height: 0.8;
}

.demo-date div {
    display: flex;
    gap: 11px;
    flex-direction: column;
}

.demo-date b {
    font-size: 14px;
    letter-spacing: 0.18em;
}

.demo-date small {
    color: #73817c;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.17em;
}

.demo-format {
    display: flex;
    gap: 14px;
    align-items: center;
    width: fit-content;
    margin: -35px 0 60px auto;
    padding: 9px 14px;
    border: 1px solid rgba(47, 67, 61, 0.08);
    border-radius: 10px;
    color: rgba(61, 82, 76, 0.36);
    background: rgba(251, 249, 242, 0.7);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 13px;
}

.demo-page-right .demo-format {
    margin-right: auto;
    margin-left: 0;
}

.demo-notes {
    min-height: 270px;
    padding: 0 5px;
    background: repeating-linear-gradient(transparent 0 38px, rgba(66, 94, 84, 0.12) 38px 39px);
    font-family: "Segoe Print", "Bradley Hand", cursive;
    font-size: clamp(14px, 1.35vw, 19px);
    line-height: 39px;
}

.demo-notes p {
    min-height: 39px;
    margin: 0;
    white-space: nowrap;
}

.demo-bullet {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin: 0 12px 3px 2px;
    border-radius: 50%;
    background: #7b293d;
}

.demo-check {
    display: inline-grid;
    width: 17px;
    height: 17px;
    margin: 0 11px -2px 0;
    place-items: center;
    border: 1px solid #72807b;
    border-radius: 3px;
    font-family: var(--font-ui);
    font-size: 11px;
    line-height: 1;
}

.demo-check.is-checked {
    border-color: #7b293d;
    color: #fff;
    background: #7b293d;
}

.demo-notes del,
.detail-preview del {
    color: rgba(50, 63, 59, 0.52);
    text-decoration-thickness: 1px;
}

.demo-page footer {
    position: absolute;
    right: 55px;
    bottom: 31px;
    left: 55px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: rgba(50, 63, 59, 0.4);
    font-size: 8px;
    letter-spacing: 0.1em;
}

.demo-page footer img {
    width: 45px;
    opacity: 0.2;
}

.planner-demo figcaption {
    margin-top: 14px;
    color: rgba(245, 241, 232, 0.42);
    font-size: 10px;
    letter-spacing: 0.05em;
}

.about-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    width: min(1180px, calc(100% - 56px));
    margin: 125px auto;
}

.about-detail-card {
    padding: 14px 14px 34px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(251, 249, 243, 0.72);
}

.about-detail-card h3,
.about-detail-card > p {
    margin-right: 20px;
    margin-left: 20px;
}

.about-detail-card h3 {
    margin-top: 27px;
    margin-bottom: 12px;
    font-size: 28px;
    letter-spacing: -0.03em;
}

.about-detail-card > p {
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.7;
}

.detail-preview {
    min-height: 220px;
    padding: 30px;
    border-radius: 7px;
    color: #34423d;
    background:
        radial-gradient(rgba(52, 69, 64, 0.09) 0.55px, transparent 0.7px) 0 0 / 11px 11px,
        #f8f5ed;
    box-shadow: inset 0 0 0 1px rgba(82, 76, 65, 0.1);
    font-family: "Segoe Print", "Bradley Hand", cursive;
}

.detail-preview-write {
    background:
        repeating-linear-gradient(transparent 0 41px, rgba(66, 94, 84, 0.12) 41px 42px),
        radial-gradient(rgba(52, 69, 64, 0.09) 0.55px, transparent 0.7px) 0 0 / 11px 11px,
        #f8f5ed;
}

.detail-preview-write p {
    margin: 22px 0 0;
    font-size: 15px;
    line-height: 1.5;
}

.detail-date {
    color: #31423c;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 46px;
}

.detail-preview-check {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detail-preview-check p {
    margin: 0;
    padding: 11px 0;
    border-bottom: 1px solid rgba(66, 94, 84, 0.12);
    font-size: 14px;
}

.detail-preview-move {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: center;
    font-family: var(--font-ui);
}

.detail-preview-move > div:last-child {
    grid-column: 2 / -1;
}

.detail-preview-move small {
    color: #8a857e;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.detail-preview-move p {
    margin: 5px 0;
    font-family: "Segoe Print", "Bradley Hand", cursive;
    font-size: 14px;
}

.detail-move-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    color: #40544c;
    background: rgba(52, 69, 64, 0.07);
    font-size: 19px;
}

.detail-arrow {
    color: rgba(52, 69, 64, 0.45);
}

.about-closing {
    width: min(1180px, calc(100% - 56px));
    margin: 0 auto 90px;
    padding: clamp(55px, 8vw, 100px);
    border-radius: 12px;
    color: #f4f0e7;
    background:
        radial-gradient(circle at 82% 15%, rgba(255, 255, 255, 0.08), transparent 28%),
        linear-gradient(145deg, #343330, #23221f);
    box-shadow: 0 28px 70px rgba(31, 29, 25, 0.15);
    text-align: center;
}

.about-closing > img {
    width: 105px;
    filter: invert(1);
    opacity: 0.7;
}

.about-closing h2 {
    max-width: 730px;
    margin: 35px auto 0;
}

.about-closing p {
    margin: 22px auto 0;
    color: rgba(244, 240, 231, 0.62);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
}

.about-closing-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    margin-top: 34px;
}

.about-closing-actions .about-cta {
    margin-top: 0;
}

.about-cta-light {
    border-color: rgba(244, 240, 231, 0.42);
    color: #f4f0e7;
}

.about-footer {
    padding: 0 0 38px;
    color: rgba(45, 43, 40, 0.48);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
}

.about-footer-motto,
.about-footer-legal,
.about-footer-links {
    display: flex;
    align-items: center;
}

.about-footer-motto {
    gap: 18px;
}

.about-footer-line {
    width: 60px;
    height: 1px;
    background: rgba(45, 43, 40, 0.24);
}

.about-footer-links {
    gap: 15px;
}

.about-footer-legal {
    gap: 16px;
    letter-spacing: 0.08em;
}

.about-footer-legal a {
    color: rgba(45, 43, 40, 0.46);
    text-decoration: none;
    text-transform: none;
    transition: color 160ms ease;
}

.about-instagram {
    display: grid;
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    place-items: center;
    border: 1px solid rgba(45, 43, 40, 0.18);
    border-radius: 50%;
    color: rgba(45, 43, 40, 0.42);
    transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.about-instagram svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.55;
}

.about-instagram svg circle:last-child {
    fill: currentColor;
    stroke: none;
}

.about-instagram:hover,
.about-instagram:focus-visible {
    border-color: rgba(45, 43, 40, 0.38);
    color: var(--ink);
    transform: translateY(-1px);
}

@media (max-width: 900px) {
    .about-hero {
        grid-template-columns: 1fr;
        min-height: 0;
        padding-top: 70px;
        padding-bottom: 90px;
    }

    .about-hero::before {
        inset: 0 0 47% 0;
        clip-path: polygon(0 0, 100% 0, 100% 74%, 0 100%);
    }

    .about-cover {
        order: -1;
        width: min(240px, 64vw);
    }

    .about-definition {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-details {
        grid-template-columns: 1fr;
        max-width: 650px;
    }

    .detail-preview {
        min-height: 190px;
    }

    .demo-page {
        padding-right: 34px;
        padding-left: 34px;
    }

    .demo-notes {
        font-size: 14px;
    }
}

@media (max-width: 680px) {
    .about-header,
    .about-footer,
    .about-hero,
    .about-definition,
    .about-details,
    .about-closing {
        width: min(100% - 32px, 1240px);
    }

    .about-header {
        padding: 18px 0;
    }

    .about-logo img {
        width: 86px;
    }

    .about-back {
        display: none;
    }

    .about-hero {
        gap: 68px;
        padding: 50px 22px 68px;
    }

    .about-hero-copy {
        padding: 27px 0 0;
    }

    .about-hero-copy::before {
        right: auto;
        bottom: auto;
        width: 50px;
        height: 1px;
    }

    .about-hero-copy::after {
        display: none;
    }

    h1 {
        font-size: clamp(36px, 9vw, 40px);
        line-height: 0.98;
    }

    .about-hero-copy > p {
        margin-top: 24px;
        font-size: 17px;
        line-height: 1.55;
    }

    .about-definition {
        margin-top: 90px;
        margin-bottom: 90px;
    }

    .about-definition h2,
    .about-section-heading h2,
    .about-closing h2 {
        font-size: clamp(36px, 10vw, 48px);
    }

    .about-preview-section {
        padding: 80px 16px;
    }

    .about-section-heading {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 38px;
    }

    .planner-demo-toolbar {
        min-height: 58px;
        padding: 11px 14px;
    }

    .planner-demo-toolbar img {
        width: 64px;
    }

    .planner-demo-saved {
        margin-left: auto;
    }

    .planner-demo-pill {
        display: none;
    }

    .planner-demo-book {
        grid-template-columns: 1fr;
        min-height: 510px;
        padding: 10px;
    }

    .demo-page {
        min-height: 490px;
        padding: 38px 28px 30px;
        border-radius: 5px;
    }

    .demo-page-left {
        display: none;
    }

    .demo-page-right {
        box-shadow: inset 0 0 0 1px rgba(82, 76, 65, 0.12);
    }

    .demo-date strong {
        font-size: 48px;
    }

    .demo-format {
        margin-top: 20px;
        margin-bottom: 34px;
    }

    .demo-notes {
        min-height: 245px;
        font-size: 13px;
    }

    .demo-page footer {
        right: 28px;
        bottom: 24px;
        left: 28px;
    }

    .about-details {
        margin: 85px auto;
    }

    .about-closing {
        margin-bottom: 55px;
        padding: 58px 25px;
    }

    .about-footer {
        gap: 20px;
        align-items: flex-start;
        padding-bottom: 28px;
        flex-direction: column;
    }

    .about-footer-links,
    .about-footer-legal {
        gap: 14px;
        flex-wrap: wrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
