/* The Practical Thinker homepage */

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

:root {
  --navy: #1f2947;
  --navy-900: #111a31;
  --blue: #1f5c97;
  --teal: #2f9cb0;
  --light-teal: #63d1bf;
  --ink: #202b42;
  --muted: #647083;
  --paper: #f6f1e8;
  --white: #ffffff;
  --cool: #eef3f6;
  --line: #dbe2e7;
  --coral: #d96443;
  --green: #18775f;
  --shadow-soft: 0 16px 44px rgba(31, 41, 71, 0.14);
  --shadow-book: 0 20px 42px rgba(31, 41, 71, 0.24);
  --font-heading: 'Avenir Next', Avenir, Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-editorial: Spectral, Georgia, 'Times New Roman', serif;
  --max: 1240px;
}

html { scroll-behavior: smooth; font-size: 17px; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: var(--font-body); line-height: 1.6; -webkit-font-smoothing: antialiased; }
body, button, input { font-family: var(--font-body); }
a { color: inherit; }
img { display: block; max-width: 100%; }

.skip-link, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip-link:focus { z-index: 200; top: 1rem; left: 1rem; width: auto; height: auto; clip: auto; padding: .65rem .9rem; color: var(--navy); background: var(--white); box-shadow: var(--shadow-soft); }
.section-shell { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }

.mock-header { position: sticky; top: 0; z-index: 100; background: rgba(17, 26, 49, .97); border-bottom: 1px solid rgba(255, 255, 255, .09); backdrop-filter: blur(16px); }
.mock-nav { width: min(var(--max), calc(100% - 48px)); min-height: 72px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.mock-logo { display: inline-flex; align-items: center; min-width: 160px; }
.mock-logo img { width: 152px; height: auto; }
.mock-nav-menu { display: flex; align-items: center; gap: .25rem; }
.mock-nav-menu a { min-height: 40px; padding: .55rem .8rem; border-radius: 4px; color: rgba(255, 255, 255, .76); font-family: var(--font-heading); font-size: .84rem; font-weight: 600; text-decoration: none; }
.mock-nav-menu a:hover, .mock-nav-menu a:focus-visible { color: var(--white); background: rgba(255, 255, 255, .08); }
.mock-nav-menu .nav-action { margin-left: .45rem; padding-inline: 1rem; color: var(--white); border: 1px solid rgba(255, 255, 255, .45); }
.mock-nav-toggle { display: none; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 4px; background: rgba(255, 255, 255, .08); }
.mock-nav-toggle span { display: block; width: 20px; height: 2px; margin: 4px auto; border-radius: 3px; background: var(--white); transition: transform 180ms ease, opacity 180ms ease; }
.mock-nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mock-nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.mock-nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mock-hero { overflow: hidden; color: var(--navy); background: var(--paper); border-bottom: 1px solid #e7dfd1; }
.mock-hero-inner { width: min(var(--max), calc(100% - 48px)); min-height: 650px; margin: 0 auto; padding: clamp(3.25rem, 5vw, 4.75rem) 0; display: grid; grid-template-columns: minmax(380px, .9fr) minmax(520px, 1.1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.mock-hero h1 { max-width: 650px; margin: 0; color: var(--navy); font-family: var(--font-heading); font-size: clamp(3.2rem, 5.5vw, 4.9rem); font-weight: 800; line-height: .98; letter-spacing: -.035em; }
.hero-lede { max-width: 610px; margin: 1.45rem 0 0; color: #344055; font-size: clamp(1rem, 1.25vw, 1.17rem); line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.25rem; border: 1.5px solid transparent; border-radius: 4px; font-family: var(--font-heading); font-size: .88rem; font-weight: 700; text-decoration: none; transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: var(--white); background: var(--blue); box-shadow: 0 10px 25px rgba(31, 92, 151, .2); }
.button-primary:hover { background: #2870af; }
.button-secondary { color: var(--navy); background: transparent; border-color: var(--navy); }
.button-secondary:hover { background: rgba(31, 41, 71, .06); }

.hero-book-row { position: relative; min-height: 520px; align-self: stretch; }
.hero-book { position: absolute; width: 100%; height: auto; aspect-ratio: 5 / 8; object-fit: cover; border: 1px solid rgba(31, 41, 71, .16); border-radius: 2px; box-shadow: var(--shadow-book); transition: transform 220ms ease; }
.hero-book:hover { z-index: 8; transform: translateY(-8px) rotate(0); }
.hero-book-one { z-index: 1; top: 0; left: 2%; width: 41%; transform: rotate(-2deg); }
.hero-book-two { z-index: 2; top: 0; right: 2%; width: 41%; transform: rotate(1deg); }
.hero-book-three { z-index: 3; bottom: 0; left: 1%; width: 29.75%; transform: rotate(-1deg); }
.hero-book-four { z-index: 4; bottom: 0; left: 30.625%; width: 29.75%; transform: rotate(1.5deg); }
.hero-book-five { z-index: 5; right: 1%; bottom: 0; width: 29.75%; transform: rotate(2deg); }

.journey-section, .tool-section, .framework-section, .signup-section { padding: clamp(4rem, 7vw, 6.5rem) 0; }
.journey-section, .tool-section, .framework-section, .signup-section { scroll-margin-top: 76px; }
.journey-section { background: var(--white); }
.section-heading { max-width: 760px; margin: 0 auto 3.2rem; text-align: center; }
.section-heading h2, .tool-copy h2, .framework-copy h2, .signup-section h2 { margin: 0; color: var(--navy); font-family: var(--font-heading); font-size: clamp(2.1rem, 4vw, 3.25rem); font-weight: 800; line-height: 1.05; letter-spacing: -.025em; }
.section-heading p, .tool-copy p, .framework-copy > p, .signup-section p { margin: .9rem 0 0; color: var(--muted); font-size: 1rem; line-height: 1.75; }
.journey-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.journey-item { display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 1.7rem 1.35rem 2rem; text-align: center; border-left: 1px solid var(--line); }
.journey-item:first-child { border-left: 0; }
.journey-role { margin: 0 0 1.1rem; color: var(--green); font-family: var(--font-heading); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.journey-item-solve .journey-role { color: var(--coral); }
.journey-item-say .journey-role { color: var(--blue); }
.journey-item-navigate .journey-role, .journey-item-filter .journey-role { color: var(--teal); }
.journey-cover { width: min(142px, 78%); aspect-ratio: 5 / 8; margin-bottom: 1.25rem; }
.journey-cover-wide { aspect-ratio: 5 / 8; width: min(142px, 78%); }
.journey-cover img { width: 100%; height: 100%; object-fit: cover; border: 1px solid rgba(31, 41, 71, .12); box-shadow: 0 12px 28px rgba(31, 41, 71, .18); }
.journey-item h3 { min-height: 2.7rem; margin: 0; color: var(--navy); font-family: var(--font-heading); font-size: 1rem; line-height: 1.25; font-weight: 800; }
.journey-item p:not(.journey-role) { flex: 1; margin: .75rem 0 0; color: var(--muted); font-size: .82rem; line-height: 1.62; }
.journey-item a, .text-link { margin-top: 1rem; color: var(--blue); font-family: var(--font-heading); font-size: .84rem; font-weight: 800; text-decoration: none; }
.journey-item a::after, .text-link::after { content: ''; display: inline-block; width: .42rem; height: .42rem; margin-left: .4rem; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg) translateY(-1px); }

.tool-section { background: var(--cool); }
.tool-layout { display: grid; grid-template-columns: minmax(260px, .78fr) minmax(0, 1.42fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.tool-copy { max-width: 440px; }
.tool-copy .text-link { display: inline-flex; margin-top: 1.35rem; }
.tool-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid #bdcad2; border-bottom: 1px solid #bdcad2; }
.tool-card { min-width: 0; min-height: 220px; padding: 1.5rem 1.25rem; border-left: 1px solid #bdcad2; color: var(--ink); text-decoration: none; transition: background 160ms ease; }
.tool-card:first-child { border-left: 0; }
.tool-card:hover { background: rgba(255, 255, 255, .64); }
.tool-card img { width: 40px; height: 40px; margin-bottom: 1.15rem; }
.tool-card span { display: block; color: var(--navy); font-family: var(--font-heading); font-size: .96rem; font-weight: 800; line-height: 1.25; }
.tool-card small { display: block; margin-top: .55rem; color: var(--muted); font-size: .78rem; line-height: 1.6; }

.framework-section { background: var(--paper); border-top: 1px solid #e7dfd1; border-bottom: 1px solid #e7dfd1; }
.framework-layout { display: grid; grid-template-columns: minmax(420px, 1.08fr) minmax(360px, .92fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.framework-image { overflow: hidden; border: 1px solid #d8cebf; background: var(--white); box-shadow: var(--shadow-soft); }
.framework-image img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.framework-copy > p { font-size: 1.02rem; }
.framework-list { margin: 1.6rem 0 0; display: grid; grid-template-columns: 108px 1fr; }
.framework-list dt, .framework-list dd { padding: .85rem 0; border-top: 1px solid #d8cebf; }
.framework-list dt { color: var(--teal); font-family: var(--font-heading); font-size: .78rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.framework-list dd { margin: 0; padding-left: 1rem; color: #3f4b5e; font-size: .9rem; }
.framework-list dt:last-of-type, .framework-list dd:last-of-type { border-bottom: 1px solid #d8cebf; }

.quote-band { position: relative; overflow: hidden; padding: clamp(3.5rem, 6vw, 5rem) 0; color: var(--white); background: var(--navy); }
.quote-band::after { content: ''; position: absolute; right: min(7vw, 6rem); bottom: -2rem; width: 180px; height: 180px; opacity: .1; background: url('images/Logos/400px-stepOnly.png') center / contain no-repeat; }
.quote-band blockquote { position: relative; z-index: 1; max-width: 880px; margin: 0 auto; text-align: center; }
.quote-band p { margin: 0; color: rgba(255, 255, 255, .95); font-family: var(--font-editorial); font-size: clamp(2rem, 4vw, 3.3rem); font-style: italic; line-height: 1.22; }

.signup-section { background: var(--white); }
.signup-layout { display: grid; grid-template-columns: minmax(280px, .9fr) minmax(360px, 1.1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.signup-form { position: relative; display: grid; grid-template-columns: 1fr auto; gap: .75rem; }
.signup-form input { min-width: 0; min-height: 50px; padding: 0 1rem; border: 1.5px solid var(--line); border-radius: 4px; color: var(--ink); background: var(--white); font-size: .95rem; outline: none; }
.signup-form input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31, 92, 151, .14); }
.signup-trap { position: absolute; left: -5000px; }

.mock-footer { padding: 3.5rem 0; color: rgba(255, 255, 255, .76); background: var(--navy-900); }
.footer-layout { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(420px, 1.25fr); gap: 3rem; align-items: start; }
.footer-brand img { width: 170px; }
.footer-brand p { max-width: 280px; margin: 1rem 0 0; font-size: .9rem; }
.footer-brand .footer-copyright { margin-top: 1.6rem; color: rgba(255, 255, 255, .48); font-size: .78rem; }
.footer-columns { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2.5rem; }
.footer-columns h2 { margin: 0 0 .75rem; color: var(--white); font-family: var(--font-heading); font-size: .72rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.footer-columns a { display: block; margin: .42rem 0; color: rgba(255, 255, 255, .72); font-size: .84rem; text-decoration: none; }
.footer-columns a:hover { color: var(--white); }

@media (max-width: 1080px) {
  .mock-hero-inner { min-height: auto; grid-template-columns: 1fr; padding-bottom: 4rem; }
  .hero-copy { max-width: 760px; }
  .hero-book-row { min-height: 560px; width: min(780px, 100%); }
  .journey-grid { grid-template-columns: repeat(6, 1fr); }
  .journey-item { grid-column: span 2; border-top: 1px solid var(--line); }
  .journey-item:nth-child(1), .journey-item:nth-child(2), .journey-item:nth-child(3) { border-top: 0; }
  .journey-item:nth-child(4) { grid-column: 2 / span 2; }
  .journey-item:nth-child(5) { grid-column: 4 / span 2; }
  .journey-item:nth-child(4) { border-left: 0; }
  .tool-layout, .framework-layout, .signup-layout { grid-template-columns: 1fr; }
  .tool-copy { max-width: 720px; }
}

@media (max-width: 760px) {
  html { font-size: 16px; }
  .section-shell, .mock-nav, .mock-hero-inner { width: min(var(--max), calc(100% - 32px)); }
  .mock-nav { min-height: 66px; }
  .mock-logo { min-width: 136px; }
  .mock-logo img { width: 136px; }
  .mock-nav-toggle { display: block; }
  .mock-nav-menu { position: absolute; top: 66px; left: 0; right: 0; display: none; padding: .8rem 16px 1rem; background: rgba(17, 26, 49, .99); border-top: 1px solid rgba(255, 255, 255, .09); }
  .mock-nav-menu.is-open { display: grid; }
  .mock-nav-menu a, .mock-nav-menu .nav-action { justify-content: center; width: 100%; margin: 0; text-align: center; }
  .mock-hero-inner { padding-top: 4rem; gap: 2.5rem; }
  .mock-hero h1 { font-size: clamp(3rem, 15vw, 4.5rem); }
  .hero-actions { width: 100%; }
  .hero-actions .button { flex: 1 1 100%; }
  .hero-book-row { min-height: 390px; }
  .journey-grid { display: block; border-bottom: 0; }
  .journey-item { border-left: 0; border-top: 1px solid var(--line) !important; }
  .journey-item:first-child { border-top: 0 !important; }
  .journey-cover { width: 142px; }
  .journey-item h3 { min-height: 0; }
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .tool-card:nth-child(3) { border-left: 0; border-top: 1px solid #bdcad2; }
  .tool-card:nth-child(4) { border-top: 1px solid #bdcad2; }
  .framework-image img { aspect-ratio: 4 / 3; }
  .footer-layout, .footer-columns { grid-template-columns: 1fr; }
  .signup-form { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .hero-book-row { min-height: 310px; }
  .tool-grid { grid-template-columns: 1fr; border-bottom: 0; }
  .tool-card { min-height: 0; border-left: 0; border-bottom: 1px solid #bdcad2; }
  .tool-card:nth-child(2) { border-top: 1px solid #bdcad2; }
  .framework-list { grid-template-columns: 84px 1fr; }
  .framework-list dd { padding-left: .75rem; }
}

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