/* playdrawpro.com. Colors and fonts are the app's own (guided.css, style.css). */
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/fonts/oswald-latin.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('/fonts/manrope-latin.woff2') format('woff2'); }

:root {
  --white: #FFFFFF;
  --ink: #1D2B3A;
  --navy: #163A63;
  --blue: #1F5FA8;
  --blue-dark: #184C88;
  --sky: #EEF4FA;
  --sky-2: #E3EDF7;
  --line: #D8E4F0;
  --line-2: #B7CBE0;
  --muted: #5A6A7C;
  --court-line: #C9DAEC;
  --display: 'Oswald', 'Arial Narrow', sans-serif;
  --body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--white); color: var(--ink); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--navy); color: var(--white); padding: 10px 14px; border-radius: 6px; z-index: 10; }
.skip:focus { top: 12px; }

h1, h2 { font-family: var(--display); font-weight: 700; color: var(--navy); line-height: 1.05; letter-spacing: .005em; }
h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 18px; text-wrap: balance; }
h3 { font-size: 19px; font-weight: 700; color: var(--ink); margin: 18px 0 6px; }
p { max-width: 62ch; }

/* Show the line that fits today: data-store on <html> is "soon" until the App Store release. */
html[data-store="soon"] .only-live, html[data-store="live"] .only-soon { display: none !important; }

/* Header */
.top { max-width: var(--wrap); margin: 0 auto; padding: 18px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font: 700 21px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.brand img { border-radius: 9px; }
.brand b { color: var(--blue); font-weight: 700; }
.top nav { display: flex; align-items: center; gap: 22px; font-weight: 600; font-size: 15px; }
.top nav a { color: var(--ink); text-decoration: none; }
.top nav a:hover { color: var(--blue); }
.top .nav-app { color: var(--blue); border: 1.5px solid var(--line-2); border-radius: 8px; padding: 9px 14px; }
.top .nav-app:hover { border-color: var(--blue); }
@media (max-width: 860px) { .top nav a:not(.nav-app) { display: none; } }
@media (max-width: 420px) { .top .nav-app { padding: 8px 10px; font-size: 14px; } .brand { font-size: 18px; } }

main > section { max-width: var(--wrap); margin: 0 auto; padding: clamp(56px, 8vw, 104px) var(--gutter); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px; border-radius: 8px; font: 700 16px/1.2 var(--body); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); color: var(--white); }
.btn-quiet { background: var(--white); color: var(--navy); border-color: var(--line-2); }
.btn-quiet:hover { border-color: var(--blue); color: var(--blue); }

/* Hero: the app's own court lines, and one route that draws in once. */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(32px, 6vw, 80px); padding-top: clamp(28px, 5vw, 64px) !important; }
.court { position: absolute; z-index: -1; left: calc(var(--gutter) - 24px); top: 0; width: min(560px, 62%); fill: none; }
.court-lines { stroke: var(--sky-2); stroke-width: 3; }
.route { stroke: var(--blue); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.route-head { fill: var(--blue); stroke-width: 3; }
.route-line { stroke-dasharray: 240; stroke-dashoffset: 240; animation: draw 1.1s .35s ease-out forwards; }
.route-head, .route-x { opacity: 0; animation: appear .3s 1.35s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .route-line { animation: none; stroke-dashoffset: 0; } .route-head, .route-x { animation: none; opacity: 1; } }

.hero-text { padding-top: clamp(120px, 15vw, 170px); }
.hero h1 { font-size: clamp(64px, 10vw, 128px); text-transform: uppercase; line-height: .92; margin-bottom: 26px; }
.hero h1 span { display: block; }
.hero h1 span + span { color: var(--blue); }
.lede { font-size: clamp(18px, 1.6vw, 20px); color: var(--ink); margin-bottom: 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.status { font-size: 15px; color: var(--muted); }

/* Phone screenshots. The images already carry the status bar, so the frame is only the device edge. */
.phone { background: #0E1A28; padding: 9px; border-radius: 52px; width: 100%; max-width: 300px; margin: 0 auto; }
.phone img { width: 100%; border-radius: 44px; }
.hero-phone { max-width: 340px; box-shadow: 0 40px 80px -36px rgba(22, 58, 99, .55); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .court { width: 92%; left: 4%; }
  .hero-phone { max-width: 290px; }
}

/* How it works: a real three-step sequence, so the steps are numbered. */
.steps { border-top: 1px solid var(--line); }
.steps ol { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 48px); margin-top: 40px; }
.steps li { counter-increment: step; }
.steps .phone { max-width: 250px; margin: 0 0 8px; }
.steps h3::before { content: counter(step); display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: 10px; border-radius: 50%; background: var(--navy); color: var(--white); font: 700 16px/1 var(--display); vertical-align: 2px; }
.steps p { color: var(--muted); }
@media (max-width: 860px) { .steps ol { grid-template-columns: 1fr; max-width: 420px; } }

/* Playback: a pale blue band with the app's Broadcast export. */
.motion { max-width: none !important; background: var(--sky); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; padding-left: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter))) !important; padding-right: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter))) !important; }
.motion p + p { margin-top: 14px; }
.motion p { color: var(--ink); }
.clip video { width: 100%; border-radius: 14px; background: #0E1A28; }
@media (max-width: 860px) { .motion { grid-template-columns: 1fr; } }

/* Details beside the out-of-bounds screenshot. */
.details { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.details h2 { grid-column: 1 / -1; margin-bottom: -16px; }
.details dl { display: grid; gap: 26px; }
.details dl div { border-left: 4px solid var(--blue); padding-left: 18px; }
.details dt { font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.details dd { color: var(--muted); max-width: 52ch; }
.details-phone { max-width: 260px; }
@media (max-width: 860px) { .details { grid-template-columns: 1fr; } }

/* Free and Pro */
.plans { border-top: 1px solid var(--line); }
.table-wrap { overflow-x: auto; margin-top: 28px; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 16px; }
th, td { padding: 16px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
thead th { font: 700 20px/1.2 var(--display); color: var(--navy); background: var(--white); }
tbody th { font-weight: 700; color: var(--ink); width: 28%; }
td { color: var(--ink); }
thead th:last-child, td:last-child { background: var(--sky); }
thead th:last-child { color: var(--blue); }
.note { margin-top: 16px; font-size: 15px; color: var(--muted); }

/* Questions */
.faq { max-width: 820px !important; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-weight: 700; font-size: 18px; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: linear-gradient(var(--blue), var(--blue)) center / 14px 2.5px no-repeat, linear-gradient(var(--blue), var(--blue)) center / 2.5px 14px no-repeat; }
.faq details[open] summary::after { background: linear-gradient(var(--blue), var(--blue)) center / 14px 2.5px no-repeat; }
.faq details p { padding: 0 0 22px; color: var(--muted); }

/* Sign-up: the one blue band. */
.signup { max-width: none !important; background: var(--blue); color: var(--white); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; padding-left: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter))) !important; padding-right: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter))) !important; scroll-margin-top: 12px; }
.signup h2 { color: var(--white); }
.signup-text p { color: #E3EDF7; }
.signup form { background: var(--white); color: var(--ink); border-radius: 14px; padding: clamp(22px, 3vw, 32px); display: grid; gap: 6px; }
.signup label { font-weight: 700; font-size: 15px; margin-top: 10px; }
.signup label span { font-weight: 500; color: var(--muted); }
.signup input, .signup select { width: 100%; min-height: 48px; padding: 10px 12px; border: 1.5px solid var(--line-2); border-radius: 8px; font: 500 16px var(--body); color: var(--ink); background: var(--white); }
.signup input:focus-visible, .signup select:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.signup .btn { margin-top: 18px; width: 100%; }
.signup .fine { font-size: 14px; color: var(--muted); margin-top: 8px; }
.signup .hp { position: absolute; left: -9999px; }
@media (max-width: 860px) { .signup { grid-template-columns: 1fr; } }

/* Footer */
.foot { max-width: var(--wrap); margin: 0 auto; padding: 32px var(--gutter) 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; font-size: 15px; color: var(--muted); }
.foot .brand { font-size: 17px; }
.foot nav { display: flex; gap: 22px; }
.foot nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.foot nav a:hover { color: var(--blue); }

/* Thank-you page */
.thanks { max-width: 720px !important; padding-top: clamp(48px, 10vw, 120px) !important; }
.thanks h1 { font-size: clamp(44px, 7vw, 72px); text-transform: uppercase; margin-bottom: 20px; }
.thanks p { font-size: 19px; margin-bottom: 28px; }
@media (max-width: 520px) { .actions .btn { width: 100%; } }
/* Phones: each feature becomes a short list, one line per plan. */
@media (max-width: 600px) {
  table, tbody, tr, th, td { display: block; }
  table { min-width: 0; }
  thead { display: none; }
  tbody tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  tbody tr:last-child { border-bottom: 0; }
  tbody th { width: auto; padding: 0 0 6px; border: 0; color: var(--navy); }
  td { display: flex; justify-content: space-between; gap: 16px; padding: 3px 0; border: 0; text-align: right; }
  td::before { content: attr(data-plan); color: var(--muted); text-align: left; }
  thead th:last-child, td:last-child { background: none; }
  td:last-child { color: var(--blue); font-weight: 700; }
}
