@charset "UTF-8";

:root {
    color-scheme: light dark;
    --paper: #f7f2ea;
    --paper-deep: #eee5d8;
    --surface: rgba(255, 253, 249, 0.78);
    --surface-solid: #fffdf9;
    --ink: #211d1a;
    --muted: #706762;
    --faint: #a69b94;
    --line: rgba(55, 43, 36, 0.12);
    --coral: #c84c3a;
    --coral-soft: rgba(200, 76, 58, 0.12);
    --teal: #268b83;
    --teal-soft: rgba(38, 139, 131, 0.12);
    --indigo: #5f63a9;
    --shadow: 0 28px 80px rgba(74, 51, 38, 0.14);
    --shell: 1140px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --paper: #151311;
        --paper-deep: #1d1a17;
        --surface: rgba(34, 30, 27, 0.8);
        --surface-solid: #211e1b;
        --ink: #f5eee8;
        --muted: #b7aca5;
        --faint: #7f756f;
        --line: rgba(255, 241, 231, 0.11);
        --coral: #ef725f;
        --coral-soft: rgba(239, 114, 95, 0.15);
        --teal: #54bbb2;
        --teal-soft: rgba(84, 187, 178, 0.14);
        --indigo: #9295d4;
        --shadow: 0 32px 100px rgba(0, 0, 0, 0.42);
    }
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 82% 11%, var(--teal-soft), transparent 24rem),
        radial-gradient(circle at 12% 34%, var(--coral-soft), transparent 28rem),
        var(--paper);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    content: "";
    pointer-events: none;
    opacity: 0.28;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.055'/%3E%3C/svg%3E");
}

a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--coral);
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid transparent;
    background: color-mix(in srgb, var(--paper) 84%, transparent);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    backdrop-filter: blur(18px) saturate(1.4);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 82px;
    border-bottom: 1px solid var(--line);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    font-size: 1.06rem;
    font-weight: 750;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.brand:hover {
    color: var(--ink);
}

.brand img {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    box-shadow: 0 7px 18px rgba(71, 39, 26, 0.16);
}

nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

nav a {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

nav a[aria-current="page"] {
    color: var(--coral);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(390px, 0.86fr);
    gap: clamp(48px, 8vw, 110px);
    align-items: center;
    min-height: calc(100svh - 82px);
    padding-block: 80px 100px;
}

.hero-copy {
    position: relative;
    z-index: 2;
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--coral);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.17em;
    line-height: 1.3;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    text-wrap: pretty;
}

h1,
h2,
h3 {
    margin-top: 0;
    color: var(--ink);
    font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: -0.045em;
    line-height: 1.08;
}

.hero h1 {
    max-width: 700px;
    margin-bottom: 28px;
    font-size: clamp(3.6rem, 7.2vw, 6.7rem);
    font-weight: 800;
}

.hero-summary {
    max-width: 610px;
    margin: 0 0 32px;
    color: var(--muted);
    font-size: clamp(1.08rem, 1.9vw, 1.28rem);
    line-height: 1.65;
}

.availability {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 13px 19px;
    border: 1px solid var(--line);
    border-radius: 100px;
    background: var(--surface-solid);
    box-shadow: 0 12px 32px rgba(78, 53, 39, 0.08);
    color: var(--muted);
    font-size: 0.92rem;
}

.availability strong {
    color: var(--ink);
}

.apple-mark {
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border-radius: 8px;
    background: linear-gradient(145deg, var(--coral), #e29b59);
    color: transparent;
}

.apple-mark::before {
    content: "説明";
    color: white;
    font-size: 7px;
    font-weight: 800;
}

.trust-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 24px;
    margin: 30px 0 0;
    padding: 0;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 650;
    list-style: none;
}

.trust-list li::before {
    margin-right: 8px;
    color: var(--teal);
    content: "✓";
    font-weight: 900;
}

.app-preview {
    position: relative;
    display: grid;
    justify-items: center;
    perspective: 1600px;
}

.phone-frame {
    position: relative;
    width: min(100%, 390px);
    padding: 10px;
    border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent);
    border-radius: 56px;
    background: color-mix(in srgb, var(--ink) 88%, #77675e);
    box-shadow: var(--shadow);
    transform: rotate(2.25deg);
    animation: phone-float 7s ease-in-out infinite;
}

.phone-frame::before {
    position: absolute;
    top: 18px;
    left: 50%;
    z-index: 5;
    width: 104px;
    height: 28px;
    border-radius: 20px;
    background: #090807;
    content: "";
    transform: translateX(-50%);
}

.phone-screen {
    min-height: 720px;
    overflow: hidden;
    border-radius: 47px;
    background:
        radial-gradient(circle at 18% 10%, var(--coral-soft), transparent 15rem),
        var(--paper);
}

.screen-toolbar {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 66px;
    padding: 13px 23px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.7rem;
    font-weight: 700;
}

.toolbar-title {
    padding-top: 19px;
    font-size: 0.82rem;
}

.toolbar-icons {
    justify-self: end;
    padding-top: 19px;
    color: var(--muted);
    letter-spacing: 2px;
}

.screen-content {
    padding: 20px 16px 24px;
}

.screen-eyebrow {
    display: flex;
    justify-content: space-between;
    margin: 0 2px 10px;
    color: var(--coral);
    font-size: 0.61rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.screen-eyebrow span {
    padding: 3px 8px;
    border-radius: 100px;
    background: var(--coral-soft);
    letter-spacing: 0;
}

.japanese-sentence {
    margin: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface-solid);
    font-size: 1.09rem;
    font-weight: 650;
    line-height: 2.1;
}

.no-break {
    white-space: nowrap;
}

.highlight {
    padding: 3px 1px;
    border-radius: 3px;
    color: inherit;
    font-weight: 800;
}

.highlight.coral {
    background: var(--coral-soft);
    box-shadow: inset 0 -2px var(--coral);
}

.highlight.teal {
    background: var(--teal-soft);
    box-shadow: inset 0 -2px var(--teal);
}

.grammar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 11px 2px 16px;
    font-size: 0.62rem;
    font-weight: 700;
}

.grammar-tags span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    border-radius: 100px;
    background: var(--surface-solid);
}

.coral-dot,
.teal-dot {
    display: inline-grid;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    color: white;
    font-size: 0.56rem;
    font-style: normal;
    font-weight: 800;
}

.coral-dot { background: var(--coral); }
.teal-dot { background: var(--teal); }

.translation-card,
.lesson-card {
    margin-bottom: 13px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface-solid);
}

.translation-card small,
.lesson-heading small {
    display: block;
    color: var(--muted);
    font-size: 0.58rem;
    font-weight: 750;
    letter-spacing: 0.07em;
}

.translation-card p {
    margin: 8px 0 9px;
    font-size: 0.83rem;
    font-weight: 650;
    line-height: 1.45;
}

.translation-card span {
    color: var(--teal);
    font-size: 0.57rem;
    font-weight: 700;
}

.lesson-card {
    border-left: 4px solid var(--coral);
}

.lesson-heading {
    display: flex;
    align-items: flex-start;
    gap: 9px;
}

.lesson-heading strong {
    display: block;
    font-size: 0.82rem;
}

.lesson-card > p {
    margin: 12px 0;
    font-size: 0.71rem;
    line-height: 1.5;
}

.lesson-detail {
    padding: 10px;
    border-radius: 10px;
    background: var(--coral-soft);
    font-size: 0.62rem;
    line-height: 1.5;
}

.preview-orbit {
    position: absolute;
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface-solid);
    box-shadow: 0 18px 45px rgba(65, 43, 32, 0.15);
    color: var(--coral);
    font-family: ui-rounded, "SF Pro Rounded", sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
}

.orbit-one {
    top: 14%;
    right: -36px;
    transform: rotate(9deg);
}

.orbit-two {
    bottom: 15%;
    left: -40px;
    color: var(--teal);
    transform: rotate(-10deg);
}

@keyframes phone-float {
    0%, 100% { transform: rotate(2.25deg) translateY(0); }
    50% { transform: rotate(1.1deg) translateY(-10px); }
}

.intro {
    max-width: 820px;
    padding-block: 140px;
    text-align: center;
}

.intro h2,
.closing h2 {
    margin-bottom: 24px;
    font-size: clamp(2.5rem, 6vw, 5rem);
}

.intro > p:last-child {
    max-width: 700px;
    margin: 0 auto;
    color: var(--muted);
    font-size: clamp(1.08rem, 2vw, 1.3rem);
}

.features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding-bottom: 130px;
}

.feature-card {
    position: relative;
    min-height: 360px;
    overflow: hidden;
    padding: clamp(26px, 4vw, 44px);
    border: 1px solid var(--line);
    border-radius: 32px;
    background: var(--surface);
    box-shadow: 0 18px 55px rgba(73, 50, 37, 0.06);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.feature-card::after {
    position: absolute;
    right: -90px;
    bottom: -120px;
    width: 270px;
    height: 270px;
    border-radius: 50%;
    background: var(--coral-soft);
    content: "";
    filter: blur(2px);
}

.feature-card:nth-child(3)::after,
.privacy-card::after {
    background: var(--teal-soft);
}

.feature-wide {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 55px;
    align-items: center;
    min-height: 420px;
}

.feature-number {
    position: relative;
    z-index: 2;
    display: inline-block;
    margin-bottom: 46px;
    color: var(--coral);
    font-family: ui-monospace, "SFMono-Regular", monospace;
    font-size: 0.76rem;
    font-weight: 750;
    letter-spacing: 0.1em;
}

.feature-card h3 {
    position: relative;
    z-index: 2;
    margin-bottom: 18px;
    font-size: clamp(1.8rem, 3.4vw, 2.65rem);
}

.feature-card p {
    position: relative;
    z-index: 2;
    max-width: 560px;
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.context-demo {
    position: relative;
    z-index: 2;
    padding: clamp(24px, 4vw, 44px);
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface-solid);
    box-shadow: 0 20px 55px rgba(59, 39, 29, 0.09);
    font-size: clamp(1.35rem, 3vw, 2.15rem);
    font-weight: 700;
    line-height: 1.85;
}

.context-demo mark {
    padding: 4px 2px;
    border-radius: 5px;
    background: var(--teal-soft);
    color: var(--ink);
    box-shadow: inset 0 -3px var(--teal);
}

.mini-lesson,
.reading-row,
.study-icons {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 34px;
}

.mini-lesson span {
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 100px;
    background: var(--surface-solid);
    color: var(--muted);
    font-size: 0.73rem;
    font-weight: 700;
}

.reading-row span {
    display: grid;
    min-width: 88px;
    padding: 11px 13px;
    border-radius: 14px;
    background: var(--teal-soft);
}

.reading-row b {
    font-size: 0.9rem;
}

.reading-row small {
    color: var(--muted);
    font-size: 0.63rem;
}

.study-icons span {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--surface-solid);
    color: var(--indigo);
    font-size: 1.35rem;
    font-weight: 700;
}

.text-link {
    position: relative;
    z-index: 2;
    display: inline-block;
    margin-top: 28px;
    color: var(--coral);
    font-size: 0.9rem;
    font-weight: 750;
    text-decoration: none;
}

.closing {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 60px;
    align-items: center;
    padding-block: 100px 150px;
}

.closing h2 {
    max-width: 760px;
    margin-bottom: 0;
}

.closing-mark {
    display: grid;
    width: clamp(150px, 18vw, 220px);
    aspect-ratio: 1;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 34%;
    background: linear-gradient(145deg, var(--coral), #dc7950);
    box-shadow: var(--shadow);
    color: white;
    font-family: ui-rounded, "SF Pro Rounded", sans-serif;
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 800;
    transform: rotate(5deg);
}

.site-footer {
    border-top: 1px solid var(--line);
    background: color-mix(in srgb, var(--paper-deep) 70%, transparent);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 28px;
    align-items: start;
    padding-block: 55px;
    color: var(--muted);
    font-size: 0.86rem;
}

.footer-inner strong {
    color: var(--ink);
    font-size: 1rem;
}

.footer-inner p {
    margin: 4px 0 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.footer-links a {
    text-decoration: none;
}

.copyright {
    grid-column: 1 / -1;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: var(--faint);
}

/* Legal and support pages */
.legal {
    max-width: 820px;
    padding-block: clamp(85px, 12vw, 150px);
}

.legal > h1 {
    margin-bottom: 20px;
    font-size: clamp(3.2rem, 8vw, 6.5rem);
}

.legal-date {
    margin: 0 0 42px;
    color: var(--faint);
    font-size: 0.9rem;
    font-weight: 600;
}

.legal-lead {
    margin: 0 0 80px;
    color: var(--muted);
    font-size: clamp(1.2rem, 2.6vw, 1.55rem);
    line-height: 1.55;
}

.legal section {
    padding-block: 35px;
    border-top: 1px solid var(--line);
}

.legal section:last-child {
    border-bottom: 1px solid var(--line);
}

.legal h2 {
    margin-bottom: 18px;
    font-size: clamp(1.55rem, 3vw, 2.1rem);
    letter-spacing: -0.03em;
}

.legal section p,
.legal li {
    color: var(--muted);
}

.legal section p {
    margin: 0 0 17px;
}

.legal section p:last-child {
    margin-bottom: 0;
}

.legal ul {
    margin: 0 0 20px;
    padding-left: 1.35em;
}

.legal a:not(.primary-button) {
    color: var(--coral);
}

.primary-button {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    margin-top: -40px;
    margin-bottom: 90px;
    padding: 14px 22px;
    border-radius: 100px;
    background: var(--coral);
    box-shadow: 0 12px 30px var(--coral-soft);
    color: white;
    font-weight: 750;
    text-decoration: none;
}

.primary-button:hover {
    background: color-mix(in srgb, var(--coral) 86%, black);
    color: white;
}

.faq-section {
    padding-top: 55px !important;
}

.faq-section > .eyebrow {
    margin-bottom: 38px;
}

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

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

.faq-section summary {
    padding: 24px 36px 24px 0;
    cursor: pointer;
    color: var(--ink);
    font-family: ui-rounded, "SF Pro Rounded", sans-serif;
    font-size: 1.08rem;
    font-weight: 750;
    line-height: 1.35;
}

.faq-section details p {
    max-width: 700px;
    padding: 0 20px 25px 0;
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 80px;
        text-align: center;
    }

    .hero-copy {
        display: grid;
        justify-items: center;
    }

    .hero h1 {
        max-width: 760px;
    }

    .trust-list {
        justify-content: center;
    }

    .app-preview {
        width: min(100%, 520px);
        margin: 35px auto 0;
    }

    .feature-wide {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 680px) {
    .shell {
        width: min(calc(100% - 32px), var(--shell));
    }

    .header-inner {
        min-height: 70px;
    }

    .brand img {
        width: 36px;
        height: 36px;
        border-radius: 9px;
    }

    nav {
        gap: 15px;
    }

    nav a {
        font-size: 0.78rem;
    }

    nav a:first-child {
        display: none;
    }

    .hero {
        padding-block: 62px 70px;
    }

    .hero h1 {
        font-size: clamp(3rem, 15vw, 4.3rem);
    }

    .hero-summary {
        font-size: 1.05rem;
    }

    .availability {
        font-size: 0.82rem;
    }

    .phone-frame {
        width: min(92%, 370px);
        border-radius: 50px;
    }

    .phone-screen {
        min-height: 660px;
        border-radius: 42px;
    }

    .orbit-one {
        right: -2px;
    }

    .orbit-two {
        left: -2px;
    }

    .intro {
        padding-block: 100px;
    }

    .features {
        grid-template-columns: 1fr;
        padding-bottom: 80px;
    }

    .feature-wide {
        grid-column: auto;
    }

    .feature-card {
        min-height: 340px;
        border-radius: 25px;
    }

    .feature-number {
        margin-bottom: 38px;
    }

    .closing {
        grid-template-columns: 1fr;
        justify-items: center;
        padding-block: 80px 110px;
        text-align: center;
    }

    .closing-mark {
        width: 145px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .legal {
        padding-block: 72px 95px;
    }

    .legal > h1 {
        font-size: clamp(3rem, 15vw, 4.5rem);
    }

    .legal-lead {
        margin-bottom: 60px;
    }

    .primary-button {
        margin-bottom: 70px;
    }
}

@media (max-width: 390px) {
    .brand span {
        display: none;
    }

    .preview-orbit {
        width: 54px;
        height: 54px;
        border-radius: 17px;
    }
}

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

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