/* ============================================================
   WEB CRAFT  |  style.css
   Design: Editorial Craft — Off-white × Slate Blue × Warm Ink
   ============================================================ */

/* ----------------------------------------------------------
   1. Tokens
   ---------------------------------------------------------- */
:root {
    --ink: #1c1c1e;
    --ink-2: #3a3a3c;
    --ink-3: #6c6c6e;
    --ink-4: #aeaeb2;

    --paper: #f9f7f4;
    --paper-2: #f2efe9;
    --paper-3: #e8e3da;

    --accent: #1a3a4a;
    --accent-mid: #2c5f78;
    --accent-light: #e4eef3;

    --rule: rgba(28, 28, 30, 0.1);
    --rule-mid: rgba(28, 28, 30, 0.18);

    --font-serif: 'Shippori Mincho', 'Noto Serif JP', serif;
    --font-sans: 'Noto Sans JP', 'Hiragino Sans', sans-serif;

    --sp-1: 4px;
    --sp-2: 8px;
    --sp-3: 12px;
    --sp-4: 16px;
    --sp-5: 20px;
    --sp-6: 24px;
    --sp-8: 32px;
    --sp-10: 40px;
    --sp-12: 48px;
    --sp-16: 64px;
    --sp-20: 80px;
    --sp-24: 96px;

    --max: 1080px;
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ----------------------------------------------------------
   2. Reset
   ---------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

ul,
ol {
    list-style: none;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ----------------------------------------------------------
   3. Typography system
   ---------------------------------------------------------- */
.t-serif {
    font-family: var(--font-serif);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-3);
}

/* ----------------------------------------------------------
   4. Layout
   ---------------------------------------------------------- */
.wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--sp-8);
}

.wrap-sm {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 var(--sp-8);
}

section {
    padding: var(--sp-24) 0;
}

/* ----------------------------------------------------------
   5. Navigation
   ---------------------------------------------------------- */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: var(--sp-5) 0;
    transition: background 0.4s var(--ease), border-color 0.4s;
    border-bottom: 1px solid transparent;
}

.site-nav.is-scrolled {
    background: rgba(249, 247, 244, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-color: var(--rule);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--sp-8);
}

.nav-logo {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--ink);
}

.nav-logo span {
    color: var(--accent);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    height: 40px;
    padding: 0 var(--sp-5);
    background: var(--accent);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    border-radius: 2px;
    transition: background 0.2s;
}

.nav-cta:hover {
    background: var(--accent-mid);
}

/* ----------------------------------------------------------
   6. Hero
   ---------------------------------------------------------- */
.hero {
    padding: 160px 0 var(--sp-24);
    position: relative;
    overflow: hidden;
}

/* 背景：薄い斜めライン */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    background: var(--paper-2);
    clip-path: polygon(12% 0, 100% 0, 100% 100%, 0% 100%);
    pointer-events: none;
}

.hero-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--sp-8);
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-16);
    align-items: center;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-3);
    margin-bottom: var(--sp-6);
}

.hero-label::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--accent);
}

.hero-h1 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.01em;
    color: var(--ink);
    margin-bottom: var(--sp-6);
}

.hero-h1 em {
    font-style: normal;
    color: var(--accent);
    position: relative;
}

.hero-h1 em::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    right: 0;
    height: 2px;
    background: var(--accent);
    opacity: 0.35;
}

.hero-lead {
    font-size: 1rem;
    color: var(--ink-2);
    line-height: 1.9;
    margin-bottom: var(--sp-10);
    max-width: 460px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: var(--sp-5);
    flex-wrap: wrap;
}

.hero-note {
    font-size: 0.75rem;
    color: var(--ink-4);
    letter-spacing: 0.04em;
}

/* Hero right: stat panel */
.hero-panel {
    display: grid;
    gap: 1px;
    background: var(--rule-mid);
    border: 1px solid var(--rule-mid);
}

.hero-panel-item {
    background: var(--paper);
    padding: var(--sp-6) var(--sp-8);
}

.hero-panel-item:first-child {
    padding-top: var(--sp-8);
}

.hero-panel-item:last-child {
    padding-bottom: var(--sp-8);
}

.panel-num {
    font-family: var(--font-serif);
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--accent);
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: var(--sp-1);
}

.panel-desc {
    font-size: 0.82rem;
    color: var(--ink-3);
    line-height: 1.6;
}

/* ----------------------------------------------------------
   7. Buttons
   ---------------------------------------------------------- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-3);
    height: 52px;
    padding: 0 var(--sp-8);
    background: var(--accent);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    border-radius: 2px;
    transition: background 0.2s, transform 0.2s var(--ease-out);
}

.btn-primary:hover {
    background: var(--accent-mid);
    transform: translateY(-1px);
}

.btn-primary svg {
    flex-shrink: 0;
}

.btn-text {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink-2);
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--rule-mid);
    padding-bottom: 2px;
    transition: color 0.2s, border-color 0.2s;
}

.btn-line {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    height: 52px;
    padding: 0 var(--sp-8);
    background: #2f7f6e;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    border-radius: 2px;
    transition: opacity 0.2s, transform 0.2s var(--ease-out);
}

.btn-line:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-line-icon {
    flex-shrink: 0;
    margin-right: 4px;
}

/* ----------------------------------------------------------
   8. Section header
   ---------------------------------------------------------- */
.sec-head {
    margin-bottom: var(--sp-16);
}

.sec-head.center {
    text-align: center;
}

.sec-num {
    font-family: var(--font-serif);
    font-size: 0.72rem;
    color: var(--ink-4);
    letter-spacing: 0.16em;
    margin-bottom: var(--sp-3);
}

.sec-title {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 600;
    line-height: 1.4;
    color: var(--ink);
    letter-spacing: 0.01em;
}

.sec-sub {
    margin-top: var(--sp-4);
    font-size: 0.92rem;
    color: var(--ink-3);
    line-height: 1.85;
    max-width: 520px;
}

.sec-head.center .sec-sub {
    margin-left: auto;
    margin-right: auto;
}

/* ----------------------------------------------------------
   9. Problem section
   ---------------------------------------------------------- */
.problem-section {
    background: var(--ink);
    color: var(--paper);
    padding: var(--sp-24) 0;
}

.problem-section .sec-title {
    color: #f9f7f4;
}

.problem-section .sec-num {
    color: rgba(249, 247, 244, 0.35);
}

.problem-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin-top: var(--sp-12);
}

.problem-item {
    background: var(--ink);
    padding: var(--sp-10) var(--sp-8);
    position: relative;
}

.problem-item::before {
    content: attr(data-n);
    position: absolute;
    top: var(--sp-8);
    right: var(--sp-8);
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.05);
    line-height: 1;
    letter-spacing: -0.04em;
}

.problem-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    margin-bottom: var(--sp-5);
    color: rgba(249, 247, 244, 0.6);
}

.problem-h {
    font-size: 1rem;
    font-weight: 700;
    color: var(--paper);
    margin-bottom: var(--sp-3);
    line-height: 1.5;
}

.problem-p {
    font-size: 0.84rem;
    color: rgba(249, 247, 244, 0.55);
    line-height: 1.85;
}

/* ----------------------------------------------------------
   10. Solution section
   ---------------------------------------------------------- */
.solution-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-16) var(--sp-12);
}

.solution-item {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 0 var(--sp-5);
}

.sol-line {
    padding-top: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.sol-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

.sol-rule {
    width: 1px;
    flex: 1;
    background: var(--rule);
    margin-top: var(--sp-2);
}


.sol-num {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--accent);
    margin-bottom: var(--sp-2);
}

.sol-h {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: var(--sp-3);
    line-height: 1.5;
}

.sol-p {
    font-size: 0.86rem;
    color: var(--ink-3);
    line-height: 1.85;
}

/* ----------------------------------------------------------
   11. Service section
   ---------------------------------------------------------- */
.service-section {
    background: var(--paper-2);
}

.plan-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--rule-mid);
    border: 1px solid var(--rule-mid);
    margin-top: var(--sp-12);
}

.plan-card {
    background: var(--paper);
    padding: var(--sp-10) var(--sp-10);
    position: relative;
}

.plan-card.is-featured {
    background: var(--accent);
    color: #fff;
}

.plan-badge {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 3px 8px;
    border: 1px solid var(--rule-mid);
    border-radius: 1px;
    color: var(--ink-3);
    margin-bottom: var(--sp-5);
}

.plan-card.is-featured .plan-badge {
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
}

.plan-name {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: var(--sp-2);
    color: var(--ink);
}

.plan-card.is-featured .plan-name {
    color: #fff;
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: var(--sp-1);
    margin-bottom: var(--sp-6);
}

.plan-amount {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1;
}

.plan-card.is-featured .plan-amount {
    color: #fff;
}

.plan-unit {
    font-size: 0.8rem;
    color: var(--ink-3);
}

.plan-card.is-featured .plan-unit {
    color: rgba(255, 255, 255, 0.6);
}

.plan-note {
    font-size: 0.76rem;
    color: var(--ink-4);
    margin-bottom: var(--sp-6);
    line-height: 1.7;
}

.plan-card.is-featured .plan-note {
    color: rgba(255, 255, 255, 0.55);
}

.plan-divider {
    height: 1px;
    background: var(--rule);
    margin-bottom: var(--sp-6);
}

.plan-card.is-featured .plan-divider {
    background: rgba(255, 255, 255, 0.15);
}

.plan-features {
    display: grid;
    gap: var(--sp-3);
}

.plan-feature {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-3);
    font-size: 0.84rem;
    color: var(--ink-2);
    line-height: 1.6;
}

.plan-card.is-featured .plan-feature {
    color: rgba(255, 255, 255, 0.85);
}

.plan-feature::before {
    content: '';
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    margin-top: 3px;
    border-radius: 50%;
    background: var(--paper-3);
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 7l3 3 5-5' stroke='%231a3a4a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.plan-card.is-featured .plan-feature::before {
    background: rgba(255, 255, 255, 0.15);
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 7l3 3 5-5' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* 制作費付記 */
.price-note-wrap {
    margin-top: var(--sp-6);
    padding: var(--sp-5) var(--sp-6);
    background: var(--paper-2);
    border-left: 2px solid var(--accent);
}

.price-note-title {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--ink-2);
    margin-bottom: var(--sp-3);
    letter-spacing: 0.04em;
}

.price-note-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-3);
}

.price-note-item {
    font-size: 0.8rem;
    color: var(--ink-3);
}

.price-note-item strong {
    display: block;
    color: var(--ink);
    font-weight: 700;
    font-size: 0.9rem;
}

/* ----------------------------------------------------------
   12. Flow section
   ---------------------------------------------------------- */
.flow-list {
    position: relative;
    display: grid;
    gap: 0;
}

.flow-list::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 24px;
    bottom: 24px;
    width: 1px;
    background: var(--rule);
}

.flow-item {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: var(--sp-6);
    padding: var(--sp-6) 0;
}

.flow-step {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--paper);
    border: 1px solid var(--rule-mid);
    border-radius: 50%;
    font-family: var(--font-serif);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
    position: relative;
    z-index: 1;
}


.flow-h {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: var(--sp-2);
    padding-top: 10px;
}

.flow-p {
    font-size: 0.84rem;
    color: var(--ink-3);
    line-height: 1.85;
}

.flow-tag {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 2px 7px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 1px;
    margin-bottom: var(--sp-2);
}

/* ----------------------------------------------------------
   13. Philosophy / Work section
   ---------------------------------------------------------- */
.philosophy-section {
    background: var(--paper-2);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--rule);
    border: 1px solid var(--rule);
    margin-top: var(--sp-12);
}

.work-item {
    background: var(--paper-2);
    padding: var(--sp-8);
    transition: background 0.2s;
}

.work-item:hover {
    background: var(--paper);
}

.work-type {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--ink-4);
    margin-bottom: var(--sp-4);
}

.work-thumb {
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--paper-3);
    margin-bottom: var(--sp-5);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* モック的なスクリーン表示 */
.work-thumb-inner {
    width: 88%;
    height: 78%;
    background: var(--paper);
    border: 1px solid var(--rule-mid);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.work-mock-bar {
    height: 20px;
    background: var(--paper-3);
    border-bottom: 1px solid var(--rule);
    display: flex;
    align-items: center;
    padding: 0 10px;
    gap: 5px;
}

.work-mock-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--rule-mid);
}

.work-mock-body {
    flex: 1;
    padding: 8px;
    display: grid;
    gap: 5px;
}

.work-mock-line {
    height: 6px;
    background: var(--paper-3);
    border-radius: 2px;
}

.work-mock-line.w-60 {
    width: 60%;
}

.work-mock-line.w-80 {
    width: 80%;
}

.work-mock-line.w-45 {
    width: 45%;
}

.work-mock-line.is-accent {
    background: rgba(26, 58, 74, 0.15);
}

.work-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: var(--sp-2);
}

.work-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-1);
}

.work-tag {
    font-size: 0.62rem;
    padding: 2px 6px;
    background: var(--paper-3);
    color: var(--ink-3);
    border-radius: 1px;
}

/* ----------------------------------------------------------
   14. Philosophy points
   ---------------------------------------------------------- */
.philo-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-10) var(--sp-12);
    margin-top: var(--sp-12);
}

.philo-item {
    padding-top: var(--sp-6);
    border-top: 1px solid var(--rule);
}

.philo-num {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--paper-3);
    line-height: 1;
    margin-bottom: var(--sp-3);
    letter-spacing: -0.02em;
}

.philo-h {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: var(--sp-3);
}

.philo-p {
    font-size: 0.82rem;
    color: var(--ink-3);
    line-height: 1.85;
}

/* ----------------------------------------------------------
   15. FAQ
   ---------------------------------------------------------- */
.faq-list {
    display: grid;
    gap: 0;
}

.faq-item {
    border-top: 1px solid var(--rule);
}

.faq-item:last-child {
    border-bottom: 1px solid var(--rule);
}

.faq-q {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--sp-4);
    padding: var(--sp-6) 0;
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.6;
    user-select: none;
}

.faq-q-text {
    flex: 1;
}

.faq-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--rule-mid);
    border-radius: 50%;
    color: var(--ink-3);
    transition: all 0.25s;
    margin-top: 2px;
}

.faq-item.is-open .faq-icon {
    transform: rotate(45deg);
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease-out), padding 0.3s;
}

.faq-a-inner {
    padding-bottom: var(--sp-6);
    font-size: 0.86rem;
    color: var(--ink-3);
    line-height: 1.9;
}

/* ----------------------------------------------------------
   16. CTA section
   ---------------------------------------------------------- */
.cta-section {
    background: var(--ink);
    padding: var(--sp-24) 0;
    position: relative;
    overflow: hidden;
}

/* 装飾ライン */
.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -5%;
    width: 45%;
    height: 100%;
    background: rgba(255, 255, 255, 0.02);
    clip-path: polygon(0 0, 85% 0, 100% 100%, 0 100%);
    transform: translateY(-50%);
    pointer-events: none;
}

.cta-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.cta-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: rgba(249, 247, 244, 0.4);
    margin-bottom: var(--sp-5);
}

.cta-title {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    font-weight: 600;
    color: var(--paper);
    line-height: 1.45;
    letter-spacing: 0.01em;
    margin-bottom: var(--sp-5);
}

.cta-lead {
    font-size: 0.9rem;
    color: rgba(249, 247, 244, 0.55);
    line-height: 1.85;
    margin-bottom: var(--sp-10);
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
}

.cta-btns {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-5);
    flex-wrap: wrap;
}

.btn-primary-inv {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-3);
    height: 54px;
    padding: 0 var(--sp-10);
    background: var(--paper);
    color: var(--accent);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    border-radius: 2px;
    transition: background 0.2s, transform 0.2s var(--ease-out);
}

.btn-primary-inv:hover {
    background: #fff;
    transform: translateY(-1px);
}

.btn-ghost-inv {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    height: 54px;
    padding: 0 var(--sp-8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(249, 247, 244, 0.8);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    border-radius: 2px;
    transition: all 0.2s;
}

.btn-ghost-inv:hover {
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--paper);
}

.cta-caption {
    margin-top: var(--sp-6);
    font-size: 0.72rem;
    color: rgba(249, 247, 244, 0.3);
    letter-spacing: 0.04em;
}

/* ----------------------------------------------------------
   17. Contact form
   ---------------------------------------------------------- */
.contact-section {
    padding: var(--sp-24) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-16);
    align-items: start;
    margin-top: var(--sp-12);
}


.contact-info-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: var(--sp-4);
}

.contact-info-p {
    font-size: 0.85rem;
    color: var(--ink-3);
    line-height: 1.9;
    margin-bottom: var(--sp-8);
}

.contact-points {
    display: grid;
    gap: var(--sp-4);
}

.contact-point {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-3);
    padding: var(--sp-4);
    background: var(--paper-2);
    font-size: 0.82rem;
    color: var(--ink-3);
    line-height: 1.65;
}

.contact-point-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background: var(--accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
    color: var(--accent);
}

.form-wrap {
    background: var(--paper);
    border: 1px solid var(--rule-mid);
    padding: var(--sp-8);
}

.form-group {
    margin-bottom: var(--sp-5);
}

.form-label {
    display: block;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--ink-2);
    letter-spacing: 0.04em;
    margin-bottom: var(--sp-2);
}

.form-req {
    font-size: 0.64rem;
    color: #c0392b;
    margin-left: var(--sp-1);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: var(--sp-3) var(--sp-4);
    background: var(--paper-2);
    border: 1px solid var(--rule-mid);
    border-radius: 2px;
    font-family: var(--font-sans);
    font-size: 0.88rem;
    color: var(--ink);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(26, 58, 74, 0.1);
    background: var(--paper);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--ink-4);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.75;
}

.form-submit {
    width: 100%;
    height: 50px;
    background: var(--accent);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.2s;
    border: none;
}

.form-submit:hover {
    background: var(--accent-mid);
}

.form-caption {
    margin-top: var(--sp-3);
    font-size: 0.72rem;
    color: var(--ink-4);
    text-align: center;
    line-height: 1.7;
}

/* ----------------------------------------------------------
   18. Footer
   ---------------------------------------------------------- */
.site-footer {
    background: var(--ink);
    color: rgba(249, 247, 244, 0.45);
    padding: var(--sp-12) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-6);
    flex-wrap: wrap;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: rgba(249, 247, 244, 0.8);
}

.footer-logo span {
    color: var(--accent-mid);
}

.footer-links {
    display: flex;
    gap: var(--sp-6);
}

.footer-links a {
    font-size: 0.75rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: rgba(249, 247, 244, 0.75);
}

.footer-copy {
    font-size: 0.72rem;
    letter-spacing: 0.04em;
}

/* ----------------------------------------------------------
   19. Scroll reveal
   ---------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.7s var(--ease),
        transform 0.7s var(--ease-out);
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

.reveal-delay-1 {
    transition-delay: 80ms;
}

.reveal-delay-2 {
    transition-delay: 160ms;
}

.reveal-delay-3 {
    transition-delay: 240ms;
}

/* ----------------------------------------------------------
   20. Horizontal rule decoration
   ---------------------------------------------------------- */
.h-rule {
    height: 1px;
    background: var(--rule);
    max-width: var(--max);
    margin: 0 auto;
}

/* ----------------------------------------------------------
   21. Responsive
   ---------------------------------------------------------- */
@media (max-width: 900px) {
    :root {
        --sp-24: 64px;
        --sp-20: 56px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: var(--sp-12);
    }

    .hero::before {
        display: none;
    }

    .hero-panel {
        grid-template-columns: 1fr;
    }

    .hero-panel-item {
        padding: var(--sp-5) var(--sp-6);
    }

    .problem-list {
        grid-template-columns: 1fr;
    }

    .solution-grid {
        grid-template-columns: 1fr;
    }

    .plan-grid {
        grid-template-columns: 1fr;
    }

    .price-note-grid {
        grid-template-columns: 1fr;
    }

    .work-grid {
        grid-template-columns: 1fr 1fr;
    }

    .philo-list {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .plan-card {
        padding: 24px 20px;
    }
}

@media (max-width: 640px) {

    .wrap,
    .wrap-sm {
        padding: 0 var(--sp-5);
    }

    .nav-inner {
        padding: 0 var(--sp-5);
    }

    .hero {
        padding: 120px 0 var(--sp-16);
    }

    .hero-panel {
        grid-template-columns: 1fr;
    }

    .work-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--sp-4);
    }

    .footer-links {
        gap: var(--sp-4);
    }

    .cta-btns {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary-inv,
    .btn-ghost-inv {
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {

    .reveal,
    .btn-primary,
    .btn-primary-inv,
    .site-nav,
    .faq-icon {
        transition: none !important;
    }
}

/* ----------------------------------------------------------
   19. Static Pages (Privacy, Legal, etc.)
   ---------------------------------------------------------- */
.static-page {
    padding: 140px 0 var(--sp-24);
}

.static-wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--sp-8);
}

.static-h1 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: var(--sp-12);
    color: var(--ink);
    border-bottom: 1px solid var(--rule);
    padding-bottom: var(--sp-6);
}

.static-content h2 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 600;
    margin: var(--sp-12) 0 var(--sp-4);
    color: var(--ink);
}

.static-content p {
    font-size: 0.95rem;
    line-height: 1.9;
    color: var(--ink-2);
    margin-bottom: var(--sp-6);
}

.static-content dl {
    margin-bottom: var(--sp-8);
}

.static-content dt {
    font-weight: 700;
    margin-top: var(--sp-5);
    color: var(--ink);
}

.static-content dd {
    margin-left: 0;
    padding-left: var(--sp-4);
    border-left: 2px solid var(--paper-3);
    margin-bottom: var(--sp-4);
}