/* Crinas — site styles */

@font-face { font-family: "Gloock"; font-weight: 400; font-display: swap; src: url("fonts/gloock-400.woff2") format("woff2"); }
@font-face { font-family: "Onest"; font-weight: 400 600; font-display: swap; src: url("fonts/onest-var.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url("fonts/plexmono-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url("fonts/plexmono-500.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --stone: #E8E9E2;
  --paper: #F6F6F1;
  --white: #FFFFFF;
  --ink: #1B1E19;
  --muted: #4E5349;
  --muted-2: #5A5F55;
  --line: #CFD1C6;
  --line-soft: #DCDDD4;
  --field: #C3C6B9;
  --sage: #E3E6DC;
  --chestnut: #8B4A1F;
  --chestnut-dark: #6A3614;
  --chestnut-soft: #F2DFD0;
  --chestnut-light: #C18A5B;
  --green: #22382C;
  --green-line: #3A5244;
  --straw: #D9B75E;
  --on-green: #EEF0E8;
  --on-green-muted: #BFC6B8;

  --display: "Gloock", Georgia, "Times New Roman", serif;
  --sans: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(64px, 9vw, 112px);
  --shadow: 0 30px 60px -36px rgba(27, 30, 25, 0.45);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
}

img, svg { max-width: 100%; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; text-wrap: balance; }
p { margin: 0; }
a { color: var(--chestnut); }
a:hover { color: var(--chestnut-dark); }
:focus-visible { outline: 3px solid var(--straw); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1296px; margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--mono); }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--chestnut); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--paper); padding: 10px 14px; }

/* Type scale */
.display { font-size: clamp(44px, 6vw, 76px); line-height: 1.03; letter-spacing: -0.02em; }
.h1 { font-size: clamp(42px, 5.4vw, 68px); line-height: 1.04; letter-spacing: -0.02em; }
.h2 { font-size: clamp(34px, 4vw, 54px); line-height: 1.06; letter-spacing: -0.015em; }
.h3 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.06; }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--muted); max-width: 40em; }
.body-lg { font-size: 18px; line-height: 1.6; color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font: 600 17px/1 var(--sans); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background-color .15s, color .15s;
}
.btn-primary { background: var(--chestnut); color: var(--white); }
.btn-primary:hover { background: var(--chestnut-dark); color: var(--white); }
.btn-outline { border-color: var(--ink); color: var(--ink); font-weight: 500; }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-straw { background: var(--straw); color: var(--ink); }
.btn-straw:hover { background: #E6C877; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.logo span { font-family: var(--display); font-size: 30px; letter-spacing: -0.01em; line-height: 1; }
.logo:hover { color: var(--ink); }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--chestnut); }
.nav a[aria-current="page"] { color: var(--chestnut); font-weight: 600; }
.nav .nav-cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 500; }
.nav .nav-cta:hover { background: var(--chestnut); color: var(--white); }
.menu { display: none; position: relative; }
.menu summary { list-style: none; width: 44px; height: 44px; border: 1.5px solid var(--ink); border-radius: 999px; display: grid; place-items: center; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: 54px; z-index: 5; min-width: 230px; background: var(--paper); border-radius: 16px; box-shadow: var(--shadow); padding: 10px; display: flex; flex-direction: column; }
.menu-panel a { padding: 12px 14px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.menu-panel a:hover { background: var(--sage); }
.menu-panel a[aria-current="page"] { color: var(--chestnut); font-weight: 600; }
@media (max-width: 1000px) {
  .nav { display: none; }
  .menu { display: block; }
}

/* Sections */
.section { padding-block: var(--section); }
.section + .section.ruled, .ruled { border-top: 1px solid var(--line); }
.section-green { background: var(--green); color: var(--on-green); }
.section-green .body-lg, .section-green .lead { color: var(--on-green-muted); }
.section-green .eyebrow { color: var(--straw); }
.stack { display: flex; flex-direction: column; gap: 24px; }
.stack-sm { display: flex; flex-direction: column; gap: 14px; }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 6vw, 80px); align-items: center; }
.split.top { align-items: start; }
@media (max-width: 960px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split .media-first { order: -1; }
  .split .media-last-mobile { order: 2; }
}

/* Hero */
.hero { padding-block: clamp(40px, 6vw, 72px) clamp(64px, 8vw, 96px); }
.hero-visual { position: relative; min-height: 680px; }
.hero-visual .app-card { position: absolute; top: 0; right: 0; width: min(500px, 100%); }
.hero-visual .horse-card { position: absolute; left: 0; bottom: 0; width: min(330px, 80%); }
@media (max-width: 960px) {
  .hero-visual { min-height: 0; display: flex; flex-direction: column; gap: 16px; }
  .hero-visual .app-card, .hero-visual .horse-card { position: static; width: 100%; }
}

/* App mock pieces */
.app-card { background: var(--paper); border-radius: 18px; box-shadow: var(--shadow); padding: clamp(20px, 3vw, 28px); display: flex; flex-direction: column; gap: 16px; }
.app-card.white { background: var(--white); }
.app-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.app-card-title { font-family: var(--display); font-size: clamp(22px, 2.2vw, 26px); }
.app-card-meta { font-family: var(--mono); font-size: 13px; color: var(--muted-2); }

.agenda-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line-soft); }
.agenda-row .time { font-family: var(--mono); font-size: 14px; color: var(--muted-2); }
.agenda-row .time.due { color: var(--chestnut); }
.agenda-row strong { display: block; font-weight: 600; }
.agenda-row small { display: block; font-size: 14px; color: var(--muted-2); }
@media (max-width: 480px) {
  .agenda-row { grid-template-columns: 52px minmax(0, 1fr); }
  .agenda-row .pill { display: none; }
}

.pill { display: inline-block; font-size: 12px; line-height: 1.3; padding: 4px 10px; border-radius: 999px; background: var(--sage); color: var(--green); white-space: nowrap; }
.pill.warn { background: var(--chestnut-soft); color: var(--chestnut-dark); font-weight: 500; }
.pill.straw { background: var(--straw); color: var(--ink); font-weight: 600; }

.horse-card { background: var(--green); color: var(--on-green); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 24px 48px -24px rgba(27, 30, 25, 0.6); }
.horse-card .name { font-family: var(--display); font-size: 28px; }
.horse-card .sub { font-size: 14px; color: var(--on-green-muted); }
.kv { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 6px 12px; font-size: 13px; }
.kv dt { color: #9EA696; }
.kv dd { margin: 0; overflow-wrap: anywhere; }

/* Strip */
.strip { border-block: 1px solid var(--line); }
.strip .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 40px; padding-block: 26px; }
.strip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 32px; font-family: var(--display); font-size: clamp(20px, 2vw, 24px); }
.strip .eyebrow { color: var(--muted-2); }

/* Feature grid */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px 64px; flex-wrap: wrap; }
.section-head h2 { max-width: 16em; }
.section-head p { max-width: 24em; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.feature-grid > * { background: var(--paper); padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 12px; }
.feature-grid a { color: inherit; text-decoration: none; }
.feature-grid a:hover h3 { color: var(--chestnut); }
.feature-grid h3 { font-size: 28px; }
.feature-grid p { font-size: 16px; color: var(--muted); }
.tag { font-family: var(--mono); font-size: 13px; color: var(--chestnut); }
@media (max-width: 960px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .feature-grid { grid-template-columns: minmax(0, 1fr); } }

.bullets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.bullets li { display: flex; gap: 12px; align-items: flex-start; }
.bullets li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; background: no-repeat center / 20px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M4 10.5l4 4 8-9' stroke='%238B4A1F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.section-green .bullets li::before, .on-green .bullets li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M4 10.5l4 4 8-9' stroke='%23D9B75E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* Phone mock */
.phone { width: min(340px, 100%); margin-inline: auto; background: var(--paper); color: var(--ink); border-radius: 36px; padding: 14px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6); }
.phone-screen { border-radius: 26px; background: var(--white); overflow: hidden; }
.phone-cover { height: 150px; display: flex; align-items: flex-end; padding: 18px; color: var(--white); background:
  radial-gradient(120% 90% at 85% 10%, #A6724A 0%, transparent 60%), linear-gradient(160deg, #7A4A2A, #3E2A1C); }
.phone-cover span { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.phone-body { padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.rows { display: flex; flex-direction: column; font-size: 14px; }
.rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid #E6E7E0; }
.rows dt, .rows .k { color: var(--muted-2); }
.rows dd { margin: 0; font-weight: 500; text-align: right; }
.note { background: #F1EEE6; border-radius: 12px; padding: 14px; font-size: 14px; }

/* Forms */
.form { background: var(--paper); color: var(--ink); border-radius: 20px; padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; gap: 18px; box-shadow: 0 30px 60px -40px rgba(27, 30, 25, 0.5); }
.form-title { font-family: var(--display); font-size: 30px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--field); border-radius: 10px;
  background: var(--white); color: var(--ink); font: 400 16px/1.4 var(--sans);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--chestnut); outline-offset: 1px; border-color: var(--chestnut); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: minmax(0, 1fr); } }
.form .btn { width: 100%; }
.form-small { font-size: 13px; color: var(--muted-2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: 12px; padding: 14px 16px; font-size: 15px; background: var(--chestnut-soft); color: var(--chestnut-dark); }

/* Price */
.price-box { display: flex; flex-direction: column; gap: 6px; padding: 22px 24px; border: 1.5px solid var(--ink); border-radius: 16px; max-width: 460px; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 860px) { .plans { grid-template-columns: minmax(0, 1fr); } }
.plan { border-radius: 20px; padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; gap: 22px; }
.plan.dark { background: var(--green); color: var(--on-green); }
.plan.light { background: var(--paper); }
.plan-name { font-family: var(--display); font-size: 34px; }
.plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.plan-price strong { font-family: var(--display); font-weight: 400; font-size: clamp(44px, 5vw, 64px); line-height: 1; }
.plan-foot { padding-top: 18px; border-top: 1px solid var(--line-soft); font-size: 15px; color: var(--muted); }
.plan.dark .plan-foot { border-color: var(--green-line); color: var(--on-green-muted); }
.plan .btn { width: 100%; margin-top: auto; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 2px solid var(--ink); }
.steps strong { font-size: 18px; }
.steps p { font-size: 15px; color: var(--muted); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); }
@media (max-width: 860px) { .faq-grid { grid-template-columns: minmax(0, 1fr); } }
.faq details { border-top: 1px solid var(--line); padding: 20px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { font-weight: 600; font-size: 18px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--chestnut); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 10px; color: var(--muted); max-width: 40em; }

/* Columns of short text */
.cols { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 32px 40px; }
.cols h3 { font-family: var(--sans); font-weight: 600; font-size: 18px; margin-bottom: 8px; }
.cols p { font-size: 16px; color: var(--muted); }
@media (max-width: 960px) { .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cols { grid-template-columns: minmax(0, 1fr); } }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--paper); color: var(--ink); text-decoration: none; font-size: 15px; }
.chips a:hover { background: var(--ink); color: var(--paper); }

/* Feature-page mocks */
.tabs { display: flex; gap: 20px; font-size: 14px; border-bottom: 1px solid var(--line-soft); overflow-x: auto; }
.tabs span { padding-bottom: 10px; color: var(--muted-2); white-space: nowrap; }
.tabs span.on { color: var(--ink); font-weight: 600; border-bottom: 2px solid var(--chestnut); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; font-size: 15px; }
.fields small { display: block; font-size: 12px; color: var(--muted-2); }
.thumb { width: 84px; height: 84px; flex: none; border-radius: 14px; background: linear-gradient(160deg, #B9B9B2, #8C8F86); }
.table-scroll { overflow-x: auto; }
.table { width: 100%; min-width: 440px; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-weight: 400; font-size: 12px; color: var(--muted-2); padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line-soft); }
.table td { padding: 12px 12px 12px 0; border-bottom: 1px solid #E3E4DC; vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.bar-row { display: flex; flex-direction: column; gap: 6px; }
.bar-row .labels { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.bar { height: 10px; border-radius: 999px; background: #E3E4DC; }
.bar i { display: block; height: 100%; border-radius: 999px; background: var(--chestnut-light); }
.bar i.late { background: var(--chestnut); }
.bar i.ok { background: var(--green); }
.boxes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.boxes > div { padding: 12px; border-radius: 10px; background: var(--white); border: 1px solid var(--line-soft); font-size: 14px; font-weight: 600; }
.boxes > div small { display: block; font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--muted-2); }
.boxes > div.free { background: transparent; border: 1.5px dashed #A5A89C; color: var(--green); font-weight: 500; }
.paddocks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; font-size: 14px; }
.paddocks > div { padding: 12px; border-radius: 10px; background: var(--sage); }
.paddocks small { display: block; color: var(--muted); font-size: 14px; }
@media (max-width: 420px) { .boxes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.statement { display: flex; flex-direction: column; font-size: 15px; font-variant-numeric: tabular-nums; }
.statement > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid #E6E7E0; }
.statement > div.total { border-top: 1.5px solid var(--ink); font-weight: 600; font-size: 17px; padding-bottom: 0; }
.timeline { display: flex; flex-direction: column; }
.timeline > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px; padding: 12px 0; border-top: 1px solid var(--green-line); font-size: 15px; }
.timeline .mono { color: var(--on-green-muted); font-size: 14px; }
.dark-card { background: var(--green); color: var(--on-green); border-radius: 18px; padding: clamp(22px, 3vw, 32px); display: flex; flex-direction: column; gap: 20px; }

/* Person */
.person { background: var(--paper); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.avatar { width: 72px; height: 72px; border-radius: 999px; background: var(--green); color: var(--straw); display: grid; place-items: center; font-family: var(--display); font-size: 28px; }
.contact-list { display: flex; flex-direction: column; gap: 18px; }
.contact-list span { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--straw); }

/* CTA band */
.cta-band .wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.cta-band h2 { max-width: 15em; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); font-size: 14px; color: var(--muted-2); }
.section-green + .site-footer { border-top: 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 28px; padding-block: 32px; }
.site-footer .brand { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.site-footer .brand b { font-family: var(--display); font-weight: 400; font-size: 22px; color: var(--ink); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.site-footer a { color: var(--muted-2); text-decoration: none; }
.site-footer a:hover { color: var(--chestnut); }
.site-footer a.strong { color: var(--ink); text-decoration: underline; }
