:root {
    --ink: #102b2b;
    --muted: #5d6d69;
    --ivory: #fffaf0;
    --paper: #ffffff;
    --mint: #bde8dd;
    --mint-deep: #118b7d;
    --yellow: #ffd166;
    --coral: #ff6f61;
    --sky: #74aaf0;
    --lavender: #dcd7ff;
    --line: rgba(16, 43, 43, 0.14);
    --shadow: 0 22px 60px rgba(16, 43, 43, 0.12);
    --radius-lg: 34px;
    --radius-md: 24px;
    --container: 1180px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 92px;
}

body {
    margin: 0;
    font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--ivory);
    line-height: 1.6;
    word-break: keep-all;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
summary {
    font: inherit;
}

.skip-link {
    position: fixed;
    top: -100px;
    left: 16px;
    z-index: 200;
    padding: 12px 18px;
    border-radius: 12px;
    color: white;
    background: var(--ink);
}

.skip-link:focus {
    top: 16px;
}

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

:focus-visible {
    outline: 3px solid var(--coral);
    outline-offset: 4px;
}

.container {
    width: min(calc(100% - 48px), var(--container));
    margin-inline: auto;
}

.section {
    padding: 126px 0;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    transition: padding 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
    padding: 9px 0;
    background: rgba(255, 250, 240, 0.94);
    box-shadow: 0 8px 26px rgba(16, 43, 43, 0.08);
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(calc(100% - 48px), 1240px);
    min-height: 56px;
    margin-inline: auto;
    padding: 7px 10px 7px 14px;
    display: flex;
    align-items: center;
    gap: 30px;
    border: 1px solid rgba(16, 43, 43, 0.09);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 10px 30px rgba(16, 43, 43, 0.06);
    backdrop-filter: blur(14px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    font-size: 21px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.brand img {
    width: 42px;
    height: 42px;
    border: 2px solid var(--ink);
    border-radius: 13px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex: 1;
    font-size: 14px;
    font-weight: 700;
    color: #50615d;
}

.desktop-nav a {
    position: relative;
    padding: 10px 0;
}

.desktop-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 5px;
    height: 2px;
    background: var(--coral);
    transition: right 160ms ease;
}

.desktop-nav a:hover::after {
    right: 0;
}

.language-picker {
    position: relative;
    flex: 0 0 auto;
}

.language-picker::after {
    content: "⌄";
    position: absolute;
    top: 50%;
    right: 12px;
    color: var(--ink);
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    pointer-events: none;
    transform: translateY(-62%);
}

.language-picker select {
    min-width: 108px;
    padding: 10px 32px 10px 12px;
    appearance: none;
    border: 1.5px solid var(--ink);
    border-radius: 12px;
    color: var(--ink);
    background: white;
    font: inherit;
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
}

.language-picker select:hover { background: #f4f8f6; }

html[lang="ja"] body {
    font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", -apple-system, BlinkMacSystemFont, sans-serif;
    word-break: normal;
    line-break: strict;
}

.menu-toggle {
    width: 46px;
    height: 46px;
    padding: 0;
    display: none;
    place-items: center;
    border: 0;
    border-radius: 12px;
    color: var(--ink);
    background: transparent;
    cursor: pointer;
}

.menu-toggle span {
    position: absolute;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle span:nth-child(1) { transform: translateY(-7px); }
.menu-toggle span:nth-child(3) { transform: translateY(7px); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg); }

.mobile-nav {
    display: none;
}

.hero {
    position: relative;
    padding: 154px 0 42px;
    min-height: 820px;
    background:
        radial-gradient(circle at 4% 34%, rgba(189, 232, 221, 0.7) 0, rgba(189, 232, 221, 0) 27%),
        radial-gradient(circle at 94% 16%, rgba(255, 209, 102, 0.58) 0, rgba(255, 209, 102, 0) 25%),
        var(--ivory);
    overflow: hidden;
}

.hero-lines {
    position: absolute;
    top: 110px;
    right: -80px;
    width: 52vw;
    height: 620px;
    border-radius: 70px;
    opacity: 0.16;
    transform: rotate(-8deg);
    background: repeating-linear-gradient(118deg, var(--ink) 0 2px, transparent 2px 24px);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 2;
    min-height: 610px;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(450px, 0.98fr);
    align-items: center;
    gap: 42px;
}

.eyebrow,
.section-kicker {
    margin: 0 0 20px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.13em;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 13px 7px 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    letter-spacing: -0.01em;
}

.eyebrow span {
    padding: 3px 8px;
    border-radius: 99px;
    color: white;
    background: var(--coral);
    font-size: 10px;
    letter-spacing: 0.08em;
}

.hero h1 {
    max-width: 720px;
    margin: 0;
    font-size: clamp(48px, 5.7vw, 78px);
    line-height: 1.08;
    letter-spacing: -0.065em;
    font-weight: 950;
}

.hero h1 em {
    position: relative;
    z-index: 0;
    color: inherit;
    font-style: normal;
}

.hero h1 em::after {
    content: "";
    position: absolute;
    z-index: -1;
    left: -2px;
    right: -5px;
    bottom: 5px;
    height: 20px;
    border-radius: 4px;
    background: var(--yellow);
    transform: rotate(-1deg);
}

.hero-description {
    margin: 28px 0 0;
    max-width: 590px;
    color: #40534f;
    font-size: 19px;
    line-height: 1.75;
    letter-spacing: -0.025em;
}

.hero-actions {
    margin-top: 34px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.store-badge {
    display: inline-flex;
    border-radius: 10px;
    transition: transform 160ms ease, filter 160ms ease;
}

.store-badge:hover {
    transform: translateY(-3px);
    filter: drop-shadow(0 8px 10px rgba(16, 43, 43, 0.14));
}

.store-badge img {
    height: 53px;
    width: auto;
}

/* Official Google Play badges include transparent safe-area padding. */
.store-badge img[src*="play.google.com/intl/en_us/badges/"] {
    height: 76px;
    margin: -11.5px -8.5px;
}

.store-badge img[src*="play.google.com/intl/ja/badges/"] {
    height: 69px;
    margin: -8px 0;
}

.text-link {
    margin-left: 5px;
    padding: 10px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 5px;
}

.hero-tags {
    margin: 28px 0 0;
    padding: 0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    list-style: none;
}

.hero-tags li {
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
    color: #52645f;
    font-size: 12px;
    font-weight: 700;
}

.hero-visual {
    position: relative;
    height: 610px;
    display: grid;
    place-items: center;
}

.hero-visual::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    border: 2px solid var(--ink);
    border-radius: 50%;
    background: var(--mint);
    box-shadow: 20px 22px 0 rgba(255, 111, 97, 0.35);
}

.visual-sun {
    position: absolute;
    top: 68px;
    right: 26px;
    width: 88px;
    height: 88px;
    border: 2px solid var(--ink);
    border-radius: 50%;
    background: var(--yellow);
    box-shadow: 8px 8px 0 var(--ink);
}

.phone-shell {
    position: relative;
    z-index: 3;
    width: 300px;
    height: 590px;
    padding: 11px;
    border: 3px solid var(--ink);
    border-radius: 42px;
    background: var(--ink);
    box-shadow: var(--shadow);
    transform: rotate(1.5deg);
}

.phone-speaker {
    position: absolute;
    z-index: 5;
    top: 18px;
    left: 50%;
    width: 78px;
    height: 20px;
    border-radius: 14px;
    background: var(--ink);
    transform: translateX(-50%);
}

.phone-screen {
    height: 100%;
    padding: 38px 18px 18px;
    border-radius: 31px;
    background: #f7f9f8;
    overflow: hidden;
}

.app-bar {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
}

.app-bar img {
    border-radius: 9px;
}

.app-bar span {
    margin-left: auto;
    color: var(--coral);
    font-size: 10px;
}

.app-greeting {
    margin-top: 23px;
}

.app-greeting span,
.app-greeting strong {
    display: block;
}

.app-greeting span {
    color: #7a8985;
    font-size: 10px;
}

.app-greeting strong {
    margin-top: 2px;
    font-size: 18px;
    letter-spacing: -0.045em;
}

.selected-file {
    margin-top: 16px;
    padding: 11px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid rgba(17, 139, 125, 0.22);
    border-radius: 15px;
    background: #eaf7f3;
}

.selected-file > span:last-child {
    margin-left: auto;
    color: var(--mint-deep);
    font-weight: 900;
}

.selected-file small,
.selected-file strong {
    display: block;
}

.selected-file small {
    color: #75847f;
    font-size: 8px;
}

.selected-file strong {
    font-size: 11px;
}

.mini-pdf {
    padding: 6px 5px;
    border-radius: 7px;
    color: white;
    background: var(--coral);
    font-size: 8px;
    font-weight: 900;
}

.app-section-title {
    margin-top: 18px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.app-section-title strong { font-size: 13px; }
.app-section-title small { color: #87948f; font-size: 8px; }

.quiz-option-grid {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.quiz-option {
    min-height: 88px;
    padding: 11px 8px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid #dde5e2;
    border-radius: 14px;
    background: white;
    color: #52625e;
    font-size: 10px;
    font-weight: 800;
}

.quiz-option.is-selected {
    border: 2px solid var(--coral);
    color: var(--ink);
    box-shadow: 0 7px 16px rgba(255, 111, 97, 0.14);
}

.quiz-option img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.generate-button {
    margin-top: 13px;
    padding: 13px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 13px;
    color: white;
    background: var(--ink);
    font-size: 11px;
    font-weight: 900;
    box-shadow: 4px 4px 0 var(--yellow);
}

.floating-card {
    position: absolute;
    z-index: 6;
    border: 2px solid var(--ink);
    background: white;
    box-shadow: 9px 9px 0 var(--ink);
}

.source-card {
    top: 105px;
    left: -38px;
    width: 270px;
    padding: 13px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 16px;
    transform: rotate(-5deg);
    animation: float-card 5s ease-in-out infinite;
}

.source-card strong,
.source-card small,
.result-card strong,
.result-card small {
    display: block;
}

.source-card strong { font-size: 12px; }
.source-card small, .result-card small { color: #6d7d79; font-size: 9px; }

.file-label {
    padding: 8px 7px;
    border-radius: 8px;
    color: white;
    background: var(--coral);
    font-size: 9px;
    font-weight: 900;
}

.source-check {
    margin-left: auto;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: white;
    background: var(--mint-deep);
    font-size: 12px;
}

.result-card {
    right: -20px;
    bottom: 102px;
    width: 245px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 18px;
    transform: rotate(5deg);
    animation: float-card 5s 1.2s ease-in-out infinite;
}

.result-score {
    flex: 0 0 auto;
    color: var(--coral);
    font-size: 27px;
    font-weight: 950;
    line-height: 1;
}

.result-score span {
    color: #7f8e89;
    font-size: 11px;
}

.result-card strong { font-size: 12px; }

@keyframes float-card {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -8px; }
}

.capability-strip {
    position: relative;
    z-index: 3;
    margin-top: 38px;
    padding: 20px 28px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 2px solid var(--ink);
    border-radius: 22px;
    background: white;
    box-shadow: 8px 8px 0 var(--ink);
}

.capability-strip div {
    min-height: 44px;
    padding: 0 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid var(--line);
}

.capability-strip div:first-child { padding-left: 4px; }
.capability-strip div:last-child { border: 0; }
.capability-strip strong { font-size: 14px; }
.capability-strip span { color: #74827e; font-size: 11px; }

.section-heading {
    margin-bottom: 58px;
    text-align: center;
}

.section-heading.compact {
    margin-bottom: 44px;
    text-align: left;
}

.section-kicker {
    color: var(--mint-deep);
}

.section-heading h2,
.quiz-types-copy h2,
.preview-heading h2,
.download-copy h2,
.faq-title h2 {
    margin: 0;
    font-size: clamp(38px, 4.3vw, 58px);
    line-height: 1.18;
    letter-spacing: -0.055em;
    font-weight: 950;
}

.section-heading > p:last-child,
.quiz-types-copy > p,
.preview-heading > p,
.faq-title > p {
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 17px;
}

.journey {
    background: white;
}

.journey-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.journey-card {
    position: relative;
    min-height: 440px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    border: 2px solid var(--ink);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 8px 8px 0 var(--ink);
}

.journey-card.mint { background: var(--mint); }
.journey-card.yellow { background: var(--yellow); }
.journey-card.coral { background: #ff8b80; }

.step-number {
    position: absolute;
    top: 24px;
    left: 25px;
    padding: 4px 11px;
    border: 1.5px solid var(--ink);
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 900;
}

.journey-illustration {
    height: 226px;
    display: grid;
    place-items: center;
}

.document-stack {
    position: relative;
    width: 200px;
    margin: 18px auto 0;
}

.document-stack span {
    position: absolute;
    width: 130px;
    height: 160px;
    border: 2px solid var(--ink);
    border-radius: 14px;
    background: white;
    box-shadow: 5px 5px 0 var(--ink);
}

.document-stack span::before,
.document-stack span::after {
    content: "";
    position: absolute;
    left: 20px;
    right: 20px;
    height: 8px;
    border-radius: 8px;
    background: var(--ink);
}

.document-stack span::before { top: 42px; }
.document-stack span::after { top: 67px; right: 42px; }
.document-stack span:nth-child(1) { transform: rotate(-13deg) translate(-26px, 6px); background: #e9fffa; }
.document-stack span:nth-child(2) { transform: rotate(10deg) translate(27px, 4px); background: #fff5ce; }
.document-stack span:nth-child(3) { z-index: 2; }

.question-sheet {
    width: 210px;
    height: 150px;
    margin: 42px auto 0;
    padding: 22px;
    display: block;
    border: 2px solid var(--ink);
    border-radius: 20px;
    background: white;
    box-shadow: 8px 8px 0 var(--ink);
    transform: rotate(-3deg);
}

.question-sheet strong {
    display: block;
    margin-bottom: 14px;
    color: var(--coral);
    font-size: 26px;
}

.question-sheet span {
    height: 10px;
    margin-top: 9px;
    display: block;
    border-radius: 8px;
    background: #dfe7e4;
}

.question-sheet span:nth-of-type(2) { width: 80%; }
.question-sheet span:nth-of-type(3) { width: 64%; background: var(--mint); }

.review-chart {
    position: relative;
    width: 220px;
    height: 150px;
    margin: 42px auto 0;
    padding: 22px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 13px;
    border: 2px solid var(--ink);
    border-radius: 22px;
    background: white;
    box-shadow: 8px 8px 0 var(--ink);
}

.review-chart span {
    width: 27px;
    border: 2px solid var(--ink);
    border-radius: 7px 7px 0 0;
    background: var(--mint);
}

.review-chart span:nth-child(1) { height: 44px; }
.review-chart span:nth-child(2) { height: 76px; background: var(--yellow); }
.review-chart span:nth-child(3) { height: 100px; background: var(--coral); }

.review-chart i {
    position: absolute;
    top: -20px;
    right: -18px;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border: 2px solid var(--ink);
    border-radius: 50%;
    background: var(--yellow);
    font-size: 28px;
    font-style: normal;
    font-weight: 900;
}

.journey-card h3 {
    margin: auto 0 5px;
    font-size: 26px;
    letter-spacing: -0.04em;
}

.journey-card p {
    margin: 0;
    max-width: 300px;
    font-size: 14px;
}

.journey-card > small {
    position: absolute;
    right: 24px;
    bottom: -13px;
    color: rgba(16, 43, 43, 0.08);
    font-size: 92px;
    font-weight: 950;
    line-height: 1;
}

.quiz-types-section {
    background: var(--ivory);
}

.quiz-types-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(520px, 1.12fr);
    align-items: center;
    gap: 70px;
}

.quiz-types-copy > p {
    max-width: 470px;
    font-size: 16px;
    line-height: 1.8;
}

.quiz-type-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.type-card {
    min-height: 220px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 2px solid var(--ink);
    border-radius: 26px;
    box-shadow: 6px 6px 0 var(--ink);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.type-card:hover {
    transform: translate(3px, 3px);
    box-shadow: 3px 3px 0 var(--ink);
}

.type-card img {
    width: 78px;
    height: 78px;
    object-fit: contain;
}

.type-card h3 {
    margin: 0;
    font-size: 22px;
    letter-spacing: -0.04em;
}

.type-card p {
    margin: 3px 0 0;
    font-size: 12px;
}

.type-red { background: #ffd8d3; }
.type-blue { background: #d7e8ff; }
.type-yellow { background: #fff0ba; }
.type-mint { background: #d7f5ed; }
.type-lavender { background: var(--lavender); }

.type-card-wide {
    min-height: 150px;
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
}

.learning-tools {
    margin-top: 86px;
    padding-top: 56px;
    border-top: 1px solid var(--line);
}

.learning-tools-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 32px;
}

.learning-tools-heading h3 {
    margin: 8px 0 0;
    font-size: 34px;
    line-height: 1.18;
    letter-spacing: -0.05em;
}

.learning-tools-heading > p {
    margin: 0 0 4px;
    max-width: 470px;
    color: var(--muted);
    text-align: right;
    font-size: 14px;
}

.learning-tools-grid {
    margin-top: 32px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.learning-tool-card {
    min-height: 260px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    border: 2px solid var(--ink);
    border-radius: 26px;
    box-shadow: 6px 6px 0 var(--ink);
}

.tool-recall { background: #d7e8ff; }
.tool-mix { background: #fff0ba; }
.tool-review { background: #d7f5ed; }

.learning-tool-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.learning-tool-top small {
    padding: 5px 9px;
    border-radius: 99px;
    color: white;
    background: var(--ink);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.learning-tool-icon {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(16, 43, 43, 0.12);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
}

.learning-tool-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.tool-icon-ink { background: var(--ink); }
.tool-icon-ink img { width: 54px; height: 54px; }

.learning-tool-card h4 {
    margin: auto 0 7px;
    font-size: 25px;
    letter-spacing: -0.045em;
}

.learning-tool-card > p {
    margin: 0;
    color: rgba(16, 43, 43, 0.74);
    font-size: 13px;
    line-height: 1.65;
}

.features-section {
    color: white;
    background: var(--ink);
}

.features-section .section-kicker { color: var(--yellow); }

.bento-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    grid-template-rows: 330px 330px;
    gap: 18px;
}

.bento-card {
    position: relative;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.bento-card h3 {
    margin: 16px 0 10px;
    font-size: 29px;
    line-height: 1.28;
    letter-spacing: -0.045em;
}

.bento-card p {
    margin: 0;
    max-width: 430px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 14px;
}

.feature-label {
    display: inline-flex;
    padding: 6px 10px;
    border: 1px solid currentColor;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 800;
}

.feature-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border: 2px solid currentColor;
    border-radius: 17px;
    font-size: 28px;
    font-weight: 950;
}

.bento-summary {
    grid-row: 1 / 3;
    padding: 42px;
    color: var(--ink);
    background: var(--mint);
}

.bento-summary p { color: rgba(16, 43, 43, 0.72); }

.summary-paper {
    position: absolute;
    left: 50%;
    right: 42px;
    bottom: -42px;
    min-height: 330px;
    padding: 30px;
    border: 2px solid var(--ink);
    border-radius: 26px 26px 0 0;
    background: white;
    box-shadow: 10px 10px 0 rgba(16, 43, 43, 0.9);
    transform: rotate(3deg);
}

.paper-tag {
    padding: 5px 9px;
    border-radius: 8px;
    color: white;
    background: var(--mint-deep);
    font-size: 10px;
    font-weight: 800;
}

.summary-paper > strong {
    margin: 18px 0 12px;
    display: block;
    font-size: 18px;
}

.summary-paper > i {
    width: 100%;
    height: 7px;
    margin-top: 8px;
    display: block;
    border-radius: 8px;
    background: #e5ece9;
}

.summary-paper > i:nth-of-type(2) { width: 84%; }
.summary-paper > i:nth-of-type(3) { width: 64%; }

.summary-paper > div {
    margin-top: 24px;
    padding: 11px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 12px;
    background: #edf8f5;
    font-size: 11px;
}

.summary-paper > div + div { margin-top: 8px; }
.summary-paper b { color: var(--mint-deep); }

.bento-problem {
    padding-left: 115px;
    color: var(--ink);
    background: var(--yellow);
}

.bento-problem .feature-icon {
    position: absolute;
    top: 30px;
    left: 30px;
}

.bento-problem p { color: rgba(16, 43, 43, 0.72); }

.problem-steps {
    margin-top: 28px;
    display: flex;
    align-items: center;
}

.problem-steps span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 2px solid var(--ink);
    border-radius: 50%;
    background: white;
    font-size: 12px;
    font-weight: 900;
}

.problem-steps i {
    width: 42px;
    height: 2px;
    background: var(--ink);
}

.bento-review {
    color: white;
    background: #476ea7;
}

.bento-review .feature-icon {
    position: absolute;
    top: 28px;
    right: 28px;
    color: var(--yellow);
}

.review-bars {
    position: absolute;
    right: 30px;
    bottom: 30px;
    height: 74px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.review-bars span {
    width: 18px;
    border-radius: 5px 5px 0 0;
    background: var(--yellow);
}

.review-bars span:nth-child(1) { height: 24px; }
.review-bars span:nth-child(2) { height: 38px; }
.review-bars span:nth-child(3) { height: 56px; }
.review-bars span:nth-child(4) { height: 74px; background: var(--mint); }

.bento-share {
    grid-column: 1 / 3;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--ink);
    background: #ff9287;
}

.share-code {
    width: 300px;
    padding: 18px 20px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    border: 2px solid var(--ink);
    border-radius: 18px;
    background: white;
    box-shadow: 7px 7px 0 var(--ink);
}

.share-code small { grid-column: 1 / 3; color: #74827e; font-size: 8px; letter-spacing: 0.12em; }
.share-code strong { font-size: 32px; letter-spacing: 0.12em; }
.share-code span { padding: 7px 10px; border-radius: 8px; color: white; background: var(--ink); font-size: 10px; font-weight: 800; }

.preview-section {
    padding-bottom: 100px;
    background: white;
    overflow: hidden;
}

.preview-heading {
    margin-bottom: 48px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
}

.preview-heading > p {
    margin-bottom: 6px;
    text-align: right;
    font-size: 15px;
}

.preview-rail {
    width: min(1500px, 100%);
    margin-inline: auto;
    padding: 10px 32px 32px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 340px);
    justify-content: start;
    align-items: start;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.study-card {
    position: relative;
    min-height: 480px;
    padding: 28px 26px 24px;
    display: flex;
    flex-direction: column;
    border: 2px solid var(--ink);
    border-radius: 28px;
    color: var(--ink);
    box-shadow: 7px 7px 0 var(--ink);
    overflow: hidden;
    scroll-snap-align: center;
}

.study-card::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.18;
    background: repeating-linear-gradient(120deg, transparent 0 28px, white 28px 30px);
    pointer-events: none;
}

.study-card > * { position: relative; z-index: 1; }
.study-card-source { background: var(--yellow); }
.study-card-make { background: #e5f5f1; }
.study-card-save { background: #ff8b7f; }
.study-card-replay { background: var(--mint); }

.study-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.study-card-kicker {
    color: var(--mint-deep);
    font-size: 11px;
    font-weight: 900;
}

.study-card-save .study-card-kicker { color: white; }

.study-card-count {
    padding: 5px 11px;
    border-radius: 99px;
    color: white;
    background: var(--ink);
    font-size: 9px;
    font-weight: 800;
}

.study-card h3 {
    margin: 20px 0 12px;
    font-size: 31px;
    line-height: 1.13;
    letter-spacing: -0.055em;
}

.study-card > p {
    margin: 0;
    color: rgba(16, 43, 43, 0.7);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.55;
}

.study-card-save > p { color: rgba(16, 43, 43, 0.78); }

.study-card-label {
    align-self: flex-start;
    margin-top: 18px;
    padding: 9px 15px;
    border-radius: 99px;
    color: white;
    background: var(--ink);
    font-size: 12px;
    font-weight: 900;
}

.study-visual {
    width: 100%;
    min-height: 184px;
    margin-top: auto;
    padding-top: 26px;
    display: flex;
    align-items: flex-end;
}

.upload-paper,
.type-sheet,
.save-sheet,
.replay-panel {
    border: 1.5px solid rgba(16, 43, 43, 0.2);
    border-radius: 22px;
    background: white;
    box-shadow: 0 16px 34px rgba(16, 43, 43, 0.15);
}

.upload-paper {
    width: 100%;
    min-height: 142px;
    padding: 28px 22px 18px;
}

.upload-paper span {
    display: block;
    width: 78%;
    height: 8px;
    margin-bottom: 12px;
    border-radius: 99px;
    background: var(--ink);
}

.upload-paper span:first-child { width: 55%; background: var(--mint-deep); }
.upload-paper strong {
    display: inline-block;
    margin-top: 6px;
    padding: 7px 11px;
    border-radius: 99px;
    color: var(--ink);
    background: var(--yellow);
    font-size: 9px;
}

.file-chip {
    position: absolute;
    top: 4px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 58px;
    height: 44px;
    border: 2px solid var(--ink);
    border-radius: 13px;
    color: white;
    background: var(--mint-deep);
    box-shadow: 3px 3px 0 var(--ink);
    font-size: 10px;
    font-weight: 900;
    transform: rotate(-8deg);
}

.file-chip-photo { left: 12px; }
.file-chip-pdf { right: 12px; transform: rotate(8deg); background: var(--coral); }

.type-sheet {
    width: 100%;
    padding: 18px;
}

.type-sheet small {
    display: block;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 850;
}

.type-sheet > div {
    display: grid;
    grid-template-columns: 25px 1fr;
    align-items: center;
    gap: 9px;
    padding: 7px 9px;
    border-top: 1px solid var(--line);
}

.type-sheet span {
    display: grid;
    place-items: center;
    width: 23px;
    height: 23px;
    border-radius: 8px;
    color: white;
    background: var(--mint-deep);
    font-size: 9px;
    font-weight: 900;
}

.type-sheet div:nth-of-type(2) span { background: var(--coral); }
.type-sheet div:nth-of-type(3) span { color: var(--ink); background: var(--yellow); }
.type-sheet div:nth-of-type(4) span { background: var(--sky); }
.type-sheet strong { font-size: 11px; }

.save-sheet {
    width: 100%;
    padding: 20px;
}

.save-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.save-sheet-head strong { font-size: 13px; }
.save-sheet-head span {
    padding: 3px 8px;
    border-radius: 99px;
    color: white;
    background: var(--ink);
    font-size: 9px;
    font-weight: 900;
}

.save-row {
    display: grid;
    grid-template-columns: 10px 1fr auto;
    align-items: center;
    gap: 9px;
    padding: 10px 0;
    border-top: 1px solid var(--line);
}

.save-row i { width: 9px; height: 9px; border-radius: 50%; background: var(--mint-deep); }
.save-row:nth-child(3) i { background: var(--coral); }
.save-row:nth-child(4) i { background: var(--yellow); }
.save-row > span { height: 7px; border-radius: 99px; background: #d9e3e0; }
.save-row b { color: var(--mint-deep); font-size: 9px; }

.replay-panel {
    width: 100%;
    padding: 20px;
}

.replay-panel small { display: block; color: var(--mint-deep); font-size: 9px; font-weight: 900; }
.replay-panel > strong { display: block; margin: 7px 0 17px; font-size: 15px; }
.replay-panel > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.replay-panel span { color: var(--muted); font-size: 9px; }
.replay-panel b { padding: 6px 9px; border-radius: 99px; color: white; background: var(--mint-deep); font-size: 8px; }

.download-section {
    padding: 36px 0 126px;
    background: white;
}

.download-card {
    position: relative;
    min-height: 300px;
    padding: 48px 54px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 32px;
    border: 2px solid var(--ink);
    border-radius: 38px;
    background: var(--yellow);
    box-shadow: 10px 10px 0 var(--ink);
    overflow: hidden;
}

.download-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.13;
    background: repeating-linear-gradient(120deg, transparent 0 22px, var(--ink) 22px 24px);
}

.download-card > *:not(.download-pattern) {
    position: relative;
    z-index: 1;
}

.download-icon {
    width: 114px;
    height: 114px;
    border: 3px solid var(--ink);
    border-radius: 29px;
    box-shadow: 7px 7px 0 var(--ink);
}

.download-copy p {
    margin: 0 0 3px;
    font-size: 14px;
    font-weight: 900;
}

.download-copy h2 {
    font-size: clamp(36px, 4vw, 54px);
}

.download-copy span {
    margin-top: 10px;
    display: block;
    color: rgba(16, 43, 43, 0.7);
    font-size: 14px;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-section {
    background: var(--ivory);
}

.faq-layout {
    display: grid;
    grid-template-columns: 0.72fr 1.28fr;
    gap: 80px;
}

.faq-title > p { font-size: 15px; }

.faq-list details {
    border-top: 1px solid var(--line);
}

.faq-list details:last-child {
    border-bottom: 1px solid var(--line);
}

.faq-list summary {
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    cursor: pointer;
    list-style: none;
    font-size: 17px;
    font-weight: 800;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary span {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: white;
    transition: transform 180ms ease;
}

.faq-list details[open] summary span { transform: rotate(45deg); }

.faq-list details p {
    margin: -5px 0 24px;
    padding-right: 54px;
    color: var(--muted);
    font-size: 14px;
}

.site-footer {
    padding: 50px 0;
    color: white;
    background: var(--ink);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 28px;
}

.footer-brand .brand img { border-color: white; }
.footer-brand p { margin: 9px 0 0; color: rgba(255, 255, 255, 0.6); font-size: 12px; }

.footer-links {
    display: flex;
    gap: 24px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    font-weight: 700;
}

.copyright {
    grid-column: 1 / 3;
    margin: 18px 0 0;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.45);
    font-size: 11px;
}

.js [data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 620ms ease, transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1050px) {
    .desktop-nav { gap: 18px; }

    .hero-grid {
        grid-template-columns: minmax(0, 0.9fr) minmax(390px, 1.1fr);
        gap: 10px;
    }

    .hero-visual { transform: scale(0.9); }
    .source-card { left: -5px; }
    .result-card { right: 0; }

    .quiz-types-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .quiz-types-copy { max-width: 700px; }

    .learning-tools { margin-top: 72px; }

    .bento-summary { padding: 34px; }
    .summary-paper { left: 47%; right: 28px; }

    .download-card {
        grid-template-columns: auto 1fr;
    }

    .download-buttons {
        grid-column: 1 / 3;
        flex-direction: row;
        margin-left: 146px;
    }
}

@media (max-width: 820px) {
    .container,
    .header-inner {
        width: min(calc(100% - 32px), var(--container));
    }

    .site-header { padding: 10px 0; }
    .header-inner { min-height: 54px; gap: 10px; }
    .desktop-nav { display: none; }
    .language-picker { margin-left: auto; }
    .menu-toggle { margin-left: 0; display: grid; }

    .mobile-nav {
        position: fixed;
        top: 82px;
        left: 16px;
        right: 16px;
        padding: 18px;
        display: flex;
        flex-direction: column;
        gap: 4px;
        border: 2px solid var(--ink);
        border-radius: 22px;
        background: white;
        box-shadow: 7px 7px 0 var(--ink);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 160ms ease, visibility 160ms ease, transform 160ms ease;
    }

    .mobile-nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .mobile-nav a {
        padding: 12px;
        border-radius: 11px;
        font-weight: 800;
    }

    .mobile-nav a:hover { background: #f2f5f4; }

    .section { padding: 92px 0; }

    .hero {
        padding-top: 130px;
        min-height: auto;
    }

    .hero-grid {
        display: flex;
        flex-direction: column;
        gap: 28px;
    }

    .hero-copy { text-align: center; }
    .eyebrow { font-size: 11px; }

    .hero h1 {
        margin-inline: auto;
        font-size: clamp(43px, 11vw, 62px);
    }

    .hero-description {
        margin-inline: auto;
        font-size: 16px;
    }

    .hero-actions,
    .hero-tags {
        justify-content: center;
    }

    .hero-visual {
        width: 100%;
        height: 600px;
        transform: none;
    }

    .hero-visual::before { width: 500px; height: 500px; }
    .source-card { left: calc(50% - 300px); }
    .result-card { right: calc(50% - 300px); }

    .capability-strip {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    }

    .capability-strip div {
        padding: 14px;
        border-bottom: 1px solid var(--line);
    }

    .capability-strip div:nth-child(2) { border-right: 0; }
    .capability-strip div:nth-child(3) { border-bottom: 0; }
    .capability-strip div:nth-child(4) { border: 0; }

    .journey-grid { grid-template-columns: 1fr; }
    .journey-card { min-height: 390px; }
    .journey-illustration { height: 200px; }

    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .bento-card { min-height: 330px; }
    .bento-summary { grid-row: auto; min-height: 600px; }
    .bento-problem { padding-left: 115px; }
    .bento-share { grid-column: auto; }

    .preview-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .preview-heading > p { text-align: left; }
    .preview-rail {
        grid-auto-columns: minmax(280px, 340px);
        justify-content: start;
    }

    .download-card {
        padding: 42px;
        grid-template-columns: auto 1fr;
    }

    .download-buttons {
        margin-left: 0;
    }

    .faq-layout {
        grid-template-columns: 1fr;
        gap: 45px;
    }
}

@media (max-width: 560px) {
    .container,
    .header-inner {
        width: min(calc(100% - 24px), var(--container));
    }

    .brand span { font-size: 19px; }
    .brand img { width: 39px; height: 39px; }
    .language-picker select { min-width: 82px; width: 82px; padding-left: 9px; padding-right: 23px; font-size: 11px; }
    .language-picker::after { right: 9px; }
    .desktop-only { display: none; }
    .section { padding: 76px 0; }

    .hero { padding: 116px 0 26px; }
    .hero h1 { font-size: clamp(39px, 11.5vw, 54px); line-height: 1.13; }
    .hero h1 em::after { height: 13px; bottom: 4px; }
    .hero-description { margin-top: 22px; font-size: 15px; }
    .hero-actions { margin-top: 28px; gap: 8px; }
    .store-badge img { height: 46px; }
    .store-badge img[src*="play.google.com/intl/en_us/badges/"] {
        height: 66px;
        margin: -10px -7.5px;
    }
    .store-badge img[src*="play.google.com/intl/ja/badges/"] {
        height: 60px;
        margin: -7px 0;
    }
    .text-link { width: 100%; margin: 6px 0 0; }
    .hero-tags { margin-top: 20px; }

    .hero-visual {
        height: 530px;
        transform: scale(0.84);
        transform-origin: top center;
        margin-bottom: -78px;
    }

    .hero-visual::before { width: 440px; height: 440px; }
    .visual-sun { right: -22px; }
    .source-card { left: calc(50% - 258px); top: 88px; }
    .result-card { right: calc(50% - 258px); bottom: 74px; }

    .capability-strip {
        margin-top: 6px;
        padding: 8px 14px;
        box-shadow: 5px 5px 0 var(--ink);
    }

    .capability-strip div { padding: 12px 8px; }
    .capability-strip strong { font-size: 12px; }
    .capability-strip span { font-size: 10px; }

    .section-heading { margin-bottom: 40px; }
    .section-heading h2,
    .quiz-types-copy h2,
    .preview-heading h2,
    .faq-title h2 {
        font-size: 36px;
    }

    .section-heading > p:last-child { font-size: 15px; }
    .journey-card { padding: 24px; border-radius: 26px; box-shadow: 5px 5px 0 var(--ink); }
    .journey-card > small { font-size: 76px; }

    .quiz-types-layout { gap: 36px; }
    .quiz-type-grid { gap: 10px; }
    .type-card { min-height: 190px; padding: 18px; border-radius: 21px; box-shadow: 4px 4px 0 var(--ink); }
    .type-card img { width: 62px; height: 62px; }
    .type-card h3 { font-size: 19px; }
    .type-card p { font-size: 10px; }
    .learning-tools-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .learning-tools-heading > p { text-align: left; }
    .learning-tools-grid { grid-template-columns: 1fr; }
    .learning-tool-card { min-height: 220px; }

    .bento-card { padding: 25px; border-radius: 26px; }
    .bento-card h3 { font-size: 25px; }
    .bento-summary { min-height: 610px; }
    .summary-paper { left: 24px; right: 24px; bottom: -55px; min-height: 320px; }
    .bento-problem { padding-top: 100px; padding-left: 25px; }
    .bento-problem .feature-icon { top: 25px; left: 25px; }
    .bento-share { align-items: flex-start; flex-direction: column; gap: 28px; }
    .share-code { width: 100%; }

    .preview-rail {
        padding-inline: 18px;
        grid-auto-columns: 82vw;
    }

    .download-section { padding-bottom: 86px; }
    .download-card {
        padding: 34px 24px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        border-radius: 28px;
        box-shadow: 6px 6px 0 var(--ink);
    }

    .download-icon { width: 88px; height: 88px; border-radius: 23px; }
    .download-copy h2 { font-size: 36px; }
    .download-buttons { flex-direction: row; flex-wrap: wrap; }

    .faq-list summary { font-size: 15px; }
    .faq-list details p { padding-right: 0; }

    .footer-inner { grid-template-columns: 1fr; }
    .footer-links { flex-wrap: wrap; }
    .copyright { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .js [data-reveal] {
        opacity: 1;
        transform: none;
    }
}
