/* Rosehill: warm paper, evergreen ink and quiet, responsive movement. */
:root {
  --canvas: #f6f5ef; --paper: #f6f5ef; --surface-soft: #edf0e7;
  --navy: #183f35; --navy-soft: #285548; --ink: #233d35;
  --teal: #285b46; --teal-hover: #194332; --teal-pale: #e4eddb;
  --muted: #5a685e; --line: #d7dbcf; --line-strong: #a6b4a4;
  --gold: #dfec9b; --sun: #b1cf59;
  --shadow-sm: 0 3px 12px rgb(30 56 37 / 3%);
  --shadow-md: 0 16px 40px rgb(30 56 37 / 7%);
}
html, body { background: var(--canvas); }
body { font-family: "Segoe UI Variable", "Segoe UI", system-ui, sans-serif; line-height: 1.65; }
h1, h2, h3 { font-family: inherit; font-weight: 650; }
a { color: var(--teal); text-underline-offset: .24em; }
.prototype-banner { min-height: 2rem; padding: .4rem 1rem; background: #e8ebdf; color: #4e604d; font-size: .7rem; font-weight: 600; letter-spacing: .015em; }
.site-header, #main-content { width: min(100% - 5rem, 1200px); }
.site-header { min-height: 6rem; gap: 1rem; border-bottom: 1px solid var(--line); }
.brand { gap: .5rem; font-size: 1.16rem; letter-spacing: -.045em; font-weight: 750; flex-shrink: 0; }
.brand::before { content: 'r'; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; margin-right: .35rem; border-radius: 50% 50% 15% 50%; background: var(--navy); color: #e0eba8; font-family: Georgia, serif; font-size: 1.8rem; font-style: italic; line-height: 1; }
.brand span { font-size: .78rem; font-weight: 500; letter-spacing: -.01em; border-left: 1px solid var(--line-strong); padding-left: .65rem; margin-left: .2rem; }
.site-header nav { gap: .4rem; }
.site-header nav a { padding: .65rem .85rem; font-size: .81rem; font-weight: 600; border-radius: 2rem; }
.site-header nav a.nav-signin { border: 1px solid var(--line-strong); margin-left: .4rem; gap: .5rem; }
.site-header nav a:hover { transform: none; }
.eyebrow { font-size: .7rem; font-weight: 700; letter-spacing: .14em; }
.pupil-home .hero { grid-template-columns: 1.12fr 1fr; gap: clamp(2rem, 5vw, 5rem); min-height: auto; padding: 4.5rem 0 3.5rem; }
.hero h1 { font-size: clamp(3rem, 5.5vw, 5.2rem); max-width: 11ch; line-height: 1.04; letter-spacing: -.065em; margin: 1.35rem 0 1.4rem; }
.hero h1 em { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-style: italic; letter-spacing: -.065em; color: var(--teal); }
.hero .lead { max-width: 34ch; font-size: 1.06rem; line-height: 1.7; margin-bottom: 1.8rem; }
.hero p.eyebrow { font-size: .7rem; margin: 0; color: var(--teal); }
.hero p.hero-caption { font-size: .76rem; margin: 1rem 0 0; }
.button, button { min-height: 48px; border-radius: 2rem; padding: .85rem 1.3rem; font-size: .85rem; font-weight: 650; box-shadow: none; transition: transform 140ms var(--press), background-color 180ms ease, box-shadow 180ms ease; }
.button:hover, button:hover { box-shadow: 0 5px 14px rgb(30 56 37 / 10%); }
.button:active, button:active { transform: scale(.97); box-shadow: none; }
.button span[aria-hidden] { margin-left: .9rem; font-size: 1.2rem; }
.button-secondary { background: transparent; border-color: var(--line-strong); box-shadow: none; }
.voice-board { position: relative; min-height: 29rem; border-radius: 1.2rem; overflow: hidden; background: #e6ebd8; isolation: isolate; }
.voice-board::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(#81967b18 1px, transparent 1px), linear-gradient(90deg, #81967b18 1px, transparent 1px); background-size: 34px 34px; }
.board-top, .board-bottom { position: absolute; left: 1.6rem; right: 1.6rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: .6rem; font-weight: 650; letter-spacing: .07em; }
.board-top { top: 1.3rem; }.board-top > span:last-child { font-size: 1.5rem; }
.board-bottom { bottom: 1.25rem; letter-spacing: .015em; font-weight: 500; }
.voice-note { position: absolute; width: 68%; padding: 1.7rem; box-shadow: 0 12px 20px #27382516; }
.note-label { display: block; font-size: .57rem; font-weight: 650; letter-spacing: .1em; margin-bottom: 1rem; }
.voice-note strong { display: block; font-size: clamp(1.7rem, 3.3vw, 3rem); line-height: 1.12; letter-spacing: -.055em; font-weight: 600; }
.note-one { top: 4rem; left: 9%; background: #fffdf5; transform: rotate(-7deg); z-index: 1; }
.note-line { display: block; height: .4rem; width: 48%; margin-top: 1rem; border-radius: 50%; background: #c0d47f; transform: rotate(-3deg); }
.note-two { top: 16rem; right: 7%; background: #244c3a; color: #f5f7e9; transform: rotate(7deg); z-index: 2; }
.note-two strong { font-size: clamp(1.4rem, 2.3vw, 2rem); }
.note-two .note-label { color: #c7d7b3; }
.note-stars { position: absolute; right: .8rem; top: .7rem; color: #d7e996; font-size: 1.6rem; line-height: 1; }
.safety-strip { display: flex; align-items: center; gap: 2rem; padding: 1.35rem 1.6rem; border: 1px solid var(--line); border-radius: .8rem; }
.safety-strip .eyebrow { margin: 0 0 .3rem; }
.safety-strip p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: .78rem; max-width: 95ch; }
.safety-strip > a { flex-shrink: 0; font-size: .78rem; font-weight: 650; }
.how-steps { border-top: 0; padding: 3.2rem 0 4rem; }
.how-steps h2 { font-size: 1rem; letter-spacing: -.01em; margin: 0 0 1.4rem; }
.how-steps li, .how-steps li:first-child { min-height: auto; padding: 0 1.7rem; gap: .45rem; }
.how-steps li:first-child { padding-left: 0; }
.how-steps strong { font-size: 1rem; font-weight: 650; }
.how-steps strong::before { display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; background: #e7ebdc; border-radius: 50%; margin-right: .8rem; font-size: .63rem; }
.how-steps span { font-size: .82rem; }
.panel { border-radius: 1rem; box-shadow: none; background: #fffef9; }
.pupil-home .form-panel { display: grid; grid-template-columns: .8fr 1.2fr; gap: 0 4rem; padding: 3rem; }
.form-panel .form-intro { grid-column: 1; grid-row: 1 / 3; }
.form-intro > p:not(.eyebrow) { color: var(--muted); font-size: .9rem; max-width: 34ch; }
.form-panel #notice { grid-column: 2; }.form-panel #notice:empty { display: none; }
.form-panel #idea-form { grid-column: 2; margin: 0; gap: 1.25rem; }
.writing-tip { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); max-width: 30ch; }
.writing-tip > span { display: block; font-size: 2rem; color: var(--teal); margin-bottom: .5rem; }
.writing-tip strong { font-size: .9rem; font-weight: 600; }
.writing-tip p { color: var(--muted); font-size: .8rem; margin-top: .4rem; }
label { font-weight: 600; font-size: .83rem; }
label small { font-size: .72rem; font-weight: 400; color: var(--muted); }
input, select, textarea { background: #fffefa; border-color: #a6b4a4; border-radius: .55rem; font-size: 1rem; padding: .8rem .9rem; }
textarea { min-height: 7.5rem; }
input:focus, textarea:focus, select:focus { box-shadow: 0 0 0 3px #285b4618; }
.check { background: #f0f2e8; font-size: .76rem; font-weight: 500; }
.privacy-note { font-size: .75rem; margin: 0; }
.form-panel .reference-card { grid-column: 1 / -1; }
.tracking-panel { position: relative; padding: 2.5rem 3rem; background: #e9eedf; border-color: #d3dcc6; }
.tracking-panel > p:not(.eyebrow) { font-size: .9rem; color: var(--muted); }
.tracking-panel form { max-width: none; }
.tracking-panel input { font-family: ui-monospace, monospace; font-size: .85rem; }
.panel.outcomes { background: transparent; padding: 2.8rem 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; margin: 3rem 0 0; }
.outcomes h2 { font-size: 2rem; }
#outcome-list { grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); }
#outcome-list > p { color: var(--muted); font-size: .9rem; padding: 1.5rem; background: #edeee5; border-radius: .7rem; }
.footer { margin-top: 1rem; padding: 2rem 0; }
.footer .shell { width: min(100% - 5rem, 1200px); display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer p, .footer .shell > a:last-child { font-size: .76rem; font-weight: 500; }
.footer .brand { text-decoration: none; }
.content-page, .auth-page { padding-top: 3.5rem; }
.auth-page .panel { padding: clamp(1.4rem, 4vw, 3rem); }
.content-page h1, .auth-page h1, .workspace h1, .plt-main h1 { line-height: 1.07; letter-spacing: -.05em; }
.plt-sidebar { background: var(--navy); }
.plt-choice-grid a, .ballot-option, .plt-stats article { border-radius: .8rem; }
.pupil-home .hero, .how-steps, .form-panel, .tracking-panel, .outcomes { animation: none; }
@media (prefers-reduced-motion: no-preference) { .hero-copy, .voice-board { animation: settle-in 400ms var(--press) both; } }
@media (max-width: 1000px) {
  .site-header, #main-content { width: calc(100% - 3rem); }
  .site-header nav { gap: 0; }.site-header nav a { padding-inline: .55rem; font-size: .75rem; }
  .brand span { display: block; }
  .pupil-home .hero { gap: 2rem; }.voice-board { min-height: 27rem; }
  .voice-note { padding: 1.3rem; width: 76%; }.note-two { top: 14rem; }
  .pupil-home .form-panel { gap: 0 2rem; padding: 2rem; }
}
@media (max-width: 760px) {
  body { overflow-x: visible; }
  .site-header, #main-content { width: calc(100% - 2rem); }
  .site-header { gap: .8rem; padding: 1rem 0; }
  .site-header nav { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .25rem; }
  .site-header nav a { font-size: .68rem; padding: .45rem .2rem; justify-content: center; text-align: center; line-height: 1.35; }
  .site-header nav a.nav-signin { margin-left: 0; gap: .2rem; }
  .prototype-banner { min-height: auto; font-size: .64rem; }
  .pupil-home .hero { grid-template-columns: 1fr; padding: 2.7rem 0 2rem; gap: 2.2rem; }
  .hero h1 { font-size: clamp(3rem, 12vw, 4.8rem); max-width: 12ch; }
  .hero .lead { font-size: 1rem; max-width: 40ch; }
  .voice-board { min-height: 24rem; max-width: 32rem; width: 100%; justify-self: center; }
  .voice-note { width: 72%; padding: 1.4rem; }.note-one { top: 3.5rem; }.note-two { top: 13rem; }
  .voice-note strong { font-size: 2rem; }.note-two strong { font-size: clamp(1.25rem, 5.4vw, 1.55rem); }
  .safety-strip { display: grid; gap: .8rem; padding: 1.2rem; }
  .how-steps { padding: 2.4rem 0; }.how-steps ol { gap: 1rem; }
  .how-steps li, .how-steps li:first-child { padding: .7rem 0 0; border-left: 0; }
  .pupil-home .form-panel { display: block; padding: 1.4rem; }.form-panel #idea-form { margin-top: 1.6rem; }
  .writing-tip { display: none; }.form-intro > p:not(.eyebrow) { max-width: none; }
  .tracking-panel { padding: 1.4rem; }.tracking-panel form { grid-template-columns: 1fr; }
  .tracking-panel form > .button { justify-self: start; }
  .form-panel, .tracking-panel, .outcomes { scroll-margin-top: 1rem; }
  .footer .shell { width: calc(100% - 2rem); display: grid; }.footer p { margin: 0; }
}
@media (prefers-contrast: more) { .panel, .safety-strip, input, select, textarea { border-color: #4b624f; } }

.revamped-auth { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 7vw, 6rem); max-width: 1100px; padding: 4rem 0 5rem; align-items: start; }
.auth-back { display: inline-block; margin-bottom: 3rem; font-size: .82rem; text-decoration: none; }
.auth-intro h1 { font-size: clamp(2.5rem, 4.5vw, 4rem); max-width: 13ch; }
.auth-intro h1 em { font-family: Georgia, serif; font-weight: 400; color: var(--teal); }
.auth-intro > p:not(.eyebrow) { max-width: 37ch; color: var(--muted); font-size: .95rem; }
.auth-purpose { display: flex; gap: 1rem; padding-top: 1.6rem; margin-top: 2rem; border-top: 1px solid var(--line); }
.auth-purpose > span { font-size: 2rem; }.auth-purpose p { margin: 0; color: var(--muted); font-size: .82rem; }.auth-purpose strong { color: var(--ink); font-weight: 600; }
.auth-page .auth-card { margin: 0; padding: 2.5rem; }
.auth-card h2 { font-size: 2.1rem; letter-spacing: -.04em; }.auth-description { color: var(--muted); font-size: .86rem; }
.password-field { display: grid; gap: .42rem; }.password-input { position: relative; }.password-input input { padding-right: 4.5rem; }
.password-toggle { position: absolute; right: .2rem; top: .2rem; bottom: .2rem; min-height: 44px; border-radius: .35rem; padding: .4rem .8rem; background: transparent; color: var(--teal); box-shadow: none; font-size: .76rem; }
.password-toggle:hover { background: var(--surface-soft); box-shadow: none; }
.auth-card #login-form > button { width: 100%; margin-top: .3rem; }
.session-note, .auth-help { margin: 0; font-size: .74rem; color: var(--muted); line-height: 1.6; }
.auth-card details { border-top: 1px solid var(--line); padding-top: 1.3rem; margin-top: 1.4rem; }
.auth-card summary { font-size: .82rem; font-weight: 600; min-height: 44px; cursor: pointer; }.auth-card details > p { color: var(--muted); font-size: .8rem; }
.auth-help { border-top: 1px solid var(--line); padding-top: 1.3rem; }
.verification-card { max-width: 620px; }
.verification-card h1 { max-width: 12ch; }
.verification-card .actions { margin-top: 1.5rem; }
.static-form-fields { border: 0; padding: 0; margin: 0; min-width: 0; }
@media (max-width: 760px) { .revamped-auth { grid-template-columns: 1fr; gap: 1.8rem; padding: 1.5rem 0 3rem; }.auth-back { margin-bottom: 1.8rem; }.auth-intro h1 { font-size: 2.6rem; max-width: 18ch; }.auth-purpose { display: none; }.auth-page .auth-card { padding: 1.4rem; } }
