:root {
    --bg: #FAF7F2;
    --bg-warm: #F4EFE6;
    --surface: #FFFFFF;
    --text-primary: #2A2A2A;
    --text-secondary: #6B6B6B;
    --text-tertiary: #9B9B9B;
    --hairline: rgba(0,0,0,0.08);
    --accent: #4A6FA5;
    --friend: #7CA582;
    --curator: #8B7BA8;
    --visited: #C89968;
    --radius: 14px;
    --radius-lg: 20px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #17171A;
        --bg-warm: #1E1E23;
        --surface: #22222A;
        --text-primary: #F0F0F0;
        --text-secondary: #B0B0B0;
        --text-tertiary: #7B7B7B;
        --hairline: rgba(255,255,255,0.10);
    }
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 760px;
    margin: 0 auto;
    padding: 24px 22px 80px;
}

/* ------------------- Navigation ------------------- */

.brand {
    font-family: "Iowan Old Style", "Palatino", Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-weight: 600;
    font-size: 22px;
    letter-spacing: -0.01em;
    text-decoration: none;
    color: var(--text-primary);
    display: inline-block;
    padding: 20px 0 8px;
}

nav.top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid var(--hairline);
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

nav.top .links {
    display: flex;
    gap: 20px;
    padding-bottom: 16px;
}

nav.top .links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.02em;
}

nav.top .links a:hover {
    color: var(--text-primary);
}

/* ------------------- Typography ------------------- */

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.24em;
    font-size: 10.5px;
    font-weight: 600;
    color: var(--text-tertiary);
    margin-bottom: 10px;
}

h1 {
    font-family: "Iowan Old Style", "Palatino", Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-weight: 600;
    font-size: 34px;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin: 24px 0 8px;
}

h2 {
    font-family: "Iowan Old Style", "Palatino", Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-weight: 600;
    font-size: 22px;
    letter-spacing: -0.01em;
    line-height: 1.35;
    margin: 40px 0 12px;
}

h3 {
    font-size: 15.5px;
    font-weight: 600;
    margin: 22px 0 8px;
    letter-spacing: 0.005em;
}

p, li {
    font-size: 15px;
    color: var(--text-primary);
}

.muted {
    color: var(--text-secondary);
    font-size: 13.5px;
}

ul, ol { padding-left: 22px; }
li { margin-bottom: 6px; }

hr {
    border: 0;
    height: 1px;
    background: var(--hairline);
    margin: 56px 0;
}

a {
    color: var(--accent);
    text-decoration: none;
}
a:hover { text-decoration: underline; }

/* ------------------- Legal-page utilities ------------------- */

.card {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    margin: 20px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 14px;
}

th, td {
    text-align: left;
    padding: 10px 8px;
    border-bottom: 1px solid var(--hairline);
    vertical-align: top;
}

th {
    color: var(--text-tertiary);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ------------------- Hero (landing) ------------------- */

.hero-big {
    padding: 48px 0 24px;
}

.hero-title {
    font-family: "Iowan Old Style", "Palatino", Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-weight: 600;
    font-size: clamp(38px, 7vw, 62px);
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin: 10px 0 20px;
}

.hero-lead {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 540px;
    margin-bottom: 26px;
}

.hero-meta {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--text-tertiary);
    letter-spacing: 0.02em;
}

.dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-right: 4px;
    vertical-align: middle;
    border: 1.5px solid #fff;
    box-shadow: 0 0 0 0.5px rgba(0,0,0,0.15);
}
.dot--accent  { background: var(--accent);  }
.dot--visited { background: var(--visited); }
.dot--friend  { background: var(--friend);  }
.dot--curator { background: var(--curator); }

/* ------------------- Map mockup ------------------- */

.map-mock {
    position: relative;
    height: 320px;
    background: var(--bg-warm);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 32px 0 40px;
}

.map-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--hairline) 1px, transparent 1px),
        linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
    background-size: 48px 48px;
    opacity: 0.7;
}

.pin {
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2.5px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);
    transform: translate(-50%, -100%);
}
.pin--accent  { background: var(--accent);  }
.pin--visited { background: var(--visited); }
.pin--friend  { background: var(--friend);  }
.pin--curator { background: var(--curator); }

.pin-label {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.94);
    color: var(--text-primary);
    font-family: "Iowan Old Style", "Palatino", Georgia, serif;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 999px;
    white-space: nowrap;
    border: 1px solid var(--hairline);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

@media (prefers-color-scheme: dark) {
    .pin-label { background: rgba(40,40,48,0.94); }
}

/* ------------------- Philosophy pull quote ------------------- */

.philosophy {
    padding: 40px 0 20px;
    text-align: center;
}

.pull-quote {
    font-family: "Iowan Old Style", "Palatino", Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: clamp(20px, 3.4vw, 26px);
    line-height: 1.5;
    letter-spacing: -0.005em;
    color: var(--text-primary);
    max-width: 620px;
    margin: 0 auto;
    font-style: italic;
    quotes: none;
}

/* ------------------- Section titles ------------------- */

.section-title {
    font-size: clamp(24px, 4vw, 30px);
    line-height: 1.3;
    letter-spacing: -0.015em;
    margin: 10px 0 24px;
}

/* ------------------- Feature list (redesigned) ------------------- */

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.feature-row {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 20px 4px;
    border-bottom: 1px solid var(--hairline);
}

.feature-row:last-child { border-bottom: none; }

.feature-row h3 {
    margin: 0 0 4px;
    font-family: "Iowan Old Style", "Palatino", Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.005em;
}

.feature-row p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.feature-icon {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.feature-icon--accent  { background: var(--accent);  }
.feature-icon--friend  { background: var(--friend);  }
.feature-icon--curator { background: var(--curator); }
.feature-icon--visited { background: var(--visited); }

/* ------------------- Steps ------------------- */

.steps {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 24px 0;
}

.steps li {
    display: flex;
    gap: 18px;
    align-items: baseline;
    margin: 0;
}

.step-num {
    font-family: "Iowan Old Style", "Palatino", Georgia, serif;
    font-size: 28px;
    color: var(--accent);
    letter-spacing: -0.02em;
    font-weight: 600;
    line-height: 1;
    flex: 0 0 60px;
}

.steps h3 {
    font-family: "Iowan Old Style", "Palatino", Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 4px;
    letter-spacing: -0.005em;
}

/* ------------------- CTA ------------------- */

.cta {
    padding: 24px 0 8px;
}

.cta-btn {
    display: inline-block;
    margin-top: 16px;
    padding: 12px 24px;
    background: var(--accent);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 999px;
    text-decoration: none;
    transition: transform 0.15s ease;
}
.cta-btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

/* ------------------- Footer ------------------- */

footer {
    margin-top: 72px;
    padding-top: 28px;
    border-top: 1px solid var(--hairline);
    color: var(--text-tertiary);
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

footer .links a {
    color: var(--text-tertiary);
    margin-right: 16px;
    text-decoration: none;
}

footer .links a:hover { color: var(--text-secondary); }
