/*
   What the application adds to the approved public site design. site.css beside this file
   is that design as it arrived and is not edited; this file loads after it, so a rule of
   equal specificity here wins. PAGE_STYLE.md, "The public site".
*/

/* The contact form's two outcomes. The approved design drew its status line from a script
   that posted to the preview; the application renders the outcome on the server. */
.lead-outcome {
    font-size: 20px;
    font-weight: bold;
    border-left: 4px solid var(--lime);
    padding: 6px 0 6px 18px;
    margin: 10px 0 40px;
}

.lead-problem {
    font-size: 16px;
    font-weight: bold;
    color: #8a1c1c;
    background: #fdf0f0;
    border-left: 4px solid #8a1c1c;
    padding: 12px 16px;
    margin: 0 0 22px;
}

/* A grid track sized 1fr is never narrower than its content's minimum width, and the survey
   carousel's is 406px. Without this the homepage hero lays out 430px wide at every phone
   width and the right-hand 62px of the headline and the survey card are cut off. */
.hero > * {
    min-width: 0;
}

/* The 44px touch floor. The approved design draws its navigation as text links 15px to 20px
   tall and its header buttons at 37px and 39px; each becomes a box at least 44px tall with
   its text where it was. */
.site-header .logo,
.header-nav a,
.utility a,
.site-footer a,
.motion-footer button {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

/* The navigation wraps onto two rows on a phone. The rows are 44px tall now, so the gap
   between them comes out to leave the header about as tall as it was. */
.header-nav {
    row-gap: 0;
}

.survey-dot {
    width: 44px;
}

/* A link standing on a line of its own. It stays inline, so the padding widens what a
   finger can hit without moving anything around it. 14px brings a 17px line to 45, over
   the 44px floor; 13 left it at 43. */
.text-link {
    padding-block: 14px;
}

/* The developer page's diagram. It carries its own width and height, so the page holds its
   place before it arrives; this keeps it inside its column and in proportion at every
   width. It is drawn no wider than 720px, so on a desktop it sits as an illustration
   beside the copy's measure and not as a banner across the page. */
.developer-diagram img {
    display: block;
    max-width: min(100%, 720px);
    height: auto;
    margin: 0 auto;
}

/* The homepage's two opening rows. PAGE_STYLE.md, "The homepage opens on two rows" and
   "Both graphics are smaller". Both rows are the approved hero grid; the type sizes are
   the approved stylesheet's own, traded between the two headings by which element carries
   which class. What is here is the space between the rows, where each graphic starts,
   the two graphics' sizes, which side the carousel is on, and the band the picture left. */

/* One row runs straight into the next. Each hero carries its own top and bottom padding,
   and two of them stacked would open a gap the design never had. */
.hero-lead {
    padding-bottom: 0;
}

/* Each graphic starts level with the top of its own text, where the approved hero centers
   its two columns on each other. The paradigm heading gives up the space above it so that
   its first line and the top of the picture are the same line. */
.hero-lead,
.hero-evidence {
    align-items: start;
}

.hero-lead h1 {
    margin-top: 0;
}

/* The device picture: at most 340px tall at every width, which is 255 wide at its own
   proportions. Whole, never past its 1,086 pixels, in the middle of its column. */
.hero-device {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 340px;
    justify-self: center;
}

/* The stop-paying headline keeps the space it had above and below it as the hero
   headline. hero-splash sets its own margins as important, for the line that sat first in
   its column. */
.hero-evidence .hero-splash {
    margin: 20px 0 25px !important;
}

/* The survey carousel is the smaller of the two graphics: a card 250px wide, narrower than
   the device, around a phone frame 170px wide and so 335 tall, inside the device's height.
   The frame scales by its proportions at every width, which is how the approved hero
   already sizes it on a desktop. */
.hero-evidence > .evidence {
    width: 250px;
    max-width: 100%;
    justify-self: center;
}

.hero-evidence .phone-frame {
    width: 100%;
    max-width: 170px;
    height: auto;
    aspect-ratio: 274 / 540;
}

.hero-evidence .phone-screen {
    position: absolute;
    inset: 9px;
    height: auto;
}

/* The frame's notch and home bar are fixed sizes drawn for a frame 274px wide. At 170 the
   notch ran into the clock beside it, so both are scaled to the frame. */
.hero-evidence .phone-screen::before {
    width: 48px;
    height: 12px;
}

.hero-evidence .phone-home-indicator {
    width: 52px;
}

/* Which side the carousel is on. A row carrying hero--graphic-left draws its graphic first
   and its text second wherever the row is two columns; the markup keeps the text first,
   so one column, which is every width under 901px, reads in the order it is written.
   Take the class off the row in Index.cshtml and the carousel is on the right again. */
@media (min-width: 901px) {
    .hero--graphic-left {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .hero--graphic-left > .evidence {
        order: -1;
        justify-self: start;
    }
}

/* "A useful daily presence" is a band of text now that its picture is in the first row,
   so it is laid out the way the other bands of text are and not as two columns with one
   of them empty. */
.home-solution .wrap {
    display: block;
}

/* The survey screenshots' footnote at the foot of the homepage. Caption type, which
   site.css already sets; the full width of the content, which site.css's paragraph limit
   would otherwise hold to 650px; and room between it and the band above. */
.survey-footnote {
    padding-top: 0;
}

.survey-footnote p {
    max-width: none;
    margin: 0 0 8px;
}

/* The security page. Its three summary blocks are the steps grid with a heading in each,
   drawn at a block title's size and not a section's, under a rule that parts them from the
   introduction. Each article ends on one line in bold that says what the control gives. */
.security-summary {
    border-top: 1px solid #c3d6df;
    padding-top: 28px;
    margin-top: 36px;
}

.security-summary h2 {
    font-size: 25px;
    letter-spacing: -.5px;
    line-height: 1.2;
    margin: 12px 0;
}

.security-benefits .security-benefit {
    font-size: 16px;
    font-weight: bold;
    color: var(--ink);
}

/* The architecture page. Its four tiers are an ordered list, each tier's name in a narrow
   column beside its title and sentence, one column at phone width. A callout is a block of
   text set off by a rule down its left side. */
.enterprise-hierarchy {
    list-style: none;
    padding: 0;
    margin: 32px 0;
}

.enterprise-hierarchy li {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 24px;
    padding: 22px 0;
    border-top: 1px solid #c3d6df;
}

.enterprise-hierarchy h3 {
    margin: 0 0 12px;
}

.enterprise-hierarchy p {
    margin: 0;
}

.enterprise-level {
    font-size: 14px;
    font-weight: bold;
    color: var(--blue);
}

.enterprise-callout {
    border-left: 4px solid var(--blue);
    padding: 4px 0 4px 24px;
    margin-top: 32px;
}

@media (max-width: 600px) {
    .enterprise-hierarchy li {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

/* The privacy page. A text page: its section headings take a block title's size where the
   approved stylesheet would draw them as page headlines, and its two answer buttons are real
   buttons in the site's button style. */
.privacy .reading h2 {
    font-size: 23px;
    line-height: 1.2;
    letter-spacing: 0;
    margin: 34px 0 10px;
}

.privacy .reading p {
    font-size: 17px;
}

.privacy-choice {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 8px;
}

.privacy-choice .button {
    border: 0;
    font: inherit;
    font-weight: 750;
    cursor: pointer;
    min-height: 44px;
}

.privacy-choice .privacy-decline {
    background: white;
    border: 1px solid var(--ink);
}

/* The footer's shortest link, Privacy, is 43px of text. A touch target is 44px both ways. */
.site-footer a {
    min-width: 44px;
}
