/* Public landing page. Workshop vernacular: floor-marking yellow on petrol, and the job card as the hero. */
@font-face { font-family: "Plex Arabic"; font-weight: 400; font-display: swap; src: url("../fonts/plex-arabic-arabic-400.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Plex Arabic"; font-weight: 600; font-display: swap; src: url("../fonts/plex-arabic-arabic-600.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Plex Arabic"; font-weight: 700; font-display: swap; src: url("../fonts/plex-arabic-arabic-700.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Plex Arabic"; font-weight: 400; font-display: swap; src: url("../fonts/plex-arabic-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2010-2027, U+2030-205E, U+20AC, U+2212; }
@font-face { font-family: "Plex Arabic"; font-weight: 600; font-display: swap; src: url("../fonts/plex-arabic-latin-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2010-2027, U+2030-205E, U+20AC, U+2212; }
@font-face { font-family: "Plex Arabic"; font-weight: 700; font-display: swap; src: url("../fonts/plex-arabic-latin-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2010-2027, U+2030-205E, U+20AC, U+2212; }

:root {
    --petrol: #12263a;
    --petrol-2: #1b3550;
    --ink: #14202c;
    --muted: #55616d;
    --yellow: #f5b800;
    --yellow-dark: #d9a300;
    --concrete: #eef1f3;
    --paper: #ffffff;
    --line: #d5dbe1;
    --green: #1a7f4b;
    --measure: 34rem;
    color-scheme: light;
}

* { box-sizing: border-box; }
html { font-size: 17px; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Plex Arabic", "Segoe UI", Tahoma, "Geeza Pro", Arial, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.75;
}
h1, h2, h3, p, ol, dl, dd, table { margin: 0; }
ol { padding: 0; list-style: none; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.wrap { width: min(100% - 2.5rem, 68rem); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: .75rem; top: -4rem; background: var(--paper); padding: .5rem .9rem; border-radius: 6px; z-index: 10; }
.skip:focus { top: .75rem; }

h2 { font-size: clamp(1.45rem, 3.2vw, 2rem); font-weight: 700; line-height: 1.4; }
h3 { font-size: 1.12rem; font-weight: 600; line-height: 1.5; }
.section-lead { color: var(--muted); max-width: var(--measure); margin-top: .5rem; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .55rem 1.5rem;
    font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; border-radius: 6px; border: 2px solid transparent;
}
.btn-main { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.btn-main:hover { background: var(--yellow-dark); border-color: var(--yellow-dark); }
.btn-line { border-color: currentColor; background: transparent; }
.btn-line:hover { background: rgba(255, 255, 255, .1); }
.btn-quiet { min-height: 2.6rem; padding: .3rem 1rem; border-color: rgba(255, 255, 255, .35); color: #fff; font-weight: 400; font-size: .9rem; }
.btn-quiet:hover { border-color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.actions form { margin: 0; }

/* Header */
.top { background: var(--petrol); color: #fff; }
.top-in { display: flex; align-items: center; gap: 1.5rem; padding-block: .9rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; font-size: 1.25rem; text-decoration: none; }
.top-nav { display: flex; gap: 1.4rem; margin-inline-start: auto; font-size: .9rem; }
.top-nav a { text-decoration: none; color: #c9d5e1; padding-block: .4rem; }
.top-nav a:hover { color: #fff; }

/* Hero */
.hero { background: var(--petrol); color: #fff; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 3.5rem; align-items: center; padding-block: 3.5rem 4.5rem; }
h1 { font-size: clamp(1.9rem, 4.6vw, 3.1rem); font-weight: 700; line-height: 1.35; }
.lead { margin-top: 1.25rem; font-size: 1.12rem; color: #d3dde7; max-width: var(--measure); }
.hero .actions { margin-top: 2rem; }
.hero-note { margin-top: 1.1rem; font-size: .9rem; color: #a9b8c7; }
.stripe { height: 12px; background: repeating-linear-gradient(-45deg, var(--yellow) 0 16px, var(--ink) 16px 32px); }

/* The job card */
.ticket {
    background: var(--paper); color: var(--ink); border-radius: 4px; padding: 1.6rem 1.5rem 1.4rem; position: relative;
    box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .55);
}
.ticket::before { /* punched holes of a job-card pad */
    content: ""; position: absolute; inset-inline: 1.5rem; top: .55rem; height: 8px;
    background: radial-gradient(circle, var(--petrol) 3px, transparent 3.5px) center / 22px 8px repeat-x;
}
.ticket-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-top: .6rem; }
.ticket-no { font-size: .9rem; color: var(--muted); }
.ticket-car { font-size: 1.35rem; font-weight: 700; line-height: 1.4; }
.plate { display: flex; border: 2px solid var(--ink); border-radius: 5px; font-weight: 700; font-size: .9rem; overflow: hidden; white-space: nowrap; }
.plate span { padding: .15rem .6rem; }
.plate span + span { border-inline-start: 2px solid var(--ink); }
.ticket-meta { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 1rem; margin-top: 1rem; font-size: .9rem; }
.ticket-meta div:last-child { grid-column: 1 / -1; }
.ticket-meta dt { color: var(--muted); font-size: .8rem; }
.ticket-meta dd { font-weight: 600; }

.track { margin-top: 1.3rem; }
.track-bar { height: 6px; background: var(--concrete); border-radius: 3px; overflow: hidden; }
.track-bar span { display: block; height: 100%; width: 75%; background: var(--green); border-radius: 3px; animation: fill 1.6s .4s cubic-bezier(.3, .7, .2, 1) backwards; }
@keyframes fill { from { width: 0; } }
.track ol { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: .45rem; font-size: .8rem; color: var(--muted); text-align: center; }
.track li.done { color: var(--ink); }
.track li.now { color: var(--green); font-weight: 700; }

.ticket-lines { width: 100%; border-collapse: collapse; margin-top: 1.2rem; font-size: .9rem; }
.ticket-lines td { padding: .38rem 0; border-top: 1px dashed var(--line); }
.ticket-lines td:last-child { text-align: end; font-variant-numeric: tabular-nums; }
.ticket-lines .sum td { border-top: 2px solid var(--ink); font-weight: 700; font-size: 1.12rem; padding-top: .6rem; }

/* The day */
.day { padding-block: 4.5rem; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 2.2rem; counter-reset: step; }
.steps li { counter-increment: step; border-top: 4px solid var(--yellow); padding-top: 1rem; }
.steps li::before { content: counter(step); display: block; font-size: 2.2rem; font-weight: 700; line-height: 1.1; }
.steps h3 { margin-top: .4rem; }
.steps p { margin-top: .4rem; color: var(--muted); font-size: .9rem; }

/* Screenshots of the product: one wide, three below. */
.shots { padding-block: 0 4.5rem; }
.shots-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 1.5rem; margin-top: 2.2rem; }
.shot { margin: 0; }
.shot-dashboard { grid-column: 1 / -1; }
.shot a { display: block; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--concrete); }
.shot a:hover, .shot a:focus-visible { border-color: var(--petrol); }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { margin-top: .7rem; color: var(--muted); font-size: .9rem; }
.shot figcaption strong { display: block; color: var(--ink); font-size: 1rem; font-weight: 600; }

/* Inside */
.inside { background: var(--concrete); padding-block: 4.5rem; }
.inside-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: 3rem; align-items: start; }
.inside-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.5rem; }
.inside-list div { padding-block: 1rem; border-top: 1px solid var(--line); }
.inside-list dt { font-weight: 600; }
.inside-list dd { color: var(--muted); font-size: .9rem; }

/* Plans */
.plans { padding-block: 4.5rem; }
.plans-scroll { margin-top: 2rem; overflow-x: auto; }
.plans-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.plans-table thead td { width: 37%; }
.plans-table thead th { text-align: center; padding: 1.2rem .25rem 1rem; vertical-align: bottom; font-weight: 400; }
.plans-table thead th:nth-child(3) { background: var(--petrol); color: #fff; border-radius: 6px 6px 0 0; }
.plan-name { display: block; font-weight: 600; }
.plan-price { display: block; font-size: clamp(1.3rem, 4.6vw, 2.1rem); font-weight: 700; line-height: 1.3; font-variant-numeric: tabular-nums; }
.plan-unit { display: block; font-size: .8rem; opacity: .75; }
.plans-table tbody th { text-align: start; font-weight: 400; padding: .8rem 0 .8rem 1rem; font-size: .9rem; }
.plans-table tbody td { text-align: center; padding: .8rem .25rem; font-size: .9rem; }
.plans-table tbody tr { border-top: 1px solid var(--line); }
.plans-table tbody td:nth-child(3) { background: #f3f6f9; }
.yes { color: var(--green); font-weight: 700; font-size: 1.12rem; }
.no { color: #5c6875; }

/* FAQ */
.faq { background: var(--concrete); padding-block: 4.5rem; }
.faq-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: 3rem; align-items: start; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; padding: 1rem 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-weight: 400; font-size: 1.3rem; line-height: 1.2; color: var(--muted); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { padding-bottom: 1.1rem; color: var(--muted); max-width: var(--measure); }
.faq-list p a { display: inline-block; padding-block: .5rem; }

/* Closing call */
.close { background: var(--petrol); color: #fff; padding-block: 4rem; }
.close-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.close h2 { max-width: 24rem; }

.foot { background: var(--ink); color: #a9b8c7; font-size: .9rem; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 0 2rem; padding-block: .7rem; }
.foot a { color: #dfe7ee; display: inline-block; padding-block: .6rem; }
.foot-in > :last-child { margin-inline-start: auto; }

@media (max-width: 880px) {
    .shots-grid { grid-template-columns: 1fr; }
    .hero-in { grid-template-columns: 1fr; gap: 2.5rem; padding-block: 2.5rem 3.5rem; }
    .steps { grid-template-columns: 1fr 1fr; }
    .inside-in, .faq-in { grid-template-columns: 1fr; gap: 1.5rem; }
    .top-in { flex-wrap: wrap; row-gap: .2rem; }
    .top-nav { order: 3; flex-basis: 100%; margin-inline-start: 0; gap: 1.6rem; }
    .top-nav a { padding-block: .7rem; }
    .top-in .btn-quiet { margin-inline-start: auto; }
}
@media (max-width: 560px) {
    html { font-size: 16px; }
    .steps, .inside-list { grid-template-columns: 1fr; }
    .day, .inside, .plans, .faq { padding-block: 3rem; }
    .actions .btn, .actions form { width: 100%; }
    .foot-in > :last-child { margin-inline-start: 0; }
    .plans-table tbody th, .plans-table tbody td { font-size: .8rem; }
    .plans-table tbody th { padding-inline-end: .5rem; }
    .plan-unit { font-size: .75rem; }
    .ticket { padding-inline: 1.1rem; }
    .ticket::before { inset-inline: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .track-bar span { animation: none; }
}
